CopyImage

Create a CopyImage Resource

def CopyImage(resource_name, opts=None, description=None, encrypted=None, force=None, image_name=None, kms_key_id=None, name=None, source_image_id=None, source_region_id=None, tags=None, __props__=None);
func NewCopyImage(ctx *Context, name string, args CopyImageArgs, opts ...ResourceOption) (*CopyImage, error)
public CopyImage(string name, CopyImageArgs args, CustomResourceOptions? opts = null)
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.
opts ResourceOptions
A bag of options that control this 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.

CopyImage Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The CopyImage resource accepts the following input properties:

SourceImageId string
SourceRegionId string
Description string
Encrypted bool
Force bool
ImageName string
KmsKeyId string
Name string

Deprecated: Attribute 'name' has been deprecated from version 1.69.0. Use image_name instead.

Tags Dictionary<string, object>
SourceImageId string
SourceRegionId string
Description string
Encrypted bool
Force bool
ImageName string
KmsKeyId string
Name string

Deprecated: Attribute 'name' has been deprecated from version 1.69.0. Use image_name instead.

Tags map[string]interface{}
sourceImageId string
sourceRegionId string
description string
encrypted boolean
force boolean
imageName string
kmsKeyId string
name string

Deprecated: Attribute 'name' has been deprecated from version 1.69.0. Use image_name instead.

tags {[key: string]: any}
source_image_id str
source_region_id str
description str
encrypted bool
force bool
image_name str
kms_key_id str
name str

Deprecated: Attribute 'name' has been deprecated from version 1.69.0. Use image_name instead.

tags Dict[str, 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 str
The provider-assigned unique ID for this managed resource.

Look up an 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
static get(resource_name, id, opts=None, description=None, encrypted=None, force=None, image_name=None, kms_key_id=None, name=None, source_image_id=None, source_region_id=None, tags=None, __props__=None);
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)
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.

The following state arguments are supported:

Description string
Encrypted bool
Force bool
ImageName string
KmsKeyId string
Name string

Deprecated: Attribute 'name' has been deprecated from version 1.69.0. Use image_name instead.

SourceImageId string
SourceRegionId string
Tags Dictionary<string, object>
Description string
Encrypted bool
Force bool
ImageName string
KmsKeyId string
Name string

Deprecated: Attribute 'name' has been deprecated from version 1.69.0. Use image_name instead.

SourceImageId string
SourceRegionId string
Tags map[string]interface{}
description string
encrypted boolean
force boolean
imageName string
kmsKeyId string
name string

Deprecated: Attribute 'name' has been deprecated from version 1.69.0. Use image_name instead.

sourceImageId string
sourceRegionId string
tags {[key: string]: any}
description str
encrypted bool
force bool
image_name str
kms_key_id str
name str

Deprecated: Attribute 'name' has been deprecated from version 1.69.0. Use image_name instead.

source_image_id str
source_region_id str
tags Dict[str, Any]

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.