ProtectionGroup constructor

ProtectionGroup(
  1. String name, {
  2. ProtectionGroupArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

ProtectionGroup(
  String name, {
  ProtectionGroupArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:shield/protectionGroup:ProtectionGroup',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  aggregation = registerOutput<String>('aggregation');
  members = registerOutput<List<String>?>('members', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
  pattern = registerOutput<String>('pattern');
  protectionGroupArn = registerOutput<String>('protectionGroupArn');
  protectionGroupId = registerOutput<String>('protectionGroupId');
  resourceType = registerOutput<String?>('resourceType');
  tags = registerOutput<Map<String, String>?>('tags', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  tagsAll = registerOutput<Map<String, String>>('tagsAll', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
}