lacework.IntegrationAwsGovcloudCt
Explore with Pulumi AI
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:
- Account
Id string - The AWS account ID.
- Credentials
Integration
Aws Govcloud Ct Credentials - The credentials needed by the integration. See Credentials below for details.
- Queue
Url string - The SQS Queue URL.
- Enabled bool
- The state of the external integration. Defaults to
true
. - Integration
Aws stringGovcloud Ct 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 Ct Credentials Args - The credentials needed by the integration. See Credentials below for details.
- Queue
Url string - The SQS Queue URL.
- Enabled bool
- The state of the external integration. Defaults to
true
. - Integration
Aws stringGovcloud Ct 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 Ct Credentials - The credentials needed by the integration. See Credentials below for details.
- queue
Url String - The SQS Queue URL.
- enabled Boolean
- The state of the external integration. Defaults to
true
. - integration
Aws StringGovcloud Ct 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 Ct Credentials - The credentials needed by the integration. See Credentials below for details.
- queue
Url string - The SQS Queue URL.
- enabled boolean
- The state of the external integration. Defaults to
true
. - integration
Aws stringGovcloud Ct 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 Ct Credentials Args - 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_ strgovcloud_ ct_ 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.
- queue
Url String - The SQS Queue URL.
- enabled Boolean
- The state of the external integration. Defaults to
true
. - integration
Aws StringGovcloud Ct 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 IntegrationAwsGovcloudCt 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 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.
- Account
Id string - The AWS account ID.
- Created
Or stringUpdated By - Created
Or stringUpdated Time - Credentials
Integration
Aws Govcloud Ct 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 Ct Id - Intg
Guid string - Name string
- The AWS GovCloud Config integration name.
- Org
Level bool - Queue
Url string - The SQS Queue URL.
- 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 Ct 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 Ct Id - Intg
Guid string - Name string
- The AWS GovCloud Config integration name.
- Org
Level bool - Queue
Url string - The SQS Queue URL.
- 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 Ct 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 Ct Id - intg
Guid String - name String
- The AWS GovCloud Config integration name.
- org
Level Boolean - queue
Url String - The SQS Queue URL.
- 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 Ct 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 Ct Id - intg
Guid string - name string
- The AWS GovCloud Config integration name.
- org
Level boolean - queue
Url string - The SQS Queue URL.
- 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 Ct 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_ ct_ id - 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
- 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 Ct Id - intg
Guid String - name String
- The AWS GovCloud Config integration name.
- org
Level Boolean - queue
Url String - The SQS Queue URL.
- retries Number
- The number of attempts to create the external integration. Defaults to
5
. - type
Name String
Supporting Types
IntegrationAwsGovcloudCtCredentials, IntegrationAwsGovcloudCtCredentialsArgs
- 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 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.