PolicyAttachment constructor
PolicyAttachment(
- String name, {
- PolicyAttachmentArgs? args,
- CustomResourceOptions? options,
Creates a new PolicyAttachment.
name The Pulumi resource name.
args Arguments used to configure this PolicyAttachment. The set of arguments for PolicyAttachment.
options Resource options controlling this resource's behavior.
Implementation
PolicyAttachment(
String name, {
PolicyAttachmentArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:iot/policyAttachment:PolicyAttachment',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
) {
policy = registerOutput<String>('policy');
region = registerOutput<String>('region');
target = registerOutput<String>('target');
}