lacework.IntegrationGcpCfg
Explore with Pulumi AI
Import
A Lacework GCP Config integration can be imported using a INT_GUID
, e.g.
$ pulumi import lacework:index/integrationGcpCfg:IntegrationGcpCfg account_abc 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.
Create IntegrationGcpCfg Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IntegrationGcpCfg(name: string, args: IntegrationGcpCfgArgs, opts?: CustomResourceOptions);
@overload
def IntegrationGcpCfg(resource_name: str,
args: IntegrationGcpCfgArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IntegrationGcpCfg(resource_name: str,
opts: Optional[ResourceOptions] = None,
credentials: Optional[IntegrationGcpCfgCredentialsArgs] = None,
resource_id: Optional[str] = None,
enabled: Optional[bool] = None,
integration_gcp_cfg_id: Optional[str] = None,
name: Optional[str] = None,
resource_level: Optional[str] = None,
retries: Optional[float] = None)
func NewIntegrationGcpCfg(ctx *Context, name string, args IntegrationGcpCfgArgs, opts ...ResourceOption) (*IntegrationGcpCfg, error)
public IntegrationGcpCfg(string name, IntegrationGcpCfgArgs args, CustomResourceOptions? opts = null)
public IntegrationGcpCfg(String name, IntegrationGcpCfgArgs args)
public IntegrationGcpCfg(String name, IntegrationGcpCfgArgs args, CustomResourceOptions options)
type: lacework:IntegrationGcpCfg
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 IntegrationGcpCfgArgs
- 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 IntegrationGcpCfgArgs
- 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 IntegrationGcpCfgArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IntegrationGcpCfgArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IntegrationGcpCfgArgs
- 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 integrationGcpCfgResource = new Lacework.IntegrationGcpCfg("integrationGcpCfgResource", new()
{
Credentials = new Lacework.Inputs.IntegrationGcpCfgCredentialsArgs
{
ClientEmail = "string",
ClientId = "string",
PrivateKey = "string",
PrivateKeyId = "string",
},
ResourceId = "string",
Enabled = false,
IntegrationGcpCfgId = "string",
Name = "string",
ResourceLevel = "string",
Retries = 0,
});
example, err := lacework.NewIntegrationGcpCfg(ctx, "integrationGcpCfgResource", &lacework.IntegrationGcpCfgArgs{
Credentials: &lacework.IntegrationGcpCfgCredentialsArgs{
ClientEmail: pulumi.String("string"),
ClientId: pulumi.String("string"),
PrivateKey: pulumi.String("string"),
PrivateKeyId: pulumi.String("string"),
},
ResourceId: pulumi.String("string"),
Enabled: pulumi.Bool(false),
IntegrationGcpCfgId: pulumi.String("string"),
Name: pulumi.String("string"),
ResourceLevel: pulumi.String("string"),
Retries: pulumi.Float64(0),
})
var integrationGcpCfgResource = new IntegrationGcpCfg("integrationGcpCfgResource", IntegrationGcpCfgArgs.builder()
.credentials(IntegrationGcpCfgCredentialsArgs.builder()
.clientEmail("string")
.clientId("string")
.privateKey("string")
.privateKeyId("string")
.build())
.resourceId("string")
.enabled(false)
.integrationGcpCfgId("string")
.name("string")
.resourceLevel("string")
.retries(0)
.build());
integration_gcp_cfg_resource = lacework.IntegrationGcpCfg("integrationGcpCfgResource",
credentials={
"client_email": "string",
"client_id": "string",
"private_key": "string",
"private_key_id": "string",
},
resource_id="string",
enabled=False,
integration_gcp_cfg_id="string",
name="string",
resource_level="string",
retries=0)
const integrationGcpCfgResource = new lacework.IntegrationGcpCfg("integrationGcpCfgResource", {
credentials: {
clientEmail: "string",
clientId: "string",
privateKey: "string",
privateKeyId: "string",
},
resourceId: "string",
enabled: false,
integrationGcpCfgId: "string",
name: "string",
resourceLevel: "string",
retries: 0,
});
type: lacework:IntegrationGcpCfg
properties:
credentials:
clientEmail: string
clientId: string
privateKey: string
privateKeyId: string
enabled: false
integrationGcpCfgId: string
name: string
resourceId: string
resourceLevel: string
retries: 0
IntegrationGcpCfg 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 IntegrationGcpCfg resource accepts the following input properties:
- Credentials
Integration
Gcp Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- Resource
Id string - The organization or project ID.
- Enabled bool
- The state of the external integration. Defaults to
true
. - Integration
Gcp stringCfg Id - Name string
- The GCP Config integration name.
- Resource
Level string - The integration level. Must be one of
PROJECT
orORGANIZATION
. Defaults toPROJECT
. - Retries double
- The number of attempts to create the external integration. Defaults to
5
.
- Credentials
Integration
Gcp Cfg Credentials Args - The credentials needed by the integration. See Credentials below for details.
- Resource
Id string - The organization or project ID.
- Enabled bool
- The state of the external integration. Defaults to
true
. - Integration
Gcp stringCfg Id - Name string
- The GCP Config integration name.
- Resource
Level string - The integration level. Must be one of
PROJECT
orORGANIZATION
. Defaults toPROJECT
. - Retries float64
- The number of attempts to create the external integration. Defaults to
5
.
- credentials
Integration
Gcp Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- resource
Id String - The organization or project ID.
- enabled Boolean
- The state of the external integration. Defaults to
true
. - integration
Gcp StringCfg Id - name String
- The GCP Config integration name.
- resource
Level String - The integration level. Must be one of
PROJECT
orORGANIZATION
. Defaults toPROJECT
. - retries Double
- The number of attempts to create the external integration. Defaults to
5
.
- credentials
Integration
Gcp Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- resource
Id string - The organization or project ID.
- enabled boolean
- The state of the external integration. Defaults to
true
. - integration
Gcp stringCfg Id - name string
- The GCP Config integration name.
- resource
Level string - The integration level. Must be one of
PROJECT
orORGANIZATION
. Defaults toPROJECT
. - retries number
- The number of attempts to create the external integration. Defaults to
5
.
- credentials
Integration
Gcp Cfg Credentials Args - The credentials needed by the integration. See Credentials below for details.
- resource_
id str - The organization or project ID.
- enabled bool
- The state of the external integration. Defaults to
true
. - integration_
gcp_ strcfg_ id - name str
- The GCP Config integration name.
- resource_
level str - The integration level. Must be one of
PROJECT
orORGANIZATION
. Defaults toPROJECT
. - retries float
- The number of attempts to create the external integration. Defaults to
5
.
- credentials Property Map
- The credentials needed by the integration. See Credentials below for details.
- resource
Id String - The organization or project ID.
- enabled Boolean
- The state of the external integration. Defaults to
true
. - integration
Gcp StringCfg Id - name String
- The GCP Config integration name.
- resource
Level String - The integration level. Must be one of
PROJECT
orORGANIZATION
. Defaults toPROJECT
. - 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 IntegrationGcpCfg 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 IntegrationGcpCfg Resource
Get an existing IntegrationGcpCfg 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?: IntegrationGcpCfgState, opts?: CustomResourceOptions): IntegrationGcpCfg
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_or_updated_by: Optional[str] = None,
created_or_updated_time: Optional[str] = None,
credentials: Optional[IntegrationGcpCfgCredentialsArgs] = None,
enabled: Optional[bool] = None,
integration_gcp_cfg_id: Optional[str] = None,
intg_guid: Optional[str] = None,
name: Optional[str] = None,
org_level: Optional[bool] = None,
resource_id: Optional[str] = None,
resource_level: Optional[str] = None,
retries: Optional[float] = None,
type_name: Optional[str] = None) -> IntegrationGcpCfg
func GetIntegrationGcpCfg(ctx *Context, name string, id IDInput, state *IntegrationGcpCfgState, opts ...ResourceOption) (*IntegrationGcpCfg, error)
public static IntegrationGcpCfg Get(string name, Input<string> id, IntegrationGcpCfgState? state, CustomResourceOptions? opts = null)
public static IntegrationGcpCfg get(String name, Output<String> id, IntegrationGcpCfgState state, CustomResourceOptions options)
resources: _: type: lacework:IntegrationGcpCfg 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.
- Created
Or stringUpdated By - Created
Or stringUpdated Time - Credentials
Integration
Gcp 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
Gcp stringCfg Id - Intg
Guid string - Name string
- The GCP Config integration name.
- Org
Level bool - Resource
Id string - The organization or project ID.
- Resource
Level string - The integration level. Must be one of
PROJECT
orORGANIZATION
. Defaults toPROJECT
. - Retries double
- The number of attempts to create the external integration. Defaults to
5
. - Type
Name string
- Created
Or stringUpdated By - Created
Or stringUpdated Time - Credentials
Integration
Gcp 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
Gcp stringCfg Id - Intg
Guid string - Name string
- The GCP Config integration name.
- Org
Level bool - Resource
Id string - The organization or project ID.
- Resource
Level string - The integration level. Must be one of
PROJECT
orORGANIZATION
. Defaults toPROJECT
. - Retries float64
- The number of attempts to create the external integration. Defaults to
5
. - Type
Name string
- created
Or StringUpdated By - created
Or StringUpdated Time - credentials
Integration
Gcp 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
Gcp StringCfg Id - intg
Guid String - name String
- The GCP Config integration name.
- org
Level Boolean - resource
Id String - The organization or project ID.
- resource
Level String - The integration level. Must be one of
PROJECT
orORGANIZATION
. Defaults toPROJECT
. - retries Double
- The number of attempts to create the external integration. Defaults to
5
. - type
Name String
- created
Or stringUpdated By - created
Or stringUpdated Time - credentials
Integration
Gcp 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
Gcp stringCfg Id - intg
Guid string - name string
- The GCP Config integration name.
- org
Level boolean - resource
Id string - The organization or project ID.
- resource
Level string - The integration level. Must be one of
PROJECT
orORGANIZATION
. Defaults toPROJECT
. - retries number
- The number of attempts to create the external integration. Defaults to
5
. - type
Name string
- created_
or_ strupdated_ by - created_
or_ strupdated_ time - credentials
Integration
Gcp 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_
gcp_ strcfg_ id - intg_
guid str - name str
- The GCP Config integration name.
- org_
level bool - resource_
id str - The organization or project ID.
- resource_
level str - The integration level. Must be one of
PROJECT
orORGANIZATION
. Defaults toPROJECT
. - retries float
- The number of attempts to create the external integration. Defaults to
5
. - type_
name str
- 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
Gcp StringCfg Id - intg
Guid String - name String
- The GCP Config integration name.
- org
Level Boolean - resource
Id String - The organization or project ID.
- resource
Level String - The integration level. Must be one of
PROJECT
orORGANIZATION
. Defaults toPROJECT
. - retries Number
- The number of attempts to create the external integration. Defaults to
5
. - type
Name String
Supporting Types
IntegrationGcpCfgCredentials, IntegrationGcpCfgCredentialsArgs
- Client
Email string - The service account client email.
- Client
Id string - The service account client ID.
- Private
Key string - The service account private key.
- Private
Key stringId - The service account private key ID.
- Client
Email string - The service account client email.
- Client
Id string - The service account client ID.
- Private
Key string - The service account private key.
- Private
Key stringId - The service account private key ID.
- client
Email String - The service account client email.
- client
Id String - The service account client ID.
- private
Key String - The service account private key.
- private
Key StringId - The service account private key ID.
- client
Email string - The service account client email.
- client
Id string - The service account client ID.
- private
Key string - The service account private key.
- private
Key stringId - The service account private key ID.
- client_
email str - The service account client email.
- client_
id str - The service account client ID.
- private_
key str - The service account private key.
- private_
key_ strid - The service account private key ID.
- client
Email String - The service account client email.
- client
Id String - The service account client ID.
- private
Key String - The service account private key.
- private
Key StringId - The service account private key ID.
Package Details
- Repository
- lacework lacework/terraform-provider-lacework
- License
- Notes
- This Pulumi package is based on the
lacework
Terraform Provider.