DeployPolicy constructor
DeployPolicy(
- String name, {
- DeployPolicyArgs? args,
- CustomResourceOptions? options,
Creates a new DeployPolicy.
name The Pulumi resource name.
args Arguments used to configure this DeployPolicy. The set of arguments for DeployPolicy.
options Resource options controlling this resource's behavior.
Implementation
DeployPolicy(
String name, {
DeployPolicyArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'gcp:clouddeploy/deployPolicy:DeployPolicy',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '9.36.1').merge(options),
additionalSecretOutputs: const ['effectiveLabels', 'pulumiLabels'],
) {
annotations = registerOutput<Map<String, String>?>('annotations', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
createTime = registerOutput<String>('createTime');
deletionPolicy = registerOutput<String>('deletionPolicy');
description = registerOutput<String?>('description');
effectiveAnnotations = registerOutput<Map<String, String>>('effectiveAnnotations', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
effectiveLabels = registerOutput<Map<String, String>>('effectiveLabels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); }, isSecret: true);
etag = registerOutput<String>('etag');
labels = registerOutput<Map<String, String>?>('labels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
location = registerOutput<String>('location');
this.name = registerOutput<String>('name');
project = registerOutput<String>('project');
pulumiLabels = registerOutput<Map<String, String>>('pulumiLabels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); }, isSecret: true);
rules = registerOutput<List<DeployPolicyRule>>('rules', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<DeployPolicyRule>(guardedValue, (value) => DeployPolicyRule.fromMap((value as Map).cast<String, dynamic>())); });
selectors = registerOutput<List<DeployPolicySelector>>('selectors', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<DeployPolicySelector>(guardedValue, (value) => DeployPolicySelector.fromMap((value as Map).cast<String, dynamic>())); });
suspended = registerOutput<bool?>('suspended');
uid = registerOutput<String>('uid');
updateTime = registerOutput<String>('updateTime');
}