alicloud.ecs.CopyImage
Explore with Pulumi AI
Create CopyImage Resource
new CopyImage(name: string, args: CopyImageArgs, opts?: CustomResourceOptions);
@overload
def CopyImage(resource_name: str,
opts: Optional[ResourceOptions] = None,
delete_auto_snapshot: Optional[bool] = None,
description: Optional[str] = None,
encrypted: Optional[bool] = None,
force: Optional[bool] = None,
image_name: Optional[str] = None,
kms_key_id: Optional[str] = None,
name: Optional[str] = None,
source_image_id: Optional[str] = None,
source_region_id: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None)
@overload
def CopyImage(resource_name: str,
args: CopyImageArgs,
opts: Optional[ResourceOptions] = None)
func NewCopyImage(ctx *Context, name string, args CopyImageArgs, opts ...ResourceOption) (*CopyImage, error)
public CopyImage(string name, CopyImageArgs args, CustomResourceOptions? opts = null)
public CopyImage(String name, CopyImageArgs args)
public CopyImage(String name, CopyImageArgs args, CustomResourceOptions options)
type: alicloud:ecs:CopyImage
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CopyImageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CopyImageArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CopyImageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CopyImageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CopyImageArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CopyImage Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The CopyImage resource accepts the following input properties:
- Source
Image stringId - Source
Region stringId - Delete
Auto boolSnapshot - Description string
- Encrypted bool
- Force bool
- Image
Name string - Kms
Key stringId - Name string
Attribute 'name' has been deprecated from version 1.69.0. Use
image_name
instead.- Dictionary<string, object>
- Source
Image stringId - Source
Region stringId - Delete
Auto boolSnapshot - Description string
- Encrypted bool
- Force bool
- Image
Name string - Kms
Key stringId - Name string
Attribute 'name' has been deprecated from version 1.69.0. Use
image_name
instead.- map[string]interface{}
- source
Image StringId - source
Region StringId - delete
Auto BooleanSnapshot - description String
- encrypted Boolean
- force Boolean
- image
Name String - kms
Key StringId - name String
Attribute 'name' has been deprecated from version 1.69.0. Use
image_name
instead.- Map<String,Object>
- source
Image stringId - source
Region stringId - delete
Auto booleanSnapshot - description string
- encrypted boolean
- force boolean
- image
Name string - kms
Key stringId - name string
Attribute 'name' has been deprecated from version 1.69.0. Use
image_name
instead.- {[key: string]: any}
- source_
image_ strid - source_
region_ strid - delete_
auto_ boolsnapshot - description str
- encrypted bool
- force bool
- image_
name str - kms_
key_ strid - name str
Attribute 'name' has been deprecated from version 1.69.0. Use
image_name
instead.- Mapping[str, Any]
- source
Image StringId - source
Region StringId - delete
Auto BooleanSnapshot - description String
- encrypted Boolean
- force Boolean
- image
Name String - kms
Key StringId - name String
Attribute 'name' has been deprecated from version 1.69.0. Use
image_name
instead.- Map<Any>
Outputs
All input properties are implicitly available as output properties. Additionally, the CopyImage resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing CopyImage Resource
Get an existing CopyImage resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CopyImageState, opts?: CustomResourceOptions): CopyImage
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
delete_auto_snapshot: Optional[bool] = None,
description: Optional[str] = None,
encrypted: Optional[bool] = None,
force: Optional[bool] = None,
image_name: Optional[str] = None,
kms_key_id: Optional[str] = None,
name: Optional[str] = None,
source_image_id: Optional[str] = None,
source_region_id: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None) -> CopyImage
func GetCopyImage(ctx *Context, name string, id IDInput, state *CopyImageState, opts ...ResourceOption) (*CopyImage, error)
public static CopyImage Get(string name, Input<string> id, CopyImageState? state, CustomResourceOptions? opts = null)
public static CopyImage get(String name, Output<String> id, CopyImageState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Delete
Auto boolSnapshot - Description string
- Encrypted bool
- Force bool
- Image
Name string - Kms
Key stringId - Name string
Attribute 'name' has been deprecated from version 1.69.0. Use
image_name
instead.- Source
Image stringId - Source
Region stringId - Dictionary<string, object>
- Delete
Auto boolSnapshot - Description string
- Encrypted bool
- Force bool
- Image
Name string - Kms
Key stringId - Name string
Attribute 'name' has been deprecated from version 1.69.0. Use
image_name
instead.- Source
Image stringId - Source
Region stringId - map[string]interface{}
- delete
Auto BooleanSnapshot - description String
- encrypted Boolean
- force Boolean
- image
Name String - kms
Key StringId - name String
Attribute 'name' has been deprecated from version 1.69.0. Use
image_name
instead.- source
Image StringId - source
Region StringId - Map<String,Object>
- delete
Auto booleanSnapshot - description string
- encrypted boolean
- force boolean
- image
Name string - kms
Key stringId - name string
Attribute 'name' has been deprecated from version 1.69.0. Use
image_name
instead.- source
Image stringId - source
Region stringId - {[key: string]: any}
- delete_
auto_ boolsnapshot - description str
- encrypted bool
- force bool
- image_
name str - kms_
key_ strid - name str
Attribute 'name' has been deprecated from version 1.69.0. Use
image_name
instead.- source_
image_ strid - source_
region_ strid - Mapping[str, Any]
- delete
Auto BooleanSnapshot - description String
- encrypted Boolean
- force Boolean
- image
Name String - kms
Key StringId - name String
Attribute 'name' has been deprecated from version 1.69.0. Use
image_name
instead.- source
Image StringId - source
Region StringId - Map<Any>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.