1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. shield
  6. ProtectionGroup

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    A grouping of protected resources so they can be handled as a collective. This resource grouping improves the accuracy of detection and reduces false positives.

    Example Usage

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var protectionGroup = new AwsNative.Shield.ProtectionGroup("protectionGroup", new()
        {
            ProtectionGroupId = "ProtectionGroupForAllResources",
            Aggregation = AwsNative.Shield.ProtectionGroupAggregation.Sum,
            Pattern = AwsNative.Shield.ProtectionGroupPattern.All,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/shield"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := shield.NewProtectionGroup(ctx, "protectionGroup", &shield.ProtectionGroupArgs{
    			ProtectionGroupId: pulumi.String("ProtectionGroupForAllResources"),
    			Aggregation:       shield.ProtectionGroupAggregationSum,
    			Pattern:           shield.ProtectionGroupPatternAll,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const protectionGroup = new aws_native.shield.ProtectionGroup("protectionGroup", {
        protectionGroupId: "ProtectionGroupForAllResources",
        aggregation: aws_native.shield.ProtectionGroupAggregation.Sum,
        pattern: aws_native.shield.ProtectionGroupPattern.All,
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    protection_group = aws_native.shield.ProtectionGroup("protectionGroup",
        protection_group_id="ProtectionGroupForAllResources",
        aggregation=aws_native.shield.ProtectionGroupAggregation.SUM,
        pattern=aws_native.shield.ProtectionGroupPattern.ALL)
    

    Example coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var protectionGroup = new AwsNative.Shield.ProtectionGroup("protectionGroup", new()
        {
            ProtectionGroupId = "ProtectionGroupForAllResources",
            Aggregation = AwsNative.Shield.ProtectionGroupAggregation.Sum,
            Pattern = AwsNative.Shield.ProtectionGroupPattern.All,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/shield"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := shield.NewProtectionGroup(ctx, "protectionGroup", &shield.ProtectionGroupArgs{
    			ProtectionGroupId: pulumi.String("ProtectionGroupForAllResources"),
    			Aggregation:       shield.ProtectionGroupAggregationSum,
    			Pattern:           shield.ProtectionGroupPatternAll,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const protectionGroup = new aws_native.shield.ProtectionGroup("protectionGroup", {
        protectionGroupId: "ProtectionGroupForAllResources",
        aggregation: aws_native.shield.ProtectionGroupAggregation.Sum,
        pattern: aws_native.shield.ProtectionGroupPattern.All,
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    protection_group = aws_native.shield.ProtectionGroup("protectionGroup",
        protection_group_id="ProtectionGroupForAllResources",
        aggregation=aws_native.shield.ProtectionGroupAggregation.SUM,
        pattern=aws_native.shield.ProtectionGroupPattern.ALL)
    

    Example coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var protectionGroup = new AwsNative.Shield.ProtectionGroup("protectionGroup", new()
        {
            ProtectionGroupId = "ProtectionGroupForAllEIPResources",
            Aggregation = AwsNative.Shield.ProtectionGroupAggregation.Sum,
            Pattern = AwsNative.Shield.ProtectionGroupPattern.ByResourceType,
            ResourceType = AwsNative.Shield.ProtectionGroupResourceType.ElasticIpAllocation,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/shield"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := shield.NewProtectionGroup(ctx, "protectionGroup", &shield.ProtectionGroupArgs{
    			ProtectionGroupId: pulumi.String("ProtectionGroupForAllEIPResources"),
    			Aggregation:       shield.ProtectionGroupAggregationSum,
    			Pattern:           shield.ProtectionGroupPatternByResourceType,
    			ResourceType:      shield.ProtectionGroupResourceTypeElasticIpAllocation,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const protectionGroup = new aws_native.shield.ProtectionGroup("protectionGroup", {
        protectionGroupId: "ProtectionGroupForAllEIPResources",
        aggregation: aws_native.shield.ProtectionGroupAggregation.Sum,
        pattern: aws_native.shield.ProtectionGroupPattern.ByResourceType,
        resourceType: aws_native.shield.ProtectionGroupResourceType.ElasticIpAllocation,
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    protection_group = aws_native.shield.ProtectionGroup("protectionGroup",
        protection_group_id="ProtectionGroupForAllEIPResources",
        aggregation=aws_native.shield.ProtectionGroupAggregation.SUM,
        pattern=aws_native.shield.ProtectionGroupPattern.BY_RESOURCE_TYPE,
        resource_type=aws_native.shield.ProtectionGroupResourceType.ELASTIC_IP_ALLOCATION)
    

    Example coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var protectionGroup = new AwsNative.Shield.ProtectionGroup("protectionGroup", new()
        {
            ProtectionGroupId = "ProtectionGroupForAllEIPResources",
            Aggregation = AwsNative.Shield.ProtectionGroupAggregation.Sum,
            Pattern = AwsNative.Shield.ProtectionGroupPattern.ByResourceType,
            ResourceType = AwsNative.Shield.ProtectionGroupResourceType.ElasticIpAllocation,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/shield"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := shield.NewProtectionGroup(ctx, "protectionGroup", &shield.ProtectionGroupArgs{
    			ProtectionGroupId: pulumi.String("ProtectionGroupForAllEIPResources"),
    			Aggregation:       shield.ProtectionGroupAggregationSum,
    			Pattern:           shield.ProtectionGroupPatternByResourceType,
    			ResourceType:      shield.ProtectionGroupResourceTypeElasticIpAllocation,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const protectionGroup = new aws_native.shield.ProtectionGroup("protectionGroup", {
        protectionGroupId: "ProtectionGroupForAllEIPResources",
        aggregation: aws_native.shield.ProtectionGroupAggregation.Sum,
        pattern: aws_native.shield.ProtectionGroupPattern.ByResourceType,
        resourceType: aws_native.shield.ProtectionGroupResourceType.ElasticIpAllocation,
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    protection_group = aws_native.shield.ProtectionGroup("protectionGroup",
        protection_group_id="ProtectionGroupForAllEIPResources",
        aggregation=aws_native.shield.ProtectionGroupAggregation.SUM,
        pattern=aws_native.shield.ProtectionGroupPattern.BY_RESOURCE_TYPE,
        resource_type=aws_native.shield.ProtectionGroupResourceType.ELASTIC_IP_ALLOCATION)
    

    Example coming soon!

    Create ProtectionGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ProtectionGroup(name: string, args: ProtectionGroupArgs, opts?: CustomResourceOptions);
    @overload
    def ProtectionGroup(resource_name: str,
                        args: ProtectionGroupArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def ProtectionGroup(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        aggregation: Optional[ProtectionGroupAggregation] = None,
                        pattern: Optional[ProtectionGroupPattern] = None,
                        protection_group_id: Optional[str] = None,
                        members: Optional[Sequence[str]] = None,
                        resource_type: Optional[ProtectionGroupResourceType] = None,
                        tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
    func NewProtectionGroup(ctx *Context, name string, args ProtectionGroupArgs, opts ...ResourceOption) (*ProtectionGroup, error)
    public ProtectionGroup(string name, ProtectionGroupArgs args, CustomResourceOptions? opts = null)
    public ProtectionGroup(String name, ProtectionGroupArgs args)
    public ProtectionGroup(String name, ProtectionGroupArgs args, CustomResourceOptions options)
    
    type: aws-native:shield:ProtectionGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_shield_protection_group" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ProtectionGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ProtectionGroupArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ProtectionGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProtectionGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProtectionGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ProtectionGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ProtectionGroup resource accepts the following input properties:

    Aggregation Pulumi.AwsNative.Shield.ProtectionGroupAggregation
    Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.

    • Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.
    • Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.
    • Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include Amazon CloudFront and origin resources for CloudFront distributions.
    Pattern Pulumi.AwsNative.Shield.ProtectionGroupPattern
    The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a specified resource type.
    ProtectionGroupId string
    The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.
    Members List<string>
    The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set Pattern to ARBITRARY and you must not set it for any other Pattern setting.
    ResourceType Pulumi.AwsNative.Shield.ProtectionGroupResourceType
    The resource type to include in the protection group. All protected resources of this type are included in the protection group. Newly protected resources of this type are automatically added to the group. You must set this when you set Pattern to BY_RESOURCE_TYPE and you must not set it for any other Pattern setting.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    One or more tag key-value pairs for the Protection object.
    Aggregation ProtectionGroupAggregation
    Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.

    • Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.
    • Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.
    • Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include Amazon CloudFront and origin resources for CloudFront distributions.
    Pattern ProtectionGroupPattern
    The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a specified resource type.
    ProtectionGroupId string
    The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.
    Members []string
    The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set Pattern to ARBITRARY and you must not set it for any other Pattern setting.
    ResourceType ProtectionGroupResourceType
    The resource type to include in the protection group. All protected resources of this type are included in the protection group. Newly protected resources of this type are automatically added to the group. You must set this when you set Pattern to BY_RESOURCE_TYPE and you must not set it for any other Pattern setting.
    Tags TagArgs
    One or more tag key-value pairs for the Protection object.
    aggregation "SUM" | "MEAN" | "MAX"
    Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.

    • Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.
    • Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.
    • Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include Amazon CloudFront and origin resources for CloudFront distributions.
    pattern "ALL" | "ARBITRARY" | "BY_RESOURCE_TYPE"
    The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a specified resource type.
    protection_group_id string
    The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.
    members list(string)
    The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set Pattern to ARBITRARY and you must not set it for any other Pattern setting.
    resource_type "CLOUDFRONT_DISTRIBUTION" | "ROUTE_53_HOSTED_ZONE" | "ELASTIC_IP_ALLOCATION" | "CLASSIC_LOAD_BALANCER" | "APPLICATION_LOAD_BALANCER" | "GLOBAL_ACCELERATOR"
    The resource type to include in the protection group. All protected resources of this type are included in the protection group. Newly protected resources of this type are automatically added to the group. You must set this when you set Pattern to BY_RESOURCE_TYPE and you must not set it for any other Pattern setting.
    tags list(object)
    One or more tag key-value pairs for the Protection object.
    aggregation ProtectionGroupAggregation
    Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.

    • Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.
    • Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.
    • Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include Amazon CloudFront and origin resources for CloudFront distributions.
    pattern ProtectionGroupPattern
    The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a specified resource type.
    protectionGroupId String
    The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.
    members List<String>
    The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set Pattern to ARBITRARY and you must not set it for any other Pattern setting.
    resourceType ProtectionGroupResourceType
    The resource type to include in the protection group. All protected resources of this type are included in the protection group. Newly protected resources of this type are automatically added to the group. You must set this when you set Pattern to BY_RESOURCE_TYPE and you must not set it for any other Pattern setting.
    tags List<Tag>
    One or more tag key-value pairs for the Protection object.
    aggregation ProtectionGroupAggregation
    Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.

    • Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.
    • Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.
    • Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include Amazon CloudFront and origin resources for CloudFront distributions.
    pattern ProtectionGroupPattern
    The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a specified resource type.
    protectionGroupId string
    The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.
    members string[]
    The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set Pattern to ARBITRARY and you must not set it for any other Pattern setting.
    resourceType ProtectionGroupResourceType
    The resource type to include in the protection group. All protected resources of this type are included in the protection group. Newly protected resources of this type are automatically added to the group. You must set this when you set Pattern to BY_RESOURCE_TYPE and you must not set it for any other Pattern setting.
    tags Tag[]
    One or more tag key-value pairs for the Protection object.
    aggregation ProtectionGroupAggregation
    Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.

    • Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.
    • Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.
    • Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include Amazon CloudFront and origin resources for CloudFront distributions.
    pattern ProtectionGroupPattern
    The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a specified resource type.
    protection_group_id str
    The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.
    members Sequence[str]
    The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set Pattern to ARBITRARY and you must not set it for any other Pattern setting.
    resource_type ProtectionGroupResourceType
    The resource type to include in the protection group. All protected resources of this type are included in the protection group. Newly protected resources of this type are automatically added to the group. You must set this when you set Pattern to BY_RESOURCE_TYPE and you must not set it for any other Pattern setting.
    tags Sequence[TagArgs]
    One or more tag key-value pairs for the Protection object.
    aggregation "SUM" | "MEAN" | "MAX"
    Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.

    • Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.
    • Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.
    • Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include Amazon CloudFront and origin resources for CloudFront distributions.
    pattern "ALL" | "ARBITRARY" | "BY_RESOURCE_TYPE"
    The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a specified resource type.
    protectionGroupId String
    The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.
    members List<String>
    The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set Pattern to ARBITRARY and you must not set it for any other Pattern setting.
    resourceType "CLOUDFRONT_DISTRIBUTION" | "ROUTE_53_HOSTED_ZONE" | "ELASTIC_IP_ALLOCATION" | "CLASSIC_LOAD_BALANCER" | "APPLICATION_LOAD_BALANCER" | "GLOBAL_ACCELERATOR"
    The resource type to include in the protection group. All protected resources of this type are included in the protection group. Newly protected resources of this type are automatically added to the group. You must set this when you set Pattern to BY_RESOURCE_TYPE and you must not set it for any other Pattern setting.
    tags List<Property Map>
    One or more tag key-value pairs for the Protection object.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ProtectionGroup resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    ProtectionGroupArn string
    The ARN (Amazon Resource Name) of the protection group.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProtectionGroupArn string
    The ARN (Amazon Resource Name) of the protection group.
    id string
    The provider-assigned unique ID for this managed resource.
    protection_group_arn string
    The ARN (Amazon Resource Name) of the protection group.
    id String
    The provider-assigned unique ID for this managed resource.
    protectionGroupArn String
    The ARN (Amazon Resource Name) of the protection group.
    id string
    The provider-assigned unique ID for this managed resource.
    protectionGroupArn string
    The ARN (Amazon Resource Name) of the protection group.
    id str
    The provider-assigned unique ID for this managed resource.
    protection_group_arn str
    The ARN (Amazon Resource Name) of the protection group.
    id String
    The provider-assigned unique ID for this managed resource.
    protectionGroupArn String
    The ARN (Amazon Resource Name) of the protection group.

    Look up Existing ProtectionGroup Resource

    Get an existing ProtectionGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): ProtectionGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> ProtectionGroup
    func GetProtectionGroup(ctx *Context, name string, id IDInput, state *ProtectionGroupState, opts ...ResourceOption) (*ProtectionGroup, error)
    public static ProtectionGroup Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static ProtectionGroup get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingProtectionGroup:    type: aws-native:shield:ProtectionGroup    get:      id: ${id}
    import {
      to = aws-native_shield_protection_group.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state ProtectionGroupState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    ProtectionGroupAggregation

    Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.

    • Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.
    • Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.
    • Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include Amazon CloudFront and origin resources for CloudFront distributions.
    NameValue
    SumSUM
    MeanMEAN
    MaxMAX
    NameValue
    ProtectionGroupAggregationSumSUM
    ProtectionGroupAggregationMeanMEAN
    ProtectionGroupAggregationMaxMAX
    Value
    SUM
    MEAN
    MAX
    NameValue
    SumSUM
    MeanMEAN
    MaxMAX
    NameValue
    SumSUM
    MeanMEAN
    MaxMAX
    NameValue
    SUMSUM
    MEANMEAN
    MAXMAX
    Value
    SUM
    MEAN
    MAX

    ProtectionGroupPattern

    The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a specified resource type.

    NameValue
    AllALL
    ArbitraryARBITRARY
    ByResourceTypeBY_RESOURCE_TYPE
    NameValue
    ProtectionGroupPatternAllALL
    ProtectionGroupPatternArbitraryARBITRARY
    ProtectionGroupPatternByResourceTypeBY_RESOURCE_TYPE
    Value
    ALL
    ARBITRARY
    BY_RESOURCE_TYPE
    NameValue
    AllALL
    ArbitraryARBITRARY
    ByResourceTypeBY_RESOURCE_TYPE
    NameValue
    AllALL
    ArbitraryARBITRARY
    ByResourceTypeBY_RESOURCE_TYPE
    NameValue
    ALLALL
    ARBITRARYARBITRARY
    BY_RESOURCE_TYPEBY_RESOURCE_TYPE
    Value
    ALL
    ARBITRARY
    BY_RESOURCE_TYPE

    ProtectionGroupResourceType

    The resource type to include in the protection group. All protected resources of this type are included in the protection group. Newly protected resources of this type are automatically added to the group. You must set this when you set Pattern to BY_RESOURCE_TYPE and you must not set it for any other Pattern setting.

    NameValue
    CloudfrontDistributionCLOUDFRONT_DISTRIBUTION
    Route53HostedZoneROUTE_53_HOSTED_ZONE
    ElasticIpAllocationELASTIC_IP_ALLOCATION
    ClassicLoadBalancerCLASSIC_LOAD_BALANCER
    ApplicationLoadBalancerAPPLICATION_LOAD_BALANCER
    GlobalAcceleratorGLOBAL_ACCELERATOR
    NameValue
    ProtectionGroupResourceTypeCloudfrontDistributionCLOUDFRONT_DISTRIBUTION
    ProtectionGroupResourceTypeRoute53HostedZoneROUTE_53_HOSTED_ZONE
    ProtectionGroupResourceTypeElasticIpAllocationELASTIC_IP_ALLOCATION
    ProtectionGroupResourceTypeClassicLoadBalancerCLASSIC_LOAD_BALANCER
    ProtectionGroupResourceTypeApplicationLoadBalancerAPPLICATION_LOAD_BALANCER
    ProtectionGroupResourceTypeGlobalAcceleratorGLOBAL_ACCELERATOR
    Value
    CLOUDFRONT_DISTRIBUTION
    ROUTE_53_HOSTED_ZONE
    ELASTIC_IP_ALLOCATION
    CLASSIC_LOAD_BALANCER
    APPLICATION_LOAD_BALANCER
    GLOBAL_ACCELERATOR
    NameValue
    CloudfrontDistributionCLOUDFRONT_DISTRIBUTION
    Route53HostedZoneROUTE_53_HOSTED_ZONE
    ElasticIpAllocationELASTIC_IP_ALLOCATION
    ClassicLoadBalancerCLASSIC_LOAD_BALANCER
    ApplicationLoadBalancerAPPLICATION_LOAD_BALANCER
    GlobalAcceleratorGLOBAL_ACCELERATOR
    NameValue
    CloudfrontDistributionCLOUDFRONT_DISTRIBUTION
    Route53HostedZoneROUTE_53_HOSTED_ZONE
    ElasticIpAllocationELASTIC_IP_ALLOCATION
    ClassicLoadBalancerCLASSIC_LOAD_BALANCER
    ApplicationLoadBalancerAPPLICATION_LOAD_BALANCER
    GlobalAcceleratorGLOBAL_ACCELERATOR
    NameValue
    CLOUDFRONT_DISTRIBUTIONCLOUDFRONT_DISTRIBUTION
    ROUTE53_HOSTED_ZONEROUTE_53_HOSTED_ZONE
    ELASTIC_IP_ALLOCATIONELASTIC_IP_ALLOCATION
    CLASSIC_LOAD_BALANCERCLASSIC_LOAD_BALANCER
    APPLICATION_LOAD_BALANCERAPPLICATION_LOAD_BALANCER
    GLOBAL_ACCELERATORGLOBAL_ACCELERATOR
    Value
    CLOUDFRONT_DISTRIBUTION
    ROUTE_53_HOSTED_ZONE
    ELASTIC_IP_ALLOCATION
    CLASSIC_LOAD_BALANCER
    APPLICATION_LOAD_BALANCER
    GLOBAL_ACCELERATOR

    Tag, TagArgs

    A set of tags to apply to the resource.

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial