CreateAwsEc2AssetDetails

class oci.cloud_migrations.models.CreateAwsEc2AssetDetails(**kwargs)

Bases: CreateAssetDetails

Create AWS EC2 VM type of asset.

Attributes:

ASSET_TYPE_AWS_EBS

A constant which can be used with the asset_type property of a CreateAssetDetails.

ASSET_TYPE_AWS_EC2

A constant which can be used with the asset_type property of a CreateAssetDetails.

ASSET_TYPE_VM

A constant which can be used with the asset_type property of a CreateAssetDetails.

ASSET_TYPE_VMWARE_VM

A constant which can be used with the asset_type property of a CreateAssetDetails.

asset_source_ids

Gets the asset_source_ids of this CreateAssetDetails.

asset_type

[Required] Gets the asset_type of this CreateAssetDetails.

attached_ebs_volumes_cost

Gets the attached_ebs_volumes_cost of this CreateAwsEc2AssetDetails.

aws_ec2

[Required] Gets the aws_ec2 of this CreateAwsEc2AssetDetails.

aws_ec2_cost

Gets the aws_ec2_cost of this CreateAwsEc2AssetDetails.

compartment_id

[Required] Gets the compartment_id of this CreateAssetDetails.

compute

[Required] Gets the compute of this CreateAwsEc2AssetDetails.

defined_tags

Gets the defined_tags of this CreateAssetDetails.

display_name

Gets the display_name of this CreateAssetDetails.

external_asset_key

[Required] Gets the external_asset_key of this CreateAssetDetails.

freeform_tags

Gets the freeform_tags of this CreateAssetDetails.

inventory_id

[Required] Gets the inventory_id of this CreateAssetDetails.

source_key

[Required] Gets the source_key of this CreateAssetDetails.

vm

[Required] Gets the vm of this CreateAwsEc2AssetDetails.

Methods:

__init__(**kwargs)

Initializes a new CreateAwsEc2AssetDetails object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

ASSET_TYPE_AWS_EBS = 'AWS_EBS'

A constant which can be used with the asset_type property of a CreateAssetDetails. This constant has a value of “AWS_EBS”

ASSET_TYPE_AWS_EC2 = 'AWS_EC2'

A constant which can be used with the asset_type property of a CreateAssetDetails. This constant has a value of “AWS_EC2”

ASSET_TYPE_VM = 'VM'

A constant which can be used with the asset_type property of a CreateAssetDetails. This constant has a value of “VM”

ASSET_TYPE_VMWARE_VM = 'VMWARE_VM'

A constant which can be used with the asset_type property of a CreateAssetDetails. This constant has a value of “VMWARE_VM”

__init__(**kwargs)

Initializes a new CreateAwsEc2AssetDetails object with values from keyword arguments. The default value of the asset_type attribute of this class is AWS_EC2 and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • display_name (str) – The value to assign to the display_name property of this CreateAwsEc2AssetDetails.

  • inventory_id (str) – The value to assign to the inventory_id property of this CreateAwsEc2AssetDetails.

  • compartment_id (str) – The value to assign to the compartment_id property of this CreateAwsEc2AssetDetails.

  • source_key (str) – The value to assign to the source_key property of this CreateAwsEc2AssetDetails.

  • external_asset_key (str) – The value to assign to the external_asset_key property of this CreateAwsEc2AssetDetails.

  • asset_type (str) – The value to assign to the asset_type property of this CreateAwsEc2AssetDetails. Allowed values for this property are: “VMWARE_VM”, “VM”, “AWS_EC2”, “AWS_EBS”

  • asset_source_ids (list[str]) – The value to assign to the asset_source_ids property of this CreateAwsEc2AssetDetails.

  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateAwsEc2AssetDetails.

  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateAwsEc2AssetDetails.

  • compute (oci.cloud_migrations.models.ComputeProperties) – The value to assign to the compute property of this CreateAwsEc2AssetDetails.

  • vm (oci.cloud_migrations.models.VmProperties) – The value to assign to the vm property of this CreateAwsEc2AssetDetails.

  • aws_ec2 (oci.cloud_migrations.models.AwsEc2Properties) – The value to assign to the aws_ec2 property of this CreateAwsEc2AssetDetails.

  • aws_ec2_cost (oci.cloud_migrations.models.MonthlyCostSummary) – The value to assign to the aws_ec2_cost property of this CreateAwsEc2AssetDetails.

  • attached_ebs_volumes_cost (oci.cloud_migrations.models.MonthlyCostSummary) – The value to assign to the attached_ebs_volumes_cost property of this CreateAwsEc2AssetDetails.

property asset_source_ids

Gets the asset_source_ids of this CreateAssetDetails. List of asset source OCID.

Returns

The asset_source_ids of this CreateAssetDetails.

Return type

list[str]

property asset_type

[Required] Gets the asset_type of this CreateAssetDetails. The type of asset.

Allowed values for this property are: “VMWARE_VM”, “VM”, “AWS_EC2”, “AWS_EBS”

Returns

The asset_type of this CreateAssetDetails.

Return type

str

property attached_ebs_volumes_cost

Gets the attached_ebs_volumes_cost of this CreateAwsEc2AssetDetails.

Returns

The attached_ebs_volumes_cost of this CreateAwsEc2AssetDetails.

Return type

oci.cloud_migrations.models.MonthlyCostSummary

property aws_ec2

[Required] Gets the aws_ec2 of this CreateAwsEc2AssetDetails.

Returns

The aws_ec2 of this CreateAwsEc2AssetDetails.

Return type

oci.cloud_migrations.models.AwsEc2Properties

property aws_ec2_cost

Gets the aws_ec2_cost of this CreateAwsEc2AssetDetails.

Returns

The aws_ec2_cost of this CreateAwsEc2AssetDetails.

Return type

oci.cloud_migrations.models.MonthlyCostSummary

property compartment_id

[Required] Gets the compartment_id of this CreateAssetDetails. The OCID of the compartment that the asset belongs to.

Returns

The compartment_id of this CreateAssetDetails.

Return type

str

property compute

[Required] Gets the compute of this CreateAwsEc2AssetDetails.

Returns

The compute of this CreateAwsEc2AssetDetails.

Return type

oci.cloud_migrations.models.ComputeProperties

property defined_tags

Gets the defined_tags of this CreateAssetDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns

The defined_tags of this CreateAssetDetails.

Return type

dict(str, dict(str, object))

property display_name

Gets the display_name of this CreateAssetDetails. Asset display name.

Returns

The display_name of this CreateAssetDetails.

Return type

str

property external_asset_key

[Required] Gets the external_asset_key of this CreateAssetDetails. The key of the asset from the external environment.

Returns

The external_asset_key of this CreateAssetDetails.

Return type

str

property freeform_tags

Gets the freeform_tags of this CreateAssetDetails. Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example: {“bar-key”: “value”}

Returns

The freeform_tags of this CreateAssetDetails.

Return type

dict(str, str)

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

property inventory_id

[Required] Gets the inventory_id of this CreateAssetDetails. Inventory ID to which an asset belongs.

Returns

The inventory_id of this CreateAssetDetails.

Return type

str

property source_key

[Required] Gets the source_key of this CreateAssetDetails. The source key to which the asset belongs.

Returns

The source_key of this CreateAssetDetails.

Return type

str

property vm

[Required] Gets the vm of this CreateAwsEc2AssetDetails.

Returns

The vm of this CreateAwsEc2AssetDetails.

Return type

oci.cloud_migrations.models.VmProperties