SecurityProfile constructor

SecurityProfile(
  1. String name, {
  2. SecurityProfileArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

SecurityProfile(
  String name, {
  SecurityProfileArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'gcp:networksecurity/securityProfile:SecurityProfile',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '9.36.1').merge(options),
        additionalSecretOutputs: const ['effectiveLabels', 'pulumiLabels'],
      ) {
  createTime = registerOutput<String>('createTime');
  customInterceptProfile = registerOutput<SecurityProfileCustomInterceptProfile?>('customInterceptProfile', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return SecurityProfileCustomInterceptProfile.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  customMirroringProfile = registerOutput<SecurityProfileCustomMirroringProfile?>('customMirroringProfile', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return SecurityProfileCustomMirroringProfile.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);
  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');
  parent = registerOutput<String?>('parent');
  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);
  selfLink = registerOutput<String>('selfLink');
  threatPreventionProfile = registerOutput<SecurityProfileThreatPreventionProfile?>('threatPreventionProfile', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return SecurityProfileThreatPreventionProfile.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  type = registerOutput<String>('type');
  updateTime = registerOutput<String>('updateTime');
  urlFilteringProfile = registerOutput<SecurityProfileUrlFilteringProfile?>('urlFilteringProfile', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return SecurityProfileUrlFilteringProfile.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}