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

lacework.IntegrationAwsGovcloudCfg

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 Config integration for AWS GovCloud to analyze AWS configuration compliance.

    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.IntegrationAwsGovcloudCfg("example", {
        accountId: "553453453",
        credentials: {
            accessKeyId: "AWS123abcAccessKeyID",
            secretAccessKey: "AWS123abc123abcSecretAccessKey0000000000",
        },
    });
    
    import pulumi
    import pulumi_lacework as lacework
    
    example = lacework.IntegrationAwsGovcloudCfg("example",
        account_id="553453453",
        credentials={
            "access_key_id": "AWS123abcAccessKeyID",
            "secret_access_key": "AWS123abc123abcSecretAccessKey0000000000",
        })
    
    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.NewIntegrationAwsGovcloudCfg(ctx, "example", &lacework.IntegrationAwsGovcloudCfgArgs{
    			AccountId: pulumi.String("553453453"),
    			Credentials: &lacework.IntegrationAwsGovcloudCfgCredentialsArgs{
    				AccessKeyId:     pulumi.String("AWS123abcAccessKeyID"),
    				SecretAccessKey: pulumi.String("AWS123abc123abcSecretAccessKey0000000000"),
    			},
    		})
    		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.IntegrationAwsGovcloudCfg("example", new()
        {
            AccountId = "553453453",
            Credentials = new Lacework.Inputs.IntegrationAwsGovcloudCfgCredentialsArgs
            {
                AccessKeyId = "AWS123abcAccessKeyID",
                SecretAccessKey = "AWS123abc123abcSecretAccessKey0000000000",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.lacework.IntegrationAwsGovcloudCfg;
    import com.pulumi.lacework.IntegrationAwsGovcloudCfgArgs;
    import com.pulumi.lacework.inputs.IntegrationAwsGovcloudCfgCredentialsArgs;
    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 IntegrationAwsGovcloudCfg("example", IntegrationAwsGovcloudCfgArgs.builder()
                .accountId("553453453")
                .credentials(IntegrationAwsGovcloudCfgCredentialsArgs.builder()
                    .accessKeyId("AWS123abcAccessKeyID")
                    .secretAccessKey("AWS123abc123abcSecretAccessKey0000000000")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: lacework:IntegrationAwsGovcloudCfg
        properties:
          accountId: '553453453'
          credentials:
            accessKeyId: AWS123abcAccessKeyID
            secretAccessKey: AWS123abc123abcSecretAccessKey0000000000
    

    Create IntegrationAwsGovcloudCfg Resource

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

    Constructor syntax

    new IntegrationAwsGovcloudCfg(name: string, args: IntegrationAwsGovcloudCfgArgs, opts?: CustomResourceOptions);
    @overload
    def IntegrationAwsGovcloudCfg(resource_name: str,
                                  args: IntegrationAwsGovcloudCfgArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def IntegrationAwsGovcloudCfg(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  account_id: Optional[str] = None,
                                  credentials: Optional[IntegrationAwsGovcloudCfgCredentialsArgs] = None,
                                  enabled: Optional[bool] = None,
                                  integration_aws_govcloud_cfg_id: Optional[str] = None,
                                  name: Optional[str] = None,
                                  retries: Optional[float] = None)
    func NewIntegrationAwsGovcloudCfg(ctx *Context, name string, args IntegrationAwsGovcloudCfgArgs, opts ...ResourceOption) (*IntegrationAwsGovcloudCfg, error)
    public IntegrationAwsGovcloudCfg(string name, IntegrationAwsGovcloudCfgArgs args, CustomResourceOptions? opts = null)
    public IntegrationAwsGovcloudCfg(String name, IntegrationAwsGovcloudCfgArgs args)
    public IntegrationAwsGovcloudCfg(String name, IntegrationAwsGovcloudCfgArgs args, CustomResourceOptions options)
    
    type: lacework:IntegrationAwsGovcloudCfg
    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 IntegrationAwsGovcloudCfgArgs
    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 IntegrationAwsGovcloudCfgArgs
    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 IntegrationAwsGovcloudCfgArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IntegrationAwsGovcloudCfgArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IntegrationAwsGovcloudCfgArgs
    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 integrationAwsGovcloudCfgResource = new Lacework.IntegrationAwsGovcloudCfg("integrationAwsGovcloudCfgResource", new()
    {
        AccountId = "string",
        Credentials = new Lacework.Inputs.IntegrationAwsGovcloudCfgCredentialsArgs
        {
            AccessKeyId = "string",
            SecretAccessKey = "string",
        },
        Enabled = false,
        IntegrationAwsGovcloudCfgId = "string",
        Name = "string",
        Retries = 0,
    });
    
    example, err := lacework.NewIntegrationAwsGovcloudCfg(ctx, "integrationAwsGovcloudCfgResource", &lacework.IntegrationAwsGovcloudCfgArgs{
    	AccountId: pulumi.String("string"),
    	Credentials: &lacework.IntegrationAwsGovcloudCfgCredentialsArgs{
    		AccessKeyId:     pulumi.String("string"),
    		SecretAccessKey: pulumi.String("string"),
    	},
    	Enabled:                     pulumi.Bool(false),
    	IntegrationAwsGovcloudCfgId: pulumi.String("string"),
    	Name:                        pulumi.String("string"),
    	Retries:                     pulumi.Float64(0),
    })
    
    var integrationAwsGovcloudCfgResource = new IntegrationAwsGovcloudCfg("integrationAwsGovcloudCfgResource", IntegrationAwsGovcloudCfgArgs.builder()
        .accountId("string")
        .credentials(IntegrationAwsGovcloudCfgCredentialsArgs.builder()
            .accessKeyId("string")
            .secretAccessKey("string")
            .build())
        .enabled(false)
        .integrationAwsGovcloudCfgId("string")
        .name("string")
        .retries(0)
        .build());
    
    integration_aws_govcloud_cfg_resource = lacework.IntegrationAwsGovcloudCfg("integrationAwsGovcloudCfgResource",
        account_id="string",
        credentials={
            "access_key_id": "string",
            "secret_access_key": "string",
        },
        enabled=False,
        integration_aws_govcloud_cfg_id="string",
        name="string",
        retries=0)
    
    const integrationAwsGovcloudCfgResource = new lacework.IntegrationAwsGovcloudCfg("integrationAwsGovcloudCfgResource", {
        accountId: "string",
        credentials: {
            accessKeyId: "string",
            secretAccessKey: "string",
        },
        enabled: false,
        integrationAwsGovcloudCfgId: "string",
        name: "string",
        retries: 0,
    });
    
    type: lacework:IntegrationAwsGovcloudCfg
    properties:
        accountId: string
        credentials:
            accessKeyId: string
            secretAccessKey: string
        enabled: false
        integrationAwsGovcloudCfgId: string
        name: string
        retries: 0
    

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

    AccountId string
    The AWS account ID.
    Credentials IntegrationAwsGovcloudCfgCredentials
    The credentials needed by the integration. See Credentials below for details.
    Enabled bool
    The state of the external integration. Defaults to true.
    IntegrationAwsGovcloudCfgId 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 IntegrationAwsGovcloudCfgCredentialsArgs
    The credentials needed by the integration. See Credentials below for details.
    Enabled bool
    The state of the external integration. Defaults to true.
    IntegrationAwsGovcloudCfgId 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 IntegrationAwsGovcloudCfgCredentials
    The credentials needed by the integration. See Credentials below for details.
    enabled Boolean
    The state of the external integration. Defaults to true.
    integrationAwsGovcloudCfgId 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 IntegrationAwsGovcloudCfgCredentials
    The credentials needed by the integration. See Credentials below for details.
    enabled boolean
    The state of the external integration. Defaults to true.
    integrationAwsGovcloudCfgId 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 IntegrationAwsGovcloudCfgCredentialsArgs
    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_cfg_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.
    enabled Boolean
    The state of the external integration. Defaults to true.
    integrationAwsGovcloudCfgId 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 IntegrationAwsGovcloudCfg 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 IntegrationAwsGovcloudCfg Resource

    Get an existing IntegrationAwsGovcloudCfg 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?: IntegrationAwsGovcloudCfgState, opts?: CustomResourceOptions): IntegrationAwsGovcloudCfg
    @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[IntegrationAwsGovcloudCfgCredentialsArgs] = None,
            enabled: Optional[bool] = None,
            integration_aws_govcloud_cfg_id: Optional[str] = None,
            intg_guid: Optional[str] = None,
            name: Optional[str] = None,
            org_level: Optional[bool] = None,
            retries: Optional[float] = None,
            type_name: Optional[str] = None) -> IntegrationAwsGovcloudCfg
    func GetIntegrationAwsGovcloudCfg(ctx *Context, name string, id IDInput, state *IntegrationAwsGovcloudCfgState, opts ...ResourceOption) (*IntegrationAwsGovcloudCfg, error)
    public static IntegrationAwsGovcloudCfg Get(string name, Input<string> id, IntegrationAwsGovcloudCfgState? state, CustomResourceOptions? opts = null)
    public static IntegrationAwsGovcloudCfg get(String name, Output<String> id, IntegrationAwsGovcloudCfgState state, CustomResourceOptions options)
    resources:  _:    type: lacework:IntegrationAwsGovcloudCfg    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 IntegrationAwsGovcloudCfgCredentials
    The credentials needed by the integration. See Credentials below for details.
    Enabled bool
    The state of the external integration. Defaults to true.
    IntegrationAwsGovcloudCfgId string
    IntgGuid string
    Name string
    The AWS GovCloud Config integration name.
    OrgLevel bool
    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 IntegrationAwsGovcloudCfgCredentialsArgs
    The credentials needed by the integration. See Credentials below for details.
    Enabled bool
    The state of the external integration. Defaults to true.
    IntegrationAwsGovcloudCfgId string
    IntgGuid string
    Name string
    The AWS GovCloud Config integration name.
    OrgLevel bool
    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 IntegrationAwsGovcloudCfgCredentials
    The credentials needed by the integration. See Credentials below for details.
    enabled Boolean
    The state of the external integration. Defaults to true.
    integrationAwsGovcloudCfgId String
    intgGuid String
    name String
    The AWS GovCloud Config integration name.
    orgLevel Boolean
    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 IntegrationAwsGovcloudCfgCredentials
    The credentials needed by the integration. See Credentials below for details.
    enabled boolean
    The state of the external integration. Defaults to true.
    integrationAwsGovcloudCfgId string
    intgGuid string
    name string
    The AWS GovCloud Config integration name.
    orgLevel boolean
    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 IntegrationAwsGovcloudCfgCredentialsArgs
    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_cfg_id str
    intg_guid str
    name str
    The AWS GovCloud Config integration name.
    org_level bool
    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.
    integrationAwsGovcloudCfgId String
    intgGuid String
    name String
    The AWS GovCloud Config integration name.
    orgLevel Boolean
    retries Number
    The number of attempts to create the external integration. Defaults to 5.
    typeName String

    Supporting Types

    IntegrationAwsGovcloudCfgCredentials, IntegrationAwsGovcloudCfgCredentialsArgs

    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 Config integration for AWS GovCloud can be imported using a INT_GUID, e.g.

    $ pulumi import lacework:index/integrationAwsGovcloudCfg:IntegrationAwsGovcloudCfg 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