1. Packages
  2. Lacework Provider
  3. API Docs
  4. IntegrationAwsGovcloudCt
lacework 2.0.6 published on Monday, Apr 14, 2025 by lacework

lacework.IntegrationAwsGovcloudCt

Explore with Pulumi AI

lacework logo
lacework 2.0.6 published on Monday, Apr 14, 2025 by lacework

    Use this resource to configure an AWS CloudTrail integration for AWS GovCloud to analyze CloudTrail activity for monitoring cloud account security.

    To find more information see the Lacework support documentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as lacework from "@pulumi/lacework";
    
    const example = new lacework.IntegrationAwsGovcloudCt("example", {
        accountId: "553453453",
        credentials: {
            accessKeyId: "AWS123abcAccessKeyID",
            secretAccessKey: "AWS123abc123abcSecretAccessKey0000000000",
        },
        queueUrl: "https://sqs.us-gov-west-1.amazonaws.com/123456789012/my_queue",
    });
    
    import pulumi
    import pulumi_lacework as lacework
    
    example = lacework.IntegrationAwsGovcloudCt("example",
        account_id="553453453",
        credentials={
            "access_key_id": "AWS123abcAccessKeyID",
            "secret_access_key": "AWS123abc123abcSecretAccessKey0000000000",
        },
        queue_url="https://sqs.us-gov-west-1.amazonaws.com/123456789012/my_queue")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/lacework/v2/lacework"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := lacework.NewIntegrationAwsGovcloudCt(ctx, "example", &lacework.IntegrationAwsGovcloudCtArgs{
    			AccountId: pulumi.String("553453453"),
    			Credentials: &lacework.IntegrationAwsGovcloudCtCredentialsArgs{
    				AccessKeyId:     pulumi.String("AWS123abcAccessKeyID"),
    				SecretAccessKey: pulumi.String("AWS123abc123abcSecretAccessKey0000000000"),
    			},
    			QueueUrl: pulumi.String("https://sqs.us-gov-west-1.amazonaws.com/123456789012/my_queue"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Lacework = Pulumi.Lacework;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Lacework.IntegrationAwsGovcloudCt("example", new()
        {
            AccountId = "553453453",
            Credentials = new Lacework.Inputs.IntegrationAwsGovcloudCtCredentialsArgs
            {
                AccessKeyId = "AWS123abcAccessKeyID",
                SecretAccessKey = "AWS123abc123abcSecretAccessKey0000000000",
            },
            QueueUrl = "https://sqs.us-gov-west-1.amazonaws.com/123456789012/my_queue",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.lacework.IntegrationAwsGovcloudCt;
    import com.pulumi.lacework.IntegrationAwsGovcloudCtArgs;
    import com.pulumi.lacework.inputs.IntegrationAwsGovcloudCtCredentialsArgs;
    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 example = new IntegrationAwsGovcloudCt("example", IntegrationAwsGovcloudCtArgs.builder()
                .accountId("553453453")
                .credentials(IntegrationAwsGovcloudCtCredentialsArgs.builder()
                    .accessKeyId("AWS123abcAccessKeyID")
                    .secretAccessKey("AWS123abc123abcSecretAccessKey0000000000")
                    .build())
                .queueUrl("https://sqs.us-gov-west-1.amazonaws.com/123456789012/my_queue")
                .build());
    
        }
    }
    
    resources:
      example:
        type: lacework:IntegrationAwsGovcloudCt
        properties:
          accountId: '553453453'
          credentials:
            accessKeyId: AWS123abcAccessKeyID
            secretAccessKey: AWS123abc123abcSecretAccessKey0000000000
          queueUrl: https://sqs.us-gov-west-1.amazonaws.com/123456789012/my_queue
    

    Create IntegrationAwsGovcloudCt Resource

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

    Constructor syntax

    new IntegrationAwsGovcloudCt(name: string, args: IntegrationAwsGovcloudCtArgs, opts?: CustomResourceOptions);
    @overload
    def IntegrationAwsGovcloudCt(resource_name: str,
                                 args: IntegrationAwsGovcloudCtArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def IntegrationAwsGovcloudCt(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 account_id: Optional[str] = None,
                                 credentials: Optional[IntegrationAwsGovcloudCtCredentialsArgs] = None,
                                 queue_url: Optional[str] = None,
                                 enabled: Optional[bool] = None,
                                 integration_aws_govcloud_ct_id: Optional[str] = None,
                                 name: Optional[str] = None,
                                 retries: Optional[float] = None)
    func NewIntegrationAwsGovcloudCt(ctx *Context, name string, args IntegrationAwsGovcloudCtArgs, opts ...ResourceOption) (*IntegrationAwsGovcloudCt, error)
    public IntegrationAwsGovcloudCt(string name, IntegrationAwsGovcloudCtArgs args, CustomResourceOptions? opts = null)
    public IntegrationAwsGovcloudCt(String name, IntegrationAwsGovcloudCtArgs args)
    public IntegrationAwsGovcloudCt(String name, IntegrationAwsGovcloudCtArgs args, CustomResourceOptions options)
    
    type: lacework:IntegrationAwsGovcloudCt
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args IntegrationAwsGovcloudCtArgs
    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 IntegrationAwsGovcloudCtArgs
    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 IntegrationAwsGovcloudCtArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IntegrationAwsGovcloudCtArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IntegrationAwsGovcloudCtArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var integrationAwsGovcloudCtResource = new Lacework.IntegrationAwsGovcloudCt("integrationAwsGovcloudCtResource", new()
    {
        AccountId = "string",
        Credentials = new Lacework.Inputs.IntegrationAwsGovcloudCtCredentialsArgs
        {
            AccessKeyId = "string",
            SecretAccessKey = "string",
        },
        QueueUrl = "string",
        Enabled = false,
        IntegrationAwsGovcloudCtId = "string",
        Name = "string",
        Retries = 0,
    });
    
    example, err := lacework.NewIntegrationAwsGovcloudCt(ctx, "integrationAwsGovcloudCtResource", &lacework.IntegrationAwsGovcloudCtArgs{
    	AccountId: pulumi.String("string"),
    	Credentials: &lacework.IntegrationAwsGovcloudCtCredentialsArgs{
    		AccessKeyId:     pulumi.String("string"),
    		SecretAccessKey: pulumi.String("string"),
    	},
    	QueueUrl:                   pulumi.String("string"),
    	Enabled:                    pulumi.Bool(false),
    	IntegrationAwsGovcloudCtId: pulumi.String("string"),
    	Name:                       pulumi.String("string"),
    	Retries:                    pulumi.Float64(0),
    })
    
    var integrationAwsGovcloudCtResource = new IntegrationAwsGovcloudCt("integrationAwsGovcloudCtResource", IntegrationAwsGovcloudCtArgs.builder()
        .accountId("string")
        .credentials(IntegrationAwsGovcloudCtCredentialsArgs.builder()
            .accessKeyId("string")
            .secretAccessKey("string")
            .build())
        .queueUrl("string")
        .enabled(false)
        .integrationAwsGovcloudCtId("string")
        .name("string")
        .retries(0)
        .build());
    
    integration_aws_govcloud_ct_resource = lacework.IntegrationAwsGovcloudCt("integrationAwsGovcloudCtResource",
        account_id="string",
        credentials={
            "access_key_id": "string",
            "secret_access_key": "string",
        },
        queue_url="string",
        enabled=False,
        integration_aws_govcloud_ct_id="string",
        name="string",
        retries=0)
    
    const integrationAwsGovcloudCtResource = new lacework.IntegrationAwsGovcloudCt("integrationAwsGovcloudCtResource", {
        accountId: "string",
        credentials: {
            accessKeyId: "string",
            secretAccessKey: "string",
        },
        queueUrl: "string",
        enabled: false,
        integrationAwsGovcloudCtId: "string",
        name: "string",
        retries: 0,
    });
    
    type: lacework:IntegrationAwsGovcloudCt
    properties:
        accountId: string
        credentials:
            accessKeyId: string
            secretAccessKey: string
        enabled: false
        integrationAwsGovcloudCtId: string
        name: string
        queueUrl: string
        retries: 0
    

    IntegrationAwsGovcloudCt 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 IntegrationAwsGovcloudCt resource accepts the following input properties:

    AccountId string
    The AWS account ID.
    Credentials IntegrationAwsGovcloudCtCredentials
    The credentials needed by the integration. See Credentials below for details.
    QueueUrl string
    The SQS Queue URL.
    Enabled bool
    The state of the external integration. Defaults to true.
    IntegrationAwsGovcloudCtId string
    Name string
    The AWS GovCloud Config integration name.
    Retries double
    The number of attempts to create the external integration. Defaults to 5.
    AccountId string
    The AWS account ID.
    Credentials IntegrationAwsGovcloudCtCredentialsArgs
    The credentials needed by the integration. See Credentials below for details.
    QueueUrl string
    The SQS Queue URL.
    Enabled bool
    The state of the external integration. Defaults to true.
    IntegrationAwsGovcloudCtId string
    Name string
    The AWS GovCloud Config integration name.
    Retries float64
    The number of attempts to create the external integration. Defaults to 5.
    accountId String
    The AWS account ID.
    credentials IntegrationAwsGovcloudCtCredentials
    The credentials needed by the integration. See Credentials below for details.
    queueUrl String
    The SQS Queue URL.
    enabled Boolean
    The state of the external integration. Defaults to true.
    integrationAwsGovcloudCtId String
    name String
    The AWS GovCloud Config integration name.
    retries Double
    The number of attempts to create the external integration. Defaults to 5.
    accountId string
    The AWS account ID.
    credentials IntegrationAwsGovcloudCtCredentials
    The credentials needed by the integration. See Credentials below for details.
    queueUrl string
    The SQS Queue URL.
    enabled boolean
    The state of the external integration. Defaults to true.
    integrationAwsGovcloudCtId string
    name string
    The AWS GovCloud Config integration name.
    retries number
    The number of attempts to create the external integration. Defaults to 5.
    account_id str
    The AWS account ID.
    credentials IntegrationAwsGovcloudCtCredentialsArgs
    The credentials needed by the integration. See Credentials below for details.
    queue_url str
    The SQS Queue URL.
    enabled bool
    The state of the external integration. Defaults to true.
    integration_aws_govcloud_ct_id str
    name str
    The AWS GovCloud Config integration name.
    retries float
    The number of attempts to create the external integration. Defaults to 5.
    accountId String
    The AWS account ID.
    credentials Property Map
    The credentials needed by the integration. See Credentials below for details.
    queueUrl String
    The SQS Queue URL.
    enabled Boolean
    The state of the external integration. Defaults to true.
    integrationAwsGovcloudCtId String
    name String
    The AWS GovCloud Config integration name.
    retries Number
    The number of attempts to create the external integration. Defaults to 5.

    Outputs

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

    CreatedOrUpdatedBy string
    CreatedOrUpdatedTime string
    Id string
    The provider-assigned unique ID for this managed resource.
    IntgGuid string
    OrgLevel bool
    TypeName string
    CreatedOrUpdatedBy string
    CreatedOrUpdatedTime string
    Id string
    The provider-assigned unique ID for this managed resource.
    IntgGuid string
    OrgLevel bool
    TypeName string
    createdOrUpdatedBy String
    createdOrUpdatedTime String
    id String
    The provider-assigned unique ID for this managed resource.
    intgGuid String
    orgLevel Boolean
    typeName String
    createdOrUpdatedBy string
    createdOrUpdatedTime string
    id string
    The provider-assigned unique ID for this managed resource.
    intgGuid string
    orgLevel boolean
    typeName string
    created_or_updated_by str
    created_or_updated_time str
    id str
    The provider-assigned unique ID for this managed resource.
    intg_guid str
    org_level bool
    type_name str
    createdOrUpdatedBy String
    createdOrUpdatedTime String
    id String
    The provider-assigned unique ID for this managed resource.
    intgGuid String
    orgLevel Boolean
    typeName String

    Look up Existing IntegrationAwsGovcloudCt Resource

    Get an existing IntegrationAwsGovcloudCt 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?: IntegrationAwsGovcloudCtState, opts?: CustomResourceOptions): IntegrationAwsGovcloudCt
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            created_or_updated_by: Optional[str] = None,
            created_or_updated_time: Optional[str] = None,
            credentials: Optional[IntegrationAwsGovcloudCtCredentialsArgs] = None,
            enabled: Optional[bool] = None,
            integration_aws_govcloud_ct_id: Optional[str] = None,
            intg_guid: Optional[str] = None,
            name: Optional[str] = None,
            org_level: Optional[bool] = None,
            queue_url: Optional[str] = None,
            retries: Optional[float] = None,
            type_name: Optional[str] = None) -> IntegrationAwsGovcloudCt
    func GetIntegrationAwsGovcloudCt(ctx *Context, name string, id IDInput, state *IntegrationAwsGovcloudCtState, opts ...ResourceOption) (*IntegrationAwsGovcloudCt, error)
    public static IntegrationAwsGovcloudCt Get(string name, Input<string> id, IntegrationAwsGovcloudCtState? state, CustomResourceOptions? opts = null)
    public static IntegrationAwsGovcloudCt get(String name, Output<String> id, IntegrationAwsGovcloudCtState state, CustomResourceOptions options)
    resources:  _:    type: lacework:IntegrationAwsGovcloudCt    get:      id: ${id}
    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:
    AccountId string
    The AWS account ID.
    CreatedOrUpdatedBy string
    CreatedOrUpdatedTime string
    Credentials IntegrationAwsGovcloudCtCredentials
    The credentials needed by the integration. See Credentials below for details.
    Enabled bool
    The state of the external integration. Defaults to true.
    IntegrationAwsGovcloudCtId string
    IntgGuid string
    Name string
    The AWS GovCloud Config integration name.
    OrgLevel bool
    QueueUrl string
    The SQS Queue URL.
    Retries double
    The number of attempts to create the external integration. Defaults to 5.
    TypeName string
    AccountId string
    The AWS account ID.
    CreatedOrUpdatedBy string
    CreatedOrUpdatedTime string
    Credentials IntegrationAwsGovcloudCtCredentialsArgs
    The credentials needed by the integration. See Credentials below for details.
    Enabled bool
    The state of the external integration. Defaults to true.
    IntegrationAwsGovcloudCtId string
    IntgGuid string
    Name string
    The AWS GovCloud Config integration name.
    OrgLevel bool
    QueueUrl string
    The SQS Queue URL.
    Retries float64
    The number of attempts to create the external integration. Defaults to 5.
    TypeName string
    accountId String
    The AWS account ID.
    createdOrUpdatedBy String
    createdOrUpdatedTime String
    credentials IntegrationAwsGovcloudCtCredentials
    The credentials needed by the integration. See Credentials below for details.
    enabled Boolean
    The state of the external integration. Defaults to true.
    integrationAwsGovcloudCtId String
    intgGuid String
    name String
    The AWS GovCloud Config integration name.
    orgLevel Boolean
    queueUrl String
    The SQS Queue URL.
    retries Double
    The number of attempts to create the external integration. Defaults to 5.
    typeName String
    accountId string
    The AWS account ID.
    createdOrUpdatedBy string
    createdOrUpdatedTime string
    credentials IntegrationAwsGovcloudCtCredentials
    The credentials needed by the integration. See Credentials below for details.
    enabled boolean
    The state of the external integration. Defaults to true.
    integrationAwsGovcloudCtId string
    intgGuid string
    name string
    The AWS GovCloud Config integration name.
    orgLevel boolean
    queueUrl string
    The SQS Queue URL.
    retries number
    The number of attempts to create the external integration. Defaults to 5.
    typeName string
    account_id str
    The AWS account ID.
    created_or_updated_by str
    created_or_updated_time str
    credentials IntegrationAwsGovcloudCtCredentialsArgs
    The credentials needed by the integration. See Credentials below for details.
    enabled bool
    The state of the external integration. Defaults to true.
    integration_aws_govcloud_ct_id str
    intg_guid str
    name str
    The AWS GovCloud Config integration name.
    org_level bool
    queue_url str
    The SQS Queue URL.
    retries float
    The number of attempts to create the external integration. Defaults to 5.
    type_name str
    accountId String
    The AWS account ID.
    createdOrUpdatedBy String
    createdOrUpdatedTime String
    credentials Property Map
    The credentials needed by the integration. See Credentials below for details.
    enabled Boolean
    The state of the external integration. Defaults to true.
    integrationAwsGovcloudCtId String
    intgGuid String
    name String
    The AWS GovCloud Config integration name.
    orgLevel Boolean
    queueUrl String
    The SQS Queue URL.
    retries Number
    The number of attempts to create the external integration. Defaults to 5.
    typeName String

    Supporting Types

    IntegrationAwsGovcloudCtCredentials, IntegrationAwsGovcloudCtCredentialsArgs

    AccessKeyId string
    The AWS access key ID.
    SecretAccessKey string
    The AWS secret key for the specified AWS access key.
    AccessKeyId string
    The AWS access key ID.
    SecretAccessKey string
    The AWS secret key for the specified AWS access key.
    accessKeyId String
    The AWS access key ID.
    secretAccessKey String
    The AWS secret key for the specified AWS access key.
    accessKeyId string
    The AWS access key ID.
    secretAccessKey string
    The AWS secret key for the specified AWS access key.
    access_key_id str
    The AWS access key ID.
    secret_access_key str
    The AWS secret key for the specified AWS access key.
    accessKeyId String
    The AWS access key ID.
    secretAccessKey String
    The AWS secret key for the specified AWS access key.

    Import

    A Lacework AWS CloudTrail integration for AWS GovCloud can be imported using a INT_GUID, e.g.

    $ pulumi import lacework:index/integrationAwsGovcloudCt:IntegrationAwsGovcloudCt example EXAMPLE_1234BAE1E42182964D23973F44CFEA3C4AB63B99E9A1EC5
    

    -> Note: To retrieve the INT_GUID from existing integrations in your account, use the Lacework CLI command lacework cloud-account list. To install this tool follow this documentation.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    lacework lacework/terraform-provider-lacework
    License
    Notes
    This Pulumi package is based on the lacework Terraform Provider.
    lacework logo
    lacework 2.0.6 published on Monday, Apr 14, 2025 by lacework