AwsEc2Asset¶
- class oci.cloud_bridge.models.AwsEc2Asset(**kwargs)¶
Bases:
AssetAWS EC2 type of asset.
Attributes:
A constant which can be used with the asset_type property of a Asset.
A constant which can be used with the asset_type property of a Asset.
A constant which can be used with the asset_type property of a Asset.
A constant which can be used with the asset_type property of a Asset.
A constant which can be used with the asset_type property of a Asset.
A constant which can be used with the environment_type property of a Asset.
A constant which can be used with the environment_type property of a Asset.
A constant which can be used with the lifecycle_state property of a Asset.
A constant which can be used with the lifecycle_state property of a Asset.
Gets the asset_source_ids of this Asset.
[Required] Gets the asset_type of this Asset.
Gets the attached_ebs_volumes_cost of this AwsEc2Asset.
[Required] Gets the aws_ec2 of this AwsEc2Asset.
Gets the aws_ec2_cost of this AwsEc2Asset.
[Required] Gets the compartment_id of this Asset.
[Required] Gets the compute of this AwsEc2Asset.
Gets the defined_tags of this Asset.
Gets the display_name of this Asset.
Gets the environment_type of this Asset.
[Required] Gets the external_asset_key of this Asset.
Gets the freeform_tags of this Asset.
[Required] Gets the id of this Asset.
[Required] Gets the inventory_id of this Asset.
[Required] Gets the lifecycle_state of this Asset.
[Required] Gets the source_key of this Asset.
Gets the system_tags of this Asset.
[Required] Gets the time_created of this Asset.
[Required] Gets the time_updated of this Asset.
[Required] Gets the vm of this AwsEc2Asset.
Methods:
__init__(**kwargs)Initializes a new AwsEc2Asset 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 Asset. 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 Asset. This constant has a value of “AWS_EC2”
- ASSET_TYPE_INVENTORY_ASSET = 'INVENTORY_ASSET'¶
A constant which can be used with the asset_type property of a Asset. This constant has a value of “INVENTORY_ASSET”
- ASSET_TYPE_VM = 'VM'¶
A constant which can be used with the asset_type property of a Asset. 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 Asset. This constant has a value of “VMWARE_VM”
- ENVIRONMENT_TYPE_DESTINATION = 'DESTINATION'¶
A constant which can be used with the environment_type property of a Asset. This constant has a value of “DESTINATION”
- ENVIRONMENT_TYPE_SOURCE = 'SOURCE'¶
A constant which can be used with the environment_type property of a Asset. This constant has a value of “SOURCE”
- LIFECYCLE_STATE_ACTIVE = 'ACTIVE'¶
A constant which can be used with the lifecycle_state property of a Asset. This constant has a value of “ACTIVE”
- LIFECYCLE_STATE_DELETED = 'DELETED'¶
A constant which can be used with the lifecycle_state property of a Asset. This constant has a value of “DELETED”
- __init__(**kwargs)¶
Initializes a new AwsEc2Asset object with values from keyword arguments. The default value of the
asset_typeattribute of this class isAWS_EC2and 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 AwsEc2Asset.
inventory_id (str) – The value to assign to the inventory_id property of this AwsEc2Asset.
id (str) – The value to assign to the id property of this AwsEc2Asset.
compartment_id (str) – The value to assign to the compartment_id property of this AwsEc2Asset.
source_key (str) – The value to assign to the source_key property of this AwsEc2Asset.
external_asset_key (str) – The value to assign to the external_asset_key property of this AwsEc2Asset.
asset_type (str) – The value to assign to the asset_type property of this AwsEc2Asset. Allowed values for this property are: “VMWARE_VM”, “VM”, “INVENTORY_ASSET”, “AWS_EC2”, “AWS_EBS”
time_created (datetime) – The value to assign to the time_created property of this AwsEc2Asset.
time_updated (datetime) – The value to assign to the time_updated property of this AwsEc2Asset.
asset_source_ids (list[str]) – The value to assign to the asset_source_ids property of this AwsEc2Asset.
lifecycle_state (str) – The value to assign to the lifecycle_state property of this AwsEc2Asset. Allowed values for this property are: “ACTIVE”, “DELETED”
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this AwsEc2Asset.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this AwsEc2Asset.
system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this AwsEc2Asset.
environment_type (str) – The value to assign to the environment_type property of this AwsEc2Asset. Allowed values for this property are: “SOURCE”, “DESTINATION”
compute (oci.cloud_bridge.models.ComputeProperties) – The value to assign to the compute property of this AwsEc2Asset.
vm (oci.cloud_bridge.models.VmProperties) – The value to assign to the vm property of this AwsEc2Asset.
aws_ec2 (oci.cloud_bridge.models.AwsEc2Properties) – The value to assign to the aws_ec2 property of this AwsEc2Asset.
aws_ec2_cost (oci.cloud_bridge.models.MonthlyCostSummary) – The value to assign to the aws_ec2_cost property of this AwsEc2Asset.
attached_ebs_volumes_cost (oci.cloud_bridge.models.MonthlyCostSummary) – The value to assign to the attached_ebs_volumes_cost property of this AwsEc2Asset.
- property asset_source_ids¶
Gets the asset_source_ids of this Asset. List of asset source OCID.
- Returns
The asset_source_ids of this Asset.
- Return type
list[str]
- property asset_type¶
[Required] Gets the asset_type of this Asset. The type of asset.
Allowed values for this property are: “VMWARE_VM”, “VM”, “INVENTORY_ASSET”, “AWS_EC2”, “AWS_EBS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The asset_type of this Asset.
- Return type
str
- property attached_ebs_volumes_cost¶
Gets the attached_ebs_volumes_cost of this AwsEc2Asset.
- Returns
The attached_ebs_volumes_cost of this AwsEc2Asset.
- Return type
- property aws_ec2¶
[Required] Gets the aws_ec2 of this AwsEc2Asset.
- Returns
The aws_ec2 of this AwsEc2Asset.
- Return type
- property aws_ec2_cost¶
Gets the aws_ec2_cost of this AwsEc2Asset.
- Returns
The aws_ec2_cost of this AwsEc2Asset.
- Return type
- property compartment_id¶
[Required] Gets the compartment_id of this Asset. The OCID of the compartment to which an asset belongs to.
- Returns
The compartment_id of this Asset.
- Return type
str
- property compute¶
[Required] Gets the compute of this AwsEc2Asset.
- Returns
The compute of this AwsEc2Asset.
- Return type
- property defined_tags¶
Gets the defined_tags of this Asset. The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}
- Returns
The defined_tags of this Asset.
- Return type
dict(str, dict(str, object))
- property display_name¶
Gets the display_name of this Asset. Asset display name.
- Returns
The display_name of this Asset.
- Return type
str
- property environment_type¶
Gets the environment_type of this Asset. Specifies if this is the Source or Destination point for migration - different assets may be discovered depending on setting.
Allowed values for this property are: “SOURCE”, “DESTINATION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The environment_type of this Asset.
- Return type
str
- property external_asset_key¶
[Required] Gets the external_asset_key of this Asset. The key of the asset from the external environment.
- Returns
The external_asset_key of this Asset.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this Asset. The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {“Department”: “Finance”}
- Returns
The freeform_tags of this Asset.
- 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 id¶
[Required] Gets the id of this Asset. Asset OCID that is immutable on creation.
- Returns
The id of this Asset.
- Return type
str
- property inventory_id¶
[Required] Gets the inventory_id of this Asset. Inventory ID to which an asset belongs to.
- Returns
The inventory_id of this Asset.
- Return type
str
- property lifecycle_state¶
[Required] Gets the lifecycle_state of this Asset. The current state of the asset.
Allowed values for this property are: “ACTIVE”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The lifecycle_state of this Asset.
- Return type
str
- property source_key¶
[Required] Gets the source_key of this Asset. The source key that the asset belongs to.
- Returns
The source_key of this Asset.
- Return type
str
- property system_tags¶
Gets the system_tags of this Asset. The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
- Returns
The system_tags of this Asset.
- Return type
dict(str, dict(str, object))
- property time_created¶
[Required] Gets the time_created of this Asset. The time when the asset was created. An RFC3339 formatted datetime string.
- Returns
The time_created of this Asset.
- Return type
datetime
- property time_updated¶
[Required] Gets the time_updated of this Asset. The time when the asset was updated. An RFC3339 formatted datetime string.
- Returns
The time_updated of this Asset.
- Return type
datetime
- property vm¶
[Required] Gets the vm of this AwsEc2Asset.
- Returns
The vm of this AwsEc2Asset.
- Return type