sysdig.SecureCloudAuthAccountComponent
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sysdig from "@pulumi/sysdig";
const sampleSecureCloudAuthAccount = new sysdig.SecureCloudAuthAccount("sampleSecureCloudAuthAccount", {
providerId: "mygcpproject",
providerType: "PROVIDER_GCP",
enabled: true,
});
const sampleSecureCloudAuthAccountComponent = new sysdig.SecureCloudAuthAccountComponent("sampleSecureCloudAuthAccountComponent", {
accountId: sampleSecureCloudAuthAccount.secureCloudAuthAccountId,
type: "COMPONENT_SERVICE_PRINCIPAL",
instance: "secure-posture",
servicePrincipalMetadata: JSON.stringify({
gcp: {
key: "gcp-sa-key",
},
}),
});
import pulumi
import json
import pulumi_sysdig as sysdig
sample_secure_cloud_auth_account = sysdig.SecureCloudAuthAccount("sampleSecureCloudAuthAccount",
provider_id="mygcpproject",
provider_type="PROVIDER_GCP",
enabled=True)
sample_secure_cloud_auth_account_component = sysdig.SecureCloudAuthAccountComponent("sampleSecureCloudAuthAccountComponent",
account_id=sample_secure_cloud_auth_account.secure_cloud_auth_account_id,
type="COMPONENT_SERVICE_PRINCIPAL",
instance="secure-posture",
service_principal_metadata=json.dumps({
"gcp": {
"key": "gcp-sa-key",
},
}))
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-terraform-provider/sdks/go/sysdig/sysdig"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
sampleSecureCloudAuthAccount, err := sysdig.NewSecureCloudAuthAccount(ctx, "sampleSecureCloudAuthAccount", &sysdig.SecureCloudAuthAccountArgs{
ProviderId: pulumi.String("mygcpproject"),
ProviderType: pulumi.String("PROVIDER_GCP"),
Enabled: pulumi.Bool(true),
})
if err != nil {
return err
}
tmpJSON0, err := json.Marshal(map[string]interface{}{
"gcp": map[string]interface{}{
"key": "gcp-sa-key",
},
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
_, err = sysdig.NewSecureCloudAuthAccountComponent(ctx, "sampleSecureCloudAuthAccountComponent", &sysdig.SecureCloudAuthAccountComponentArgs{
AccountId: sampleSecureCloudAuthAccount.SecureCloudAuthAccountId,
Type: pulumi.String("COMPONENT_SERVICE_PRINCIPAL"),
Instance: pulumi.String("secure-posture"),
ServicePrincipalMetadata: pulumi.String(json0),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Sysdig = Pulumi.Sysdig;
return await Deployment.RunAsync(() =>
{
var sampleSecureCloudAuthAccount = new Sysdig.SecureCloudAuthAccount("sampleSecureCloudAuthAccount", new()
{
ProviderId = "mygcpproject",
ProviderType = "PROVIDER_GCP",
Enabled = true,
});
var sampleSecureCloudAuthAccountComponent = new Sysdig.SecureCloudAuthAccountComponent("sampleSecureCloudAuthAccountComponent", new()
{
AccountId = sampleSecureCloudAuthAccount.SecureCloudAuthAccountId,
Type = "COMPONENT_SERVICE_PRINCIPAL",
Instance = "secure-posture",
ServicePrincipalMetadata = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["gcp"] = new Dictionary<string, object?>
{
["key"] = "gcp-sa-key",
},
}),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sysdig.SecureCloudAuthAccount;
import com.pulumi.sysdig.SecureCloudAuthAccountArgs;
import com.pulumi.sysdig.SecureCloudAuthAccountComponent;
import com.pulumi.sysdig.SecureCloudAuthAccountComponentArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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 sampleSecureCloudAuthAccount = new SecureCloudAuthAccount("sampleSecureCloudAuthAccount", SecureCloudAuthAccountArgs.builder()
.providerId("mygcpproject")
.providerType("PROVIDER_GCP")
.enabled(true)
.build());
var sampleSecureCloudAuthAccountComponent = new SecureCloudAuthAccountComponent("sampleSecureCloudAuthAccountComponent", SecureCloudAuthAccountComponentArgs.builder()
.accountId(sampleSecureCloudAuthAccount.secureCloudAuthAccountId())
.type("COMPONENT_SERVICE_PRINCIPAL")
.instance("secure-posture")
.servicePrincipalMetadata(serializeJson(
jsonObject(
jsonProperty("gcp", jsonObject(
jsonProperty("key", "gcp-sa-key")
))
)))
.build());
}
}
resources:
sampleSecureCloudAuthAccount:
type: sysdig:SecureCloudAuthAccount
properties:
providerId: mygcpproject
providerType: PROVIDER_GCP
enabled: true
sampleSecureCloudAuthAccountComponent:
type: sysdig:SecureCloudAuthAccountComponent
properties:
accountId: ${sampleSecureCloudAuthAccount.secureCloudAuthAccountId}
type: COMPONENT_SERVICE_PRINCIPAL
instance: secure-posture
servicePrincipalMetadata:
fn::toJSON:
gcp:
key: gcp-sa-key
Create SecureCloudAuthAccountComponent Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecureCloudAuthAccountComponent(name: string, args: SecureCloudAuthAccountComponentArgs, opts?: CustomResourceOptions);
@overload
def SecureCloudAuthAccountComponent(resource_name: str,
args: SecureCloudAuthAccountComponentInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecureCloudAuthAccountComponent(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance: Optional[str] = None,
type: Optional[str] = None,
account_id: Optional[str] = None,
secure_cloud_auth_account_component_id: Optional[str] = None,
event_bridge_metadata: Optional[str] = None,
crypto_key_metadata: Optional[str] = None,
cloud_logs_metadata: Optional[str] = None,
service_principal_metadata: Optional[str] = None,
timeouts: Optional[SecureCloudAuthAccountComponentTimeoutsArgs] = None,
trusted_role_metadata: Optional[str] = None,
cloud_connector_metadata: Optional[str] = None,
version: Optional[str] = None,
webhook_datasource_metadata: Optional[str] = None)
func NewSecureCloudAuthAccountComponent(ctx *Context, name string, args SecureCloudAuthAccountComponentArgs, opts ...ResourceOption) (*SecureCloudAuthAccountComponent, error)
public SecureCloudAuthAccountComponent(string name, SecureCloudAuthAccountComponentArgs args, CustomResourceOptions? opts = null)
public SecureCloudAuthAccountComponent(String name, SecureCloudAuthAccountComponentArgs args)
public SecureCloudAuthAccountComponent(String name, SecureCloudAuthAccountComponentArgs args, CustomResourceOptions options)
type: sysdig:SecureCloudAuthAccountComponent
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 SecureCloudAuthAccountComponentArgs
- 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 SecureCloudAuthAccountComponentInitArgs
- 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 SecureCloudAuthAccountComponentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecureCloudAuthAccountComponentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecureCloudAuthAccountComponentArgs
- 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 secureCloudAuthAccountComponentResource = new Sysdig.SecureCloudAuthAccountComponent("secureCloudAuthAccountComponentResource", new()
{
Instance = "string",
Type = "string",
AccountId = "string",
SecureCloudAuthAccountComponentId = "string",
EventBridgeMetadata = "string",
CryptoKeyMetadata = "string",
CloudLogsMetadata = "string",
ServicePrincipalMetadata = "string",
Timeouts = new Sysdig.Inputs.SecureCloudAuthAccountComponentTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
TrustedRoleMetadata = "string",
CloudConnectorMetadata = "string",
Version = "string",
WebhookDatasourceMetadata = "string",
});
example, err := sysdig.NewSecureCloudAuthAccountComponent(ctx, "secureCloudAuthAccountComponentResource", &sysdig.SecureCloudAuthAccountComponentArgs{
Instance: pulumi.String("string"),
Type: pulumi.String("string"),
AccountId: pulumi.String("string"),
SecureCloudAuthAccountComponentId: pulumi.String("string"),
EventBridgeMetadata: pulumi.String("string"),
CryptoKeyMetadata: pulumi.String("string"),
CloudLogsMetadata: pulumi.String("string"),
ServicePrincipalMetadata: pulumi.String("string"),
Timeouts: &sysdig.SecureCloudAuthAccountComponentTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
TrustedRoleMetadata: pulumi.String("string"),
CloudConnectorMetadata: pulumi.String("string"),
Version: pulumi.String("string"),
WebhookDatasourceMetadata: pulumi.String("string"),
})
var secureCloudAuthAccountComponentResource = new SecureCloudAuthAccountComponent("secureCloudAuthAccountComponentResource", SecureCloudAuthAccountComponentArgs.builder()
.instance("string")
.type("string")
.accountId("string")
.secureCloudAuthAccountComponentId("string")
.eventBridgeMetadata("string")
.cryptoKeyMetadata("string")
.cloudLogsMetadata("string")
.servicePrincipalMetadata("string")
.timeouts(SecureCloudAuthAccountComponentTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.trustedRoleMetadata("string")
.cloudConnectorMetadata("string")
.version("string")
.webhookDatasourceMetadata("string")
.build());
secure_cloud_auth_account_component_resource = sysdig.SecureCloudAuthAccountComponent("secureCloudAuthAccountComponentResource",
instance="string",
type="string",
account_id="string",
secure_cloud_auth_account_component_id="string",
event_bridge_metadata="string",
crypto_key_metadata="string",
cloud_logs_metadata="string",
service_principal_metadata="string",
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
},
trusted_role_metadata="string",
cloud_connector_metadata="string",
version="string",
webhook_datasource_metadata="string")
const secureCloudAuthAccountComponentResource = new sysdig.SecureCloudAuthAccountComponent("secureCloudAuthAccountComponentResource", {
instance: "string",
type: "string",
accountId: "string",
secureCloudAuthAccountComponentId: "string",
eventBridgeMetadata: "string",
cryptoKeyMetadata: "string",
cloudLogsMetadata: "string",
servicePrincipalMetadata: "string",
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
trustedRoleMetadata: "string",
cloudConnectorMetadata: "string",
version: "string",
webhookDatasourceMetadata: "string",
});
type: sysdig:SecureCloudAuthAccountComponent
properties:
accountId: string
cloudConnectorMetadata: string
cloudLogsMetadata: string
cryptoKeyMetadata: string
eventBridgeMetadata: string
instance: string
secureCloudAuthAccountComponentId: string
servicePrincipalMetadata: string
timeouts:
create: string
delete: string
read: string
update: string
trustedRoleMetadata: string
type: string
version: string
webhookDatasourceMetadata: string
SecureCloudAuthAccountComponent 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 SecureCloudAuthAccountComponent resource accepts the following input properties:
- Account
Id string - Cloud Account created using resource sysdig_secure_cloud_auth_account.
- Instance string
- Type string
- The type of component to be created. e.g.
COMPONENT_SERVICE_PRINCIPAL
. - Cloud
Connector stringMetadata - Cloud
Logs stringMetadata - Crypto
Key stringMetadata - Event
Bridge stringMetadata - Secure
Cloud stringAuth Account Component Id - Service
Principal stringMetadata - Timeouts
Secure
Cloud Auth Account Component Timeouts - Trusted
Role stringMetadata - Version string
- Webhook
Datasource stringMetadata
- Account
Id string - Cloud Account created using resource sysdig_secure_cloud_auth_account.
- Instance string
- Type string
- The type of component to be created. e.g.
COMPONENT_SERVICE_PRINCIPAL
. - Cloud
Connector stringMetadata - Cloud
Logs stringMetadata - Crypto
Key stringMetadata - Event
Bridge stringMetadata - Secure
Cloud stringAuth Account Component Id - Service
Principal stringMetadata - Timeouts
Secure
Cloud Auth Account Component Timeouts Args - Trusted
Role stringMetadata - Version string
- Webhook
Datasource stringMetadata
- account
Id String - Cloud Account created using resource sysdig_secure_cloud_auth_account.
- instance String
- type String
- The type of component to be created. e.g.
COMPONENT_SERVICE_PRINCIPAL
. - cloud
Connector StringMetadata - cloud
Logs StringMetadata - crypto
Key StringMetadata - event
Bridge StringMetadata - secure
Cloud StringAuth Account Component Id - service
Principal StringMetadata - timeouts
Secure
Cloud Auth Account Component Timeouts - trusted
Role StringMetadata - version String
- webhook
Datasource StringMetadata
- account
Id string - Cloud Account created using resource sysdig_secure_cloud_auth_account.
- instance string
- type string
- The type of component to be created. e.g.
COMPONENT_SERVICE_PRINCIPAL
. - cloud
Connector stringMetadata - cloud
Logs stringMetadata - crypto
Key stringMetadata - event
Bridge stringMetadata - secure
Cloud stringAuth Account Component Id - service
Principal stringMetadata - timeouts
Secure
Cloud Auth Account Component Timeouts - trusted
Role stringMetadata - version string
- webhook
Datasource stringMetadata
- account_
id str - Cloud Account created using resource sysdig_secure_cloud_auth_account.
- instance str
- type str
- The type of component to be created. e.g.
COMPONENT_SERVICE_PRINCIPAL
. - cloud_
connector_ strmetadata - cloud_
logs_ strmetadata - crypto_
key_ strmetadata - event_
bridge_ strmetadata - secure_
cloud_ strauth_ account_ component_ id - service_
principal_ strmetadata - timeouts
Secure
Cloud Auth Account Component Timeouts Args - trusted_
role_ strmetadata - version str
- webhook_
datasource_ strmetadata
- account
Id String - Cloud Account created using resource sysdig_secure_cloud_auth_account.
- instance String
- type String
- The type of component to be created. e.g.
COMPONENT_SERVICE_PRINCIPAL
. - cloud
Connector StringMetadata - cloud
Logs StringMetadata - crypto
Key StringMetadata - event
Bridge StringMetadata - secure
Cloud StringAuth Account Component Id - service
Principal StringMetadata - timeouts Property Map
- trusted
Role StringMetadata - version String
- webhook
Datasource StringMetadata
Outputs
All input properties are implicitly available as output properties. Additionally, the SecureCloudAuthAccountComponent resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SecureCloudAuthAccountComponent Resource
Get an existing SecureCloudAuthAccountComponent 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?: SecureCloudAuthAccountComponentState, opts?: CustomResourceOptions): SecureCloudAuthAccountComponent
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
cloud_connector_metadata: Optional[str] = None,
cloud_logs_metadata: Optional[str] = None,
crypto_key_metadata: Optional[str] = None,
event_bridge_metadata: Optional[str] = None,
instance: Optional[str] = None,
secure_cloud_auth_account_component_id: Optional[str] = None,
service_principal_metadata: Optional[str] = None,
timeouts: Optional[SecureCloudAuthAccountComponentTimeoutsArgs] = None,
trusted_role_metadata: Optional[str] = None,
type: Optional[str] = None,
version: Optional[str] = None,
webhook_datasource_metadata: Optional[str] = None) -> SecureCloudAuthAccountComponent
func GetSecureCloudAuthAccountComponent(ctx *Context, name string, id IDInput, state *SecureCloudAuthAccountComponentState, opts ...ResourceOption) (*SecureCloudAuthAccountComponent, error)
public static SecureCloudAuthAccountComponent Get(string name, Input<string> id, SecureCloudAuthAccountComponentState? state, CustomResourceOptions? opts = null)
public static SecureCloudAuthAccountComponent get(String name, Output<String> id, SecureCloudAuthAccountComponentState state, CustomResourceOptions options)
resources: _: type: sysdig:SecureCloudAuthAccountComponent 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 - Cloud Account created using resource sysdig_secure_cloud_auth_account.
- Cloud
Connector stringMetadata - Cloud
Logs stringMetadata - Crypto
Key stringMetadata - Event
Bridge stringMetadata - Instance string
- Secure
Cloud stringAuth Account Component Id - Service
Principal stringMetadata - Timeouts
Secure
Cloud Auth Account Component Timeouts - Trusted
Role stringMetadata - Type string
- The type of component to be created. e.g.
COMPONENT_SERVICE_PRINCIPAL
. - Version string
- Webhook
Datasource stringMetadata
- Account
Id string - Cloud Account created using resource sysdig_secure_cloud_auth_account.
- Cloud
Connector stringMetadata - Cloud
Logs stringMetadata - Crypto
Key stringMetadata - Event
Bridge stringMetadata - Instance string
- Secure
Cloud stringAuth Account Component Id - Service
Principal stringMetadata - Timeouts
Secure
Cloud Auth Account Component Timeouts Args - Trusted
Role stringMetadata - Type string
- The type of component to be created. e.g.
COMPONENT_SERVICE_PRINCIPAL
. - Version string
- Webhook
Datasource stringMetadata
- account
Id String - Cloud Account created using resource sysdig_secure_cloud_auth_account.
- cloud
Connector StringMetadata - cloud
Logs StringMetadata - crypto
Key StringMetadata - event
Bridge StringMetadata - instance String
- secure
Cloud StringAuth Account Component Id - service
Principal StringMetadata - timeouts
Secure
Cloud Auth Account Component Timeouts - trusted
Role StringMetadata - type String
- The type of component to be created. e.g.
COMPONENT_SERVICE_PRINCIPAL
. - version String
- webhook
Datasource StringMetadata
- account
Id string - Cloud Account created using resource sysdig_secure_cloud_auth_account.
- cloud
Connector stringMetadata - cloud
Logs stringMetadata - crypto
Key stringMetadata - event
Bridge stringMetadata - instance string
- secure
Cloud stringAuth Account Component Id - service
Principal stringMetadata - timeouts
Secure
Cloud Auth Account Component Timeouts - trusted
Role stringMetadata - type string
- The type of component to be created. e.g.
COMPONENT_SERVICE_PRINCIPAL
. - version string
- webhook
Datasource stringMetadata
- account_
id str - Cloud Account created using resource sysdig_secure_cloud_auth_account.
- cloud_
connector_ strmetadata - cloud_
logs_ strmetadata - crypto_
key_ strmetadata - event_
bridge_ strmetadata - instance str
- secure_
cloud_ strauth_ account_ component_ id - service_
principal_ strmetadata - timeouts
Secure
Cloud Auth Account Component Timeouts Args - trusted_
role_ strmetadata - type str
- The type of component to be created. e.g.
COMPONENT_SERVICE_PRINCIPAL
. - version str
- webhook_
datasource_ strmetadata
- account
Id String - Cloud Account created using resource sysdig_secure_cloud_auth_account.
- cloud
Connector StringMetadata - cloud
Logs StringMetadata - crypto
Key StringMetadata - event
Bridge StringMetadata - instance String
- secure
Cloud StringAuth Account Component Id - service
Principal StringMetadata - timeouts Property Map
- trusted
Role StringMetadata - type String
- The type of component to be created. e.g.
COMPONENT_SERVICE_PRINCIPAL
. - version String
- webhook
Datasource StringMetadata
Supporting Types
SecureCloudAuthAccountComponentTimeouts, SecureCloudAuthAccountComponentTimeoutsArgs
Package Details
- Repository
- sysdig sysdiglabs/terraform-provider-sysdig
- License
- Notes
- This Pulumi package is based on the
sysdig
Terraform Provider.