lacework.IntegrationAwsGovcloudCfg
Explore with Pulumi AI
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:
- Account
Id string - The AWS account ID.
- Credentials
Integration
Aws Govcloud Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- Enabled bool
- The state of the external integration. Defaults to
true
. - Integration
Aws stringGovcloud Cfg Id - Name string
- The AWS GovCloud Config integration name.
- Retries double
- The number of attempts to create the external integration. Defaults to
5
.
- Account
Id string - The AWS account ID.
- Credentials
Integration
Aws Govcloud Cfg Credentials Args - The credentials needed by the integration. See Credentials below for details.
- Enabled bool
- The state of the external integration. Defaults to
true
. - Integration
Aws stringGovcloud Cfg Id - Name string
- The AWS GovCloud Config integration name.
- Retries float64
- The number of attempts to create the external integration. Defaults to
5
.
- account
Id String - The AWS account ID.
- credentials
Integration
Aws Govcloud Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- enabled Boolean
- The state of the external integration. Defaults to
true
. - integration
Aws StringGovcloud Cfg Id - name String
- The AWS GovCloud Config integration name.
- retries Double
- The number of attempts to create the external integration. Defaults to
5
.
- account
Id string - The AWS account ID.
- credentials
Integration
Aws Govcloud Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- enabled boolean
- The state of the external integration. Defaults to
true
. - integration
Aws stringGovcloud Cfg Id - 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
Integration
Aws Govcloud Cfg Credentials Args - The credentials needed by the integration. See Credentials below for details.
- enabled bool
- The state of the external integration. Defaults to
true
. - integration_
aws_ strgovcloud_ cfg_ id - name str
- The AWS GovCloud Config integration name.
- retries float
- The number of attempts to create the external integration. Defaults to
5
.
- account
Id 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
. - integration
Aws StringGovcloud Cfg Id - 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:
- Created
Or stringUpdated By - Created
Or stringUpdated Time - Id string
- The provider-assigned unique ID for this managed resource.
- Intg
Guid string - Org
Level bool - Type
Name string
- Created
Or stringUpdated By - Created
Or stringUpdated Time - Id string
- The provider-assigned unique ID for this managed resource.
- Intg
Guid string - Org
Level bool - Type
Name string
- created
Or StringUpdated By - created
Or StringUpdated Time - id String
- The provider-assigned unique ID for this managed resource.
- intg
Guid String - org
Level Boolean - type
Name String
- created
Or stringUpdated By - created
Or stringUpdated Time - id string
- The provider-assigned unique ID for this managed resource.
- intg
Guid string - org
Level boolean - type
Name string
- created_
or_ strupdated_ by - created_
or_ strupdated_ time - id str
- The provider-assigned unique ID for this managed resource.
- intg_
guid str - org_
level bool - type_
name str
- created
Or StringUpdated By - created
Or StringUpdated Time - id String
- The provider-assigned unique ID for this managed resource.
- intg
Guid String - org
Level Boolean - type
Name 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.
- Account
Id string - The AWS account ID.
- Created
Or stringUpdated By - Created
Or stringUpdated Time - Credentials
Integration
Aws Govcloud Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- Enabled bool
- The state of the external integration. Defaults to
true
. - Integration
Aws stringGovcloud Cfg Id - Intg
Guid string - Name string
- The AWS GovCloud Config integration name.
- Org
Level bool - Retries double
- The number of attempts to create the external integration. Defaults to
5
. - Type
Name string
- Account
Id string - The AWS account ID.
- Created
Or stringUpdated By - Created
Or stringUpdated Time - Credentials
Integration
Aws Govcloud Cfg Credentials Args - The credentials needed by the integration. See Credentials below for details.
- Enabled bool
- The state of the external integration. Defaults to
true
. - Integration
Aws stringGovcloud Cfg Id - Intg
Guid string - Name string
- The AWS GovCloud Config integration name.
- Org
Level bool - Retries float64
- The number of attempts to create the external integration. Defaults to
5
. - Type
Name string
- account
Id String - The AWS account ID.
- created
Or StringUpdated By - created
Or StringUpdated Time - credentials
Integration
Aws Govcloud Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- enabled Boolean
- The state of the external integration. Defaults to
true
. - integration
Aws StringGovcloud Cfg Id - intg
Guid String - name String
- The AWS GovCloud Config integration name.
- org
Level Boolean - retries Double
- The number of attempts to create the external integration. Defaults to
5
. - type
Name String
- account
Id string - The AWS account ID.
- created
Or stringUpdated By - created
Or stringUpdated Time - credentials
Integration
Aws Govcloud Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- enabled boolean
- The state of the external integration. Defaults to
true
. - integration
Aws stringGovcloud Cfg Id - intg
Guid string - name string
- The AWS GovCloud Config integration name.
- org
Level boolean - retries number
- The number of attempts to create the external integration. Defaults to
5
. - type
Name string
- account_
id str - The AWS account ID.
- created_
or_ strupdated_ by - created_
or_ strupdated_ time - credentials
Integration
Aws Govcloud Cfg Credentials Args - The credentials needed by the integration. See Credentials below for details.
- enabled bool
- The state of the external integration. Defaults to
true
. - integration_
aws_ strgovcloud_ cfg_ id - 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
- account
Id String - The AWS account ID.
- created
Or StringUpdated By - created
Or StringUpdated Time - 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
. - integration
Aws StringGovcloud Cfg Id - intg
Guid String - name String
- The AWS GovCloud Config integration name.
- org
Level Boolean - retries Number
- The number of attempts to create the external integration. Defaults to
5
. - type
Name String
Supporting Types
IntegrationAwsGovcloudCfgCredentials, IntegrationAwsGovcloudCfgCredentialsArgs
- Access
Key stringId - The AWS access key ID.
- Secret
Access stringKey - The AWS secret key for the specified AWS access key.
- Access
Key stringId - The AWS access key ID.
- Secret
Access stringKey - The AWS secret key for the specified AWS access key.
- access
Key StringId - The AWS access key ID.
- secret
Access StringKey - The AWS secret key for the specified AWS access key.
- access
Key stringId - The AWS access key ID.
- secret
Access stringKey - The AWS secret key for the specified AWS access key.
- access_
key_ strid - The AWS access key ID.
- secret_
access_ strkey - The AWS secret key for the specified AWS access key.
- access
Key StringId - The AWS access key ID.
- secret
Access StringKey - 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.