This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.
AWS::GuardDuty::IPSet
The AWS::GuardDuty::IPSet resource helps you create a list of trusted IP
         addresses that you can use for secure communication with Amazon
         infrastructure and applications. Once you activate this list, GuardDuty will not
         generate findings when there is an activity associated with these safe IP addresses.
Only the users of the GuardDuty administrator account can manage this list. These settings are also applied to the member accounts.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::GuardDuty::IPSet", "Properties" : { "Activate" :Boolean, "DetectorId" :String, "ExpectedBucketOwner" :String, "Format" :String, "Location" :String, "Name" :String, "Tags" :[ TagItem, ... ]} }
YAML
Type: AWS::GuardDuty::IPSet Properties: Activate:BooleanDetectorId:StringExpectedBucketOwner:StringFormat:StringLocation:StringName:StringTags:- TagItem
Properties
- Activate
- 
                    A boolean value that determines if GuardDuty can start using this list for custom threat detection. For GuardDuty to prevent generating findings based on an activity associated with these entries, this list must be active. Required: No Type: Boolean Update requires: No interruption 
- DetectorId
- 
                    The unique ID of the detector of the GuardDuty account for which you want to create an IPSet. To find the detectorIdin the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.Required: No Type: String Minimum: 1Maximum: 300Update requires: Replacement 
- ExpectedBucketOwner
- 
                    The Amazon account ID that owns the Amazon S3 bucket specified in the Location field. When you provide this account ID, GuardDuty will validate that the S3 bucket belongs to this account. If you don't specify an account ID owner, GuardDuty doesn't perform any validation. Required: No Type: String Minimum: 12Maximum: 12Update requires: No interruption 
- Format
- 
                    The format of the file that contains the IPSet. For information about supported formats, see List formats in the Amazon GuardDuty User Guide. Required: Yes Type: String Allowed values: TXT | STIX | OTX_CSV | ALIEN_VAULT | PROOF_POINT | FIRE_EYEUpdate requires: Replacement 
- Location
- 
                    The URI of the file that contains the IPSet. Required: Yes Type: String Minimum: 1Maximum: 300Update requires: No interruption 
- Name
- 
                    The user-friendly name to identify the IPSet. The name of your list must be unique within an Amazon Web Services account and Region. Valid characters are alphanumeric, whitespace, dash (-), and underscores (_). Required: No Type: String Minimum: 1Maximum: 300Update requires: No interruption 
- 
                    The tags to be added to a new threat entity set resource. Each tag consists of a key and an optional value, both of which you define. For more information, see Tag. Required: No Type: Array of TagItem Update requires: No interruption 
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the unique ID of the IPSet.
For more information about using the Ref function, see Ref.
Fn::GetAtt
The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.
Examples
Declare an IPSet Resource
The following example shows how to declare a GuardDutyIPSet resource:
JSON
"myipset": { "Type" : "AWS::GuardDuty::IPSet", "Properties" : { "Activate" : True, "DetectorId" : "12abc34d567e8f4912ab3d45e67891f2", "ExpectedBucketOwner" : "111122223333", "Format" : "TXT", "Location" : "https://s3-us-west-2.amazonaws.com/amzn-s3-demo-bucket/myipset.txt", "Name" : "MyIPSet" } }
YAML
myipset: Type: AWS::GuardDuty::IPSet Properties: Activate: True DetectorId: "12abc34d567e8f4912ab3d45e67891f2" ExpectedBucketOwner : "111122223333" Format: "TXT" Location: "https://s3-us-west-2.amazonaws.com/amzn-s3-demo-bucket/myipset.txt" Name: "MyIPSet"