permalink |
---|
/iot_certificate/ |
iot_certificate
represents the aws_iot_certificate
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
new()
aws.iot_certificate.new
injects a new aws_iot_certificate
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.iot_certificate.new('some_id')
You can get the reference to the id
field of the created aws.iot_certificate
using the reference:
$._ref.aws_iot_certificate.some_id.get('id')
This is the same as directly entering "${ aws_iot_certificate.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.active
(bool
): Set theactive
field on the resulting resource block.ca_pem
(string
): Set theca_pem
field on the resulting resource block. Whennull
, theca_pem
field will be omitted from the resulting object.certificate_pem
(string
): Set thecertificate_pem
field on the resulting resource block. Whennull
, thecertificate_pem
field will be omitted from the resulting object.csr
(string
): Set thecsr
field on the resulting resource block. Whennull
, thecsr
field will be omitted from the resulting object.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
aws.iot_certificate.newAttrs
constructs a new object with attributes and blocks configured for the iot_certificate
Terraform resource.
Unlike aws.iot_certificate.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:
active
(bool
): Set theactive
field on the resulting object.ca_pem
(string
): Set theca_pem
field on the resulting object. Whennull
, theca_pem
field will be omitted from the resulting object.certificate_pem
(string
): Set thecertificate_pem
field on the resulting object. Whennull
, thecertificate_pem
field will be omitted from the resulting object.csr
(string
): Set thecsr
field on the resulting object. Whennull
, thecsr
field will be omitted from the resulting object.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
iot_certificate
resource into the root Terraform configuration.
withActive()
aws.bool.withActive
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the active field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theactive
field.
withCaPem()
aws.string.withCaPem
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the ca_pem field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theca_pem
field.
withCertificatePem()
aws.string.withCertificatePem
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the certificate_pem field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thecertificate_pem
field.
withCsr()
aws.string.withCsr
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the csr field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thecsr
field.