permalink |
---|
/cloudfront_continuous_deployment_policy/ |
cloudfront_continuous_deployment_policy
represents the aws_cloudfront_continuous_deployment_policy
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withEnabled()
fn withStagingDistributionDnsNames()
fn withStagingDistributionDnsNamesMixin()
fn withTrafficConfig()
fn withTrafficConfigMixin()
obj staging_distribution_dns_names
obj traffic_config
new()
aws.cloudfront_continuous_deployment_policy.new
injects a new aws_cloudfront_continuous_deployment_policy
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.cloudfront_continuous_deployment_policy.new('some_id')
You can get the reference to the id
field of the created aws.cloudfront_continuous_deployment_policy
using the reference:
$._ref.aws_cloudfront_continuous_deployment_policy.some_id.get('id')
This is the same as directly entering "${ aws_cloudfront_continuous_deployment_policy.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.enabled
(bool
): Set theenabled
field on the resulting resource block.staging_distribution_dns_names
(list[obj]
): Set thestaging_distribution_dns_names
field on the resulting resource block. Whennull
, thestaging_distribution_dns_names
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.cloudfront_continuous_deployment_policy.staging_distribution_dns_names.new constructor.traffic_config
(list[obj]
): Set thetraffic_config
field on the resulting resource block. Whennull
, thetraffic_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.cloudfront_continuous_deployment_policy.traffic_config.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
aws.cloudfront_continuous_deployment_policy.newAttrs
constructs a new object with attributes and blocks configured for the cloudfront_continuous_deployment_policy
Terraform resource.
Unlike aws.cloudfront_continuous_deployment_policy.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:
enabled
(bool
): Set theenabled
field on the resulting object.staging_distribution_dns_names
(list[obj]
): Set thestaging_distribution_dns_names
field on the resulting object. Whennull
, thestaging_distribution_dns_names
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.cloudfront_continuous_deployment_policy.staging_distribution_dns_names.new constructor.traffic_config
(list[obj]
): Set thetraffic_config
field on the resulting object. Whennull
, thetraffic_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.cloudfront_continuous_deployment_policy.traffic_config.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
cloudfront_continuous_deployment_policy
resource into the root Terraform configuration.
withEnabled()
aws.bool.withEnabled
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the enabled field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theenabled
field.
withStagingDistributionDnsNames()
aws.list[obj].withStagingDistributionDnsNames
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the staging_distribution_dns_names 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].withStagingDistributionDnsNamesMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thestaging_distribution_dns_names
field.
withStagingDistributionDnsNamesMixin()
aws.list[obj].withStagingDistributionDnsNamesMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the staging_distribution_dns_names 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].withStagingDistributionDnsNames
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thestaging_distribution_dns_names
field.
withTrafficConfig()
aws.list[obj].withTrafficConfig
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the traffic_config 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].withTrafficConfigMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thetraffic_config
field.
withTrafficConfigMixin()
aws.list[obj].withTrafficConfigMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the traffic_config 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].withTrafficConfig
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thetraffic_config
field.
new()
aws.cloudfront_continuous_deployment_policy.staging_distribution_dns_names.new
constructs a new object with attributes and blocks configured for the staging_distribution_dns_names
Terraform sub block.
Args:
items
(list
): Set theitems
field on the resulting object. Whennull
, theitems
field will be omitted from the resulting object.quantity
(number
): Set thequantity
field on the resulting object.
Returns:
- An attribute object that represents the
staging_distribution_dns_names
sub block.
new()
aws.cloudfront_continuous_deployment_policy.traffic_config.new
constructs a new object with attributes and blocks configured for the traffic_config
Terraform sub block.
Args:
type
(string
): Set thetype
field on the resulting object.single_header_config
(list[obj]
): Set thesingle_header_config
field on the resulting object. Whennull
, thesingle_header_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.cloudfront_continuous_deployment_policy.traffic_config.single_header_config.new constructor.single_weight_config
(list[obj]
): Set thesingle_weight_config
field on the resulting object. Whennull
, thesingle_weight_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.cloudfront_continuous_deployment_policy.traffic_config.single_weight_config.new constructor.
Returns:
- An attribute object that represents the
traffic_config
sub block.
new()
aws.cloudfront_continuous_deployment_policy.traffic_config.single_header_config.new
constructs a new object with attributes and blocks configured for the single_header_config
Terraform sub block.
Args:
header
(string
): Set theheader
field on the resulting object.value
(string
): Set thevalue
field on the resulting object.
Returns:
- An attribute object that represents the
single_header_config
sub block.
new()
aws.cloudfront_continuous_deployment_policy.traffic_config.single_weight_config.new
constructs a new object with attributes and blocks configured for the single_weight_config
Terraform sub block.
Args:
weight
(number
): Set theweight
field on the resulting object.session_stickiness_config
(list[obj]
): Set thesession_stickiness_config
field on the resulting object. Whennull
, thesession_stickiness_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.cloudfront_continuous_deployment_policy.traffic_config.single_weight_config.session_stickiness_config.new constructor.
Returns:
- An attribute object that represents the
single_weight_config
sub block.
new()
aws.cloudfront_continuous_deployment_policy.traffic_config.single_weight_config.session_stickiness_config.new
constructs a new object with attributes and blocks configured for the session_stickiness_config
Terraform sub block.
Args:
idle_ttl
(number
): Set theidle_ttl
field on the resulting object.maximum_ttl
(number
): Set themaximum_ttl
field on the resulting object.
Returns:
- An attribute object that represents the
session_stickiness_config
sub block.