CfnProvisioningTemplatePropsMixin
- class aws_cdk.mixins_preview.aws_iot.mixins.CfnProvisioningTemplatePropsMixin(props, *, strategy=None)
Bases:
MixinCreates a fleet provisioning template.
- See:
- CloudformationResource:
AWS::IoT::ProvisioningTemplate
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_iot import mixins as iot_mixins cfn_provisioning_template_props_mixin = iot_mixins.CfnProvisioningTemplatePropsMixin(iot_mixins.CfnProvisioningTemplateMixinProps( description="description", enabled=False, pre_provisioning_hook=iot_mixins.CfnProvisioningTemplatePropsMixin.ProvisioningHookProperty( payload_version="payloadVersion", target_arn="targetArn" ), provisioning_role_arn="provisioningRoleArn", tags=[CfnTag( key="key", value="value" )], template_body="templateBody", template_name="templateName", template_type="templateType" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::IoT::ProvisioningTemplate.- Parameters:
props (
Union[CfnProvisioningTemplateMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['description', 'enabled', 'preProvisioningHook', 'provisioningRoleArn', 'tags', 'templateBody', 'templateName', 'templateType']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
ProvisioningHookProperty
- class CfnProvisioningTemplatePropsMixin.ProvisioningHookProperty(*, payload_version=None, target_arn=None)
Bases:
objectStructure that contains payloadVersion and targetArn.
Provisioning hooks can be used when fleet provisioning to validate device parameters before allowing the device to be provisioned.
- Parameters:
payload_version (
Optional[str]) – The payload that was sent to the target function. The valid payload is"2020-04-01".target_arn (
Optional[str]) – The ARN of the target function.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_iot import mixins as iot_mixins provisioning_hook_property = iot_mixins.CfnProvisioningTemplatePropsMixin.ProvisioningHookProperty( payload_version="payloadVersion", target_arn="targetArn" )
Attributes
- payload_version
The payload that was sent to the target function.
The valid payload is
"2020-04-01".
- target_arn
The ARN of the target function.