1. Packages
  2. Aviatrix
  3. API Docs
  4. AviatrixAwsGuardDuty
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

aviatrix.AviatrixAwsGuardDuty

Explore with Pulumi AI

aviatrix logo
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

    Import

    aws_guard_duty resource can be imported with the account_name and region in the form “account_name~~region”, e.g.

     $ pulumi import aviatrix:index/aviatrixAwsGuardDuty:AviatrixAwsGuardDuty test_aws_guard_duty devops-acc~~us-west-1
    

    Example Usage

    using System.Collections.Generic;
    using Pulumi;
    using Aviatrix = Pulumi.Aviatrix;
    
    return await Deployment.RunAsync(() => 
    {
        // Configure AWS GuardDuty 
        var testAwsGuardDuty = new Aviatrix.AviatrixAwsGuardDuty("testAwsGuardDuty", new()
        {
            AccountName = aviatrix_account.Account_1.Account_name,
            Region = "us-west-1",
            ExcludedIps = new[]
            {
                "127.0.0.1",
                "10.0.0.1",
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/astipkovits/pulumi-aviatrix/sdk/go/aviatrix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := aviatrix.NewAviatrixAwsGuardDuty(ctx, "testAwsGuardDuty", &aviatrix.AviatrixAwsGuardDutyArgs{
    			AccountName: pulumi.Any(aviatrix_account.Account_1.Account_name),
    			Region:      pulumi.String("us-west-1"),
    			ExcludedIps: pulumi.StringArray{
    				pulumi.String("127.0.0.1"),
    				pulumi.String("10.0.0.1"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aviatrix.AviatrixAwsGuardDuty;
    import com.pulumi.aviatrix.AviatrixAwsGuardDutyArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var testAwsGuardDuty = new AviatrixAwsGuardDuty("testAwsGuardDuty", AviatrixAwsGuardDutyArgs.builder()        
                .accountName(aviatrix_account.account_1().account_name())
                .region("us-west-1")
                .excludedIps(            
                    "127.0.0.1",
                    "10.0.0.1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aviatrix as aviatrix
    
    # Configure AWS GuardDuty 
    test_aws_guard_duty = aviatrix.AviatrixAwsGuardDuty("testAwsGuardDuty",
        account_name=aviatrix_account["account_1"]["account_name"],
        region="us-west-1",
        excluded_ips=[
            "127.0.0.1",
            "10.0.0.1",
        ])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aviatrix from "@astipkovits/aviatrix";
    
    // Configure AWS GuardDuty 
    const testAwsGuardDuty = new aviatrix.AviatrixAwsGuardDuty("testAwsGuardDuty", {
        accountName: aviatrix_account.account_1.account_name,
        region: "us-west-1",
        excludedIps: [
            "127.0.0.1",
            "10.0.0.1",
        ],
    });
    
    resources:
      # Configure AWS GuardDuty
      testAwsGuardDuty:
        type: aviatrix:AviatrixAwsGuardDuty
        properties:
          accountName: ${aviatrix_account.account_1.account_name}
          region: us-west-1
          excludedIps:
            - 127.0.0.1
            - 10.0.0.1
    

    Create AviatrixAwsGuardDuty Resource

    new AviatrixAwsGuardDuty(name: string, args: AviatrixAwsGuardDutyArgs, opts?: CustomResourceOptions);
    @overload
    def AviatrixAwsGuardDuty(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             account_name: Optional[str] = None,
                             excluded_ips: Optional[Sequence[str]] = None,
                             region: Optional[str] = None)
    @overload
    def AviatrixAwsGuardDuty(resource_name: str,
                             args: AviatrixAwsGuardDutyArgs,
                             opts: Optional[ResourceOptions] = None)
    func NewAviatrixAwsGuardDuty(ctx *Context, name string, args AviatrixAwsGuardDutyArgs, opts ...ResourceOption) (*AviatrixAwsGuardDuty, error)
    public AviatrixAwsGuardDuty(string name, AviatrixAwsGuardDutyArgs args, CustomResourceOptions? opts = null)
    public AviatrixAwsGuardDuty(String name, AviatrixAwsGuardDutyArgs args)
    public AviatrixAwsGuardDuty(String name, AviatrixAwsGuardDutyArgs args, CustomResourceOptions options)
    
    type: aviatrix:AviatrixAwsGuardDuty
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args AviatrixAwsGuardDutyArgs
    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 AviatrixAwsGuardDutyArgs
    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 AviatrixAwsGuardDutyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AviatrixAwsGuardDutyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AviatrixAwsGuardDutyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    AviatrixAwsGuardDuty Resource Properties

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

    Inputs

    The AviatrixAwsGuardDuty resource accepts the following input properties:

    AccountName string
    Account name.
    Region string
    Region.
    ExcludedIps List<string>
    Set of excluded IPs.
    AccountName string
    Account name.
    Region string
    Region.
    ExcludedIps []string
    Set of excluded IPs.
    accountName String
    Account name.
    region String
    Region.
    excludedIps List<String>
    Set of excluded IPs.
    accountName string
    Account name.
    region string
    Region.
    excludedIps string[]
    Set of excluded IPs.
    account_name str
    Account name.
    region str
    Region.
    excluded_ips Sequence[str]
    Set of excluded IPs.
    accountName String
    Account name.
    region String
    Region.
    excludedIps List<String>
    Set of excluded IPs.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AviatrixAwsGuardDuty Resource

    Get an existing AviatrixAwsGuardDuty 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>, state?: AviatrixAwsGuardDutyState, opts?: CustomResourceOptions): AviatrixAwsGuardDuty
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_name: Optional[str] = None,
            excluded_ips: Optional[Sequence[str]] = None,
            region: Optional[str] = None) -> AviatrixAwsGuardDuty
    func GetAviatrixAwsGuardDuty(ctx *Context, name string, id IDInput, state *AviatrixAwsGuardDutyState, opts ...ResourceOption) (*AviatrixAwsGuardDuty, error)
    public static AviatrixAwsGuardDuty Get(string name, Input<string> id, AviatrixAwsGuardDutyState? state, CustomResourceOptions? opts = null)
    public static AviatrixAwsGuardDuty get(String name, Output<String> id, AviatrixAwsGuardDutyState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountName string
    Account name.
    ExcludedIps List<string>
    Set of excluded IPs.
    Region string
    Region.
    AccountName string
    Account name.
    ExcludedIps []string
    Set of excluded IPs.
    Region string
    Region.
    accountName String
    Account name.
    excludedIps List<String>
    Set of excluded IPs.
    region String
    Region.
    accountName string
    Account name.
    excludedIps string[]
    Set of excluded IPs.
    region string
    Region.
    account_name str
    Account name.
    excluded_ips Sequence[str]
    Set of excluded IPs.
    region str
    Region.
    accountName String
    Account name.
    excludedIps List<String>
    Set of excluded IPs.
    region String
    Region.

    Package Details

    Repository
    aviatrix astipkovits/pulumi-aviatrix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aviatrix Terraform Provider.
    aviatrix logo
    Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix