ResourcePolicyAttachment constructor

ResourcePolicyAttachment(
  1. String name, {
  2. ResourcePolicyAttachmentArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new ResourcePolicyAttachment. name The Pulumi resource name. args Arguments used to configure this ResourcePolicyAttachment. The set of arguments for ResourcePolicyAttachment. options Resource options controlling this resource's behavior.

Implementation

ResourcePolicyAttachment(
  String name, {
  ResourcePolicyAttachmentArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'gcp:compute/resourcePolicyAttachment:ResourcePolicyAttachment',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '9.36.1').merge(options),
      ) {
  deletionPolicy = registerOutput<String>('deletionPolicy');
  instance = registerOutput<String>('instance');
  this.name = registerOutput<String>('name');
  project = registerOutput<String>('project');
  zone = registerOutput<String>('zone');
}