AuthzPolicy constructor

AuthzPolicy(
  1. String name, {
  2. AuthzPolicyArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

AuthzPolicy(
  String name, {
  AuthzPolicyArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'gcp:networksecurity/authzPolicy:AuthzPolicy',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '9.36.1').merge(options),
        additionalSecretOutputs: const ['effectiveLabels', 'pulumiLabels'],
      ) {
  action = registerOutput<String>('action');
  createTime = registerOutput<String>('createTime');
  customProvider = registerOutput<AuthzPolicyCustomProvider?>('customProvider', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return AuthzPolicyCustomProvider.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  deletionPolicy = registerOutput<String>('deletionPolicy');
  description = registerOutput<String?>('description');
  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);
  httpRules = registerOutput<List<AuthzPolicyHttpRule>?>('httpRules', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<AuthzPolicyHttpRule>(guardedValue, (value) => AuthzPolicyHttpRule.fromMap((value as Map).cast<String, dynamic>())); });
  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');
  networkRules = registerOutput<List<AuthzPolicyNetworkRule>?>('networkRules', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<AuthzPolicyNetworkRule>(guardedValue, (value) => AuthzPolicyNetworkRule.fromMap((value as Map).cast<String, dynamic>())); });
  policyProfile = registerOutput<String>('policyProfile');
  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);
  target = registerOutput<AuthzPolicyTarget>('target', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return AuthzPolicyTarget.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  updateTime = registerOutput<String>('updateTime');
}