Class: Aws::Mgn::Types::SegmentOperation

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-mgn/lib/aws-sdk-mgn/types.rb

Overview

Note:

SegmentOperation is a union - when making an API calls you must set exactly one of the members.

Specifies the operation to perform on a segment during a mapping update. Specify one of a create, update, or delete operation.

Defined Under Namespace

Classes: Create, Delete, Unknown, Update

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#create ⇒ Types::SegmentCreateOperation

A create operation to add a new segment.



6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/types.rb', line 6726

class SegmentOperation < Struct.new(
  :create,
  :update,
  :delete,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class Create < SegmentOperation; end
  class Update < SegmentOperation; end
  class Delete < SegmentOperation; end
  class Unknown < SegmentOperation; end
end

#delete ⇒ Types::SegmentDeleteOperation

A delete operation to remove a segment from the mapping.

Returns:

  • (Types::SegmentDeleteOperation)


6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/types.rb', line 6726

class SegmentOperation < Struct.new(
  :create,
  :update,
  :delete,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class Create < SegmentOperation; end
  class Update < SegmentOperation; end
  class Delete < SegmentOperation; end
  class Unknown < SegmentOperation; end
end

#unknown ⇒ Object

Returns the value of attribute unknown

Returns:

  • (Object) —

    the current value of unknown



6726
6727
6728
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/types.rb', line 6726

def unknown
  @unknown
end

#update ⇒ Types::SegmentUpdateOperation

An update operation to modify segment properties.



6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/types.rb', line 6726

class SegmentOperation < Struct.new(
  :create,
  :update,
  :delete,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class Create < SegmentOperation; end
  class Update < SegmentOperation; end
  class Delete < SegmentOperation; end
  class Unknown < SegmentOperation; end
end