Show / Hide Table of Contents

Class IPSet

Provides a resource to manage a GuardDuty IPSet.

Note: Currently in GuardDuty, users from member accounts cannot upload and further manage IPSets. IPSets that are uploaded by the master account are imposed on GuardDuty functionality in its member accounts. See the GuardDuty API Documentation

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var master = new Aws.GuardDuty.Detector("master", new Aws.GuardDuty.DetectorArgs
    {
        Enable = true,
    });
    var bucket = new Aws.S3.Bucket("bucket", new Aws.S3.BucketArgs
    {
        Acl = "private",
    });
    var myIPSetBucketObject = new Aws.S3.BucketObject("myIPSetBucketObject", new Aws.S3.BucketObjectArgs
    {
        Acl = "public-read",
        Bucket = bucket.Id,
        Content = @"10.0.0.0/8

",
        Key = "MyIPSet",
    });
    var myIPSetIPSet = new Aws.GuardDuty.IPSet("myIPSetIPSet", new Aws.GuardDuty.IPSetArgs
    {
        Activate = true,
        DetectorId = master.Id,
        Format = "TXT",
        Location = Output.Tuple(myIPSetBucketObject.Bucket, myIPSetBucketObject.Key).Apply(values =>
        {
            var bucket = values.Item1;
            var key = values.Item2;
            return $"https://s3.amazonaws.com/{bucket}/{key}";
        }),
    });
}

}
Inheritance
System.Object
Resource
CustomResource
IPSet
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.GuardDuty
Assembly: Pulumi.Aws.dll
Syntax
public class IPSet : CustomResource

Constructors

View Source

IPSet(String, IPSetArgs, CustomResourceOptions)

Create a IPSet resource with the given unique name, arguments, and options.

Declaration
public IPSet(string name, IPSetArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

IPSetArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Activate

Specifies whether GuardDuty is to start using the uploaded IPSet.

Declaration
public Output<bool> Activate { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

DetectorId

The detector ID of the GuardDuty.

Declaration
public Output<string> DetectorId { get; }
Property Value
Type Description
Output<System.String>
View Source

Format

The format of the file that contains the IPSet. Valid values: TXT | STIX | OTX_CSV | ALIEN_VAULT | PROOF_POINT | FIRE_EYE

Declaration
public Output<string> Format { get; }
Property Value
Type Description
Output<System.String>
View Source

Location

The URI of the file that contains the IPSet.

Declaration
public Output<string> Location { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

The friendly name to identify the IPSet.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, IPSetState, CustomResourceOptions)

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

Declaration
public static IPSet Get(string name, Input<string> id, IPSetState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

IPSetState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
IPSet
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.