permalink |
---|
/ami_copy/ |
ami_copy
represents the aws_ami_copy
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withDeprecationTime()
fn withDescription()
fn withDestinationOutpostArn()
fn withEbsBlockDevice()
fn withEbsBlockDeviceMixin()
fn withEncrypted()
fn withEphemeralBlockDevice()
fn withEphemeralBlockDeviceMixin()
fn withKmsKeyId()
fn withName()
fn withSourceAmiId()
fn withSourceAmiRegion()
fn withTags()
fn withTagsAll()
fn withTimeouts()
fn withTimeoutsMixin()
obj ebs_block_device
obj ephemeral_block_device
obj timeouts
new()
aws.ami_copy.new
injects a new aws_ami_copy
Terraform resource
block into the root module document.
Additionally, this inserts a private function into the _ref
attribute that generates references to attributes of the
resource. For example, if you added a new instance to the root using:
# arguments omitted for brevity
aws.ami_copy.new('some_id')
You can get the reference to the id
field of the created aws.ami_copy
using the reference:
$._ref.aws_ami_copy.some_id.get('id')
This is the same as directly entering "${ aws_ami_copy.some_id.id }"
as the value.
NOTE: if you are chaining multiple resources together in a merge operation, you may not be able to use super
, self
,
or $
to refer to the root object. Instead, make an explicit outer object using local
.
Args:
resourceLabel
(string
): The name label of the block.deprecation_time
(string
): Set thedeprecation_time
field on the resulting resource block. Whennull
, thedeprecation_time
field will be omitted from the resulting object.description
(string
): Set thedescription
field on the resulting resource block. Whennull
, thedescription
field will be omitted from the resulting object.destination_outpost_arn
(string
): Set thedestination_outpost_arn
field on the resulting resource block. Whennull
, thedestination_outpost_arn
field will be omitted from the resulting object.encrypted
(bool
): Set theencrypted
field on the resulting resource block. Whennull
, theencrypted
field will be omitted from the resulting object.kms_key_id
(string
): Set thekms_key_id
field on the resulting resource block. Whennull
, thekms_key_id
field will be omitted from the resulting object.name
(string
): Set thename
field on the resulting resource block.source_ami_id
(string
): Set thesource_ami_id
field on the resulting resource block.source_ami_region
(string
): Set thesource_ami_region
field on the resulting resource block.tags
(obj
): Set thetags
field on the resulting resource block. Whennull
, thetags
field will be omitted from the resulting object.tags_all
(obj
): Set thetags_all
field on the resulting resource block. Whennull
, thetags_all
field will be omitted from the resulting object.ebs_block_device
(list[obj]
): Set theebs_block_device
field on the resulting resource block. Whennull
, theebs_block_device
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.ami_copy.ebs_block_device.new constructor.ephemeral_block_device
(list[obj]
): Set theephemeral_block_device
field on the resulting resource block. Whennull
, theephemeral_block_device
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.ami_copy.ephemeral_block_device.new constructor.timeouts
(obj
): Set thetimeouts
field on the resulting resource block. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.ami_copy.timeouts.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
aws.ami_copy.newAttrs
constructs a new object with attributes and blocks configured for the ami_copy
Terraform resource.
Unlike aws.ami_copy.new, this function will not inject the resource
block into the root Terraform document. Instead, this must be passed in as the attrs
argument for the
tf.withResource function to build a complete block.
This is most useful when you need to preprocess the attributes with functions, conditional, or looping logic prior to injecting into a complete block.
Args:
deprecation_time
(string
): Set thedeprecation_time
field on the resulting object. Whennull
, thedeprecation_time
field will be omitted from the resulting object.description
(string
): Set thedescription
field on the resulting object. Whennull
, thedescription
field will be omitted from the resulting object.destination_outpost_arn
(string
): Set thedestination_outpost_arn
field on the resulting object. Whennull
, thedestination_outpost_arn
field will be omitted from the resulting object.encrypted
(bool
): Set theencrypted
field on the resulting object. Whennull
, theencrypted
field will be omitted from the resulting object.kms_key_id
(string
): Set thekms_key_id
field on the resulting object. Whennull
, thekms_key_id
field will be omitted from the resulting object.name
(string
): Set thename
field on the resulting object.source_ami_id
(string
): Set thesource_ami_id
field on the resulting object.source_ami_region
(string
): Set thesource_ami_region
field on the resulting object.tags
(obj
): Set thetags
field on the resulting object. Whennull
, thetags
field will be omitted from the resulting object.tags_all
(obj
): Set thetags_all
field on the resulting object. Whennull
, thetags_all
field will be omitted from the resulting object.ebs_block_device
(list[obj]
): Set theebs_block_device
field on the resulting object. Whennull
, theebs_block_device
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.ami_copy.ebs_block_device.new constructor.ephemeral_block_device
(list[obj]
): Set theephemeral_block_device
field on the resulting object. Whennull
, theephemeral_block_device
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.ami_copy.ephemeral_block_device.new constructor.timeouts
(obj
): Set thetimeouts
field on the resulting object. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.ami_copy.timeouts.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
ami_copy
resource into the root Terraform configuration.
withDeprecationTime()
aws.string.withDeprecationTime
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the deprecation_time field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thedeprecation_time
field.
withDescription()
aws.string.withDescription
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the description field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thedescription
field.
withDestinationOutpostArn()
aws.string.withDestinationOutpostArn
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the destination_outpost_arn field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thedestination_outpost_arn
field.
withEbsBlockDevice()
aws.list[obj].withEbsBlockDevice
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the ebs_block_device field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the aws.list[obj].withEbsBlockDeviceMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theebs_block_device
field.
withEbsBlockDeviceMixin()
aws.list[obj].withEbsBlockDeviceMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the ebs_block_device field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the aws.list[obj].withEbsBlockDevice
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theebs_block_device
field.
withEncrypted()
aws.bool.withEncrypted
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the encrypted field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theencrypted
field.
withEphemeralBlockDevice()
aws.list[obj].withEphemeralBlockDevice
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the ephemeral_block_device field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the aws.list[obj].withEphemeralBlockDeviceMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theephemeral_block_device
field.
withEphemeralBlockDeviceMixin()
aws.list[obj].withEphemeralBlockDeviceMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the ephemeral_block_device field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the aws.list[obj].withEphemeralBlockDevice
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theephemeral_block_device
field.
withKmsKeyId()
aws.string.withKmsKeyId
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the kms_key_id field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thekms_key_id
field.
withName()
aws.string.withName
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the name field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thename
field.
withSourceAmiId()
aws.string.withSourceAmiId
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the source_ami_id field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thesource_ami_id
field.
withSourceAmiRegion()
aws.string.withSourceAmiRegion
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the source_ami_region field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thesource_ami_region
field.
withTags()
aws.obj.withTags
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the tags field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetags
field.
withTagsAll()
aws.obj.withTagsAll
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the tags_all field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetags_all
field.
withTimeouts()
aws.obj.withTimeouts
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will replace the map with the passed in value
. If you wish to instead merge the
passed in value to the existing map, use the aws.obj.withTimeoutsMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
withTimeoutsMixin()
aws.obj.withTimeoutsMixin
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will merge the passed in value to the existing map. If you wish
to instead replace the entire map with the passed in value
, use the aws.obj.withTimeouts
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
new()
aws.ami_copy.ebs_block_device.new
constructs a new object with attributes and blocks configured for the ebs_block_device
Terraform sub block.
Returns:
- An attribute object that represents the
ebs_block_device
sub block.
new()
aws.ami_copy.ephemeral_block_device.new
constructs a new object with attributes and blocks configured for the ephemeral_block_device
Terraform sub block.
Returns:
- An attribute object that represents the
ephemeral_block_device
sub block.
new()
aws.ami_copy.timeouts.new
constructs a new object with attributes and blocks configured for the timeouts
Terraform sub block.
Args:
create
(string
): Set thecreate
field on the resulting object. Whennull
, thecreate
field will be omitted from the resulting object.delete
(string
): Set thedelete
field on the resulting object. Whennull
, thedelete
field will be omitted from the resulting object.update
(string
): Set theupdate
field on the resulting object. Whennull
, theupdate
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
timeouts
sub block.