1. Packages
  2. Sysdig Provider
  3. API Docs
  4. SecureCloudAuthAccountComponent
sysdig 1.53.0 published on Thursday, Apr 17, 2025 by sysdiglabs

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",
        },
    }),
});
Copy
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",
        },
    }))
Copy
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
	})
}
Copy
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",
            },
        }),
    });

});
Copy
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());

    }
}
Copy
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
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. SecureCloudAuthAccountComponentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. SecureCloudAuthAccountComponentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SecureCloudAuthAccountComponentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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: &.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"),
})
Copy
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());
Copy
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")
Copy
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",
});
Copy
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
Copy

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:

AccountId This property is required. string
Cloud Account created using resource sysdig_secure_cloud_auth_account.
Instance This property is required. string
Type This property is required. string
The type of component to be created. e.g. COMPONENT_SERVICE_PRINCIPAL.
CloudConnectorMetadata string
CloudLogsMetadata string
CryptoKeyMetadata string
EventBridgeMetadata string
SecureCloudAuthAccountComponentId string
ServicePrincipalMetadata string
Timeouts SecureCloudAuthAccountComponentTimeouts
TrustedRoleMetadata string
Version string
WebhookDatasourceMetadata string
AccountId This property is required. string
Cloud Account created using resource sysdig_secure_cloud_auth_account.
Instance This property is required. string
Type This property is required. string
The type of component to be created. e.g. COMPONENT_SERVICE_PRINCIPAL.
CloudConnectorMetadata string
CloudLogsMetadata string
CryptoKeyMetadata string
EventBridgeMetadata string
SecureCloudAuthAccountComponentId string
ServicePrincipalMetadata string
Timeouts SecureCloudAuthAccountComponentTimeoutsArgs
TrustedRoleMetadata string
Version string
WebhookDatasourceMetadata string
accountId This property is required. String
Cloud Account created using resource sysdig_secure_cloud_auth_account.
instance This property is required. String
type This property is required. String
The type of component to be created. e.g. COMPONENT_SERVICE_PRINCIPAL.
cloudConnectorMetadata String
cloudLogsMetadata String
cryptoKeyMetadata String
eventBridgeMetadata String
secureCloudAuthAccountComponentId String
servicePrincipalMetadata String
timeouts SecureCloudAuthAccountComponentTimeouts
trustedRoleMetadata String
version String
webhookDatasourceMetadata String
accountId This property is required. string
Cloud Account created using resource sysdig_secure_cloud_auth_account.
instance This property is required. string
type This property is required. string
The type of component to be created. e.g. COMPONENT_SERVICE_PRINCIPAL.
cloudConnectorMetadata string
cloudLogsMetadata string
cryptoKeyMetadata string
eventBridgeMetadata string
secureCloudAuthAccountComponentId string
servicePrincipalMetadata string
timeouts SecureCloudAuthAccountComponentTimeouts
trustedRoleMetadata string
version string
webhookDatasourceMetadata string
account_id This property is required. str
Cloud Account created using resource sysdig_secure_cloud_auth_account.
instance This property is required. str
type This property is required. str
The type of component to be created. e.g. COMPONENT_SERVICE_PRINCIPAL.
cloud_connector_metadata str
cloud_logs_metadata str
crypto_key_metadata str
event_bridge_metadata str
secure_cloud_auth_account_component_id str
service_principal_metadata str
timeouts SecureCloudAuthAccountComponentTimeoutsArgs
trusted_role_metadata str
version str
webhook_datasource_metadata str
accountId This property is required. String
Cloud Account created using resource sysdig_secure_cloud_auth_account.
instance This property is required. String
type This property is required. String
The type of component to be created. e.g. COMPONENT_SERVICE_PRINCIPAL.
cloudConnectorMetadata String
cloudLogsMetadata String
cryptoKeyMetadata String
eventBridgeMetadata String
secureCloudAuthAccountComponentId String
servicePrincipalMetadata String
timeouts Property Map
trustedRoleMetadata String
version String
webhookDatasourceMetadata String

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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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
Cloud Account created using resource sysdig_secure_cloud_auth_account.
CloudConnectorMetadata string
CloudLogsMetadata string
CryptoKeyMetadata string
EventBridgeMetadata string
Instance string
SecureCloudAuthAccountComponentId string
ServicePrincipalMetadata string
Timeouts SecureCloudAuthAccountComponentTimeouts
TrustedRoleMetadata string
Type string
The type of component to be created. e.g. COMPONENT_SERVICE_PRINCIPAL.
Version string
WebhookDatasourceMetadata string
AccountId string
Cloud Account created using resource sysdig_secure_cloud_auth_account.
CloudConnectorMetadata string
CloudLogsMetadata string
CryptoKeyMetadata string
EventBridgeMetadata string
Instance string
SecureCloudAuthAccountComponentId string
ServicePrincipalMetadata string
Timeouts SecureCloudAuthAccountComponentTimeoutsArgs
TrustedRoleMetadata string
Type string
The type of component to be created. e.g. COMPONENT_SERVICE_PRINCIPAL.
Version string
WebhookDatasourceMetadata string
accountId String
Cloud Account created using resource sysdig_secure_cloud_auth_account.
cloudConnectorMetadata String
cloudLogsMetadata String
cryptoKeyMetadata String
eventBridgeMetadata String
instance String
secureCloudAuthAccountComponentId String
servicePrincipalMetadata String
timeouts SecureCloudAuthAccountComponentTimeouts
trustedRoleMetadata String
type String
The type of component to be created. e.g. COMPONENT_SERVICE_PRINCIPAL.
version String
webhookDatasourceMetadata String
accountId string
Cloud Account created using resource sysdig_secure_cloud_auth_account.
cloudConnectorMetadata string
cloudLogsMetadata string
cryptoKeyMetadata string
eventBridgeMetadata string
instance string
secureCloudAuthAccountComponentId string
servicePrincipalMetadata string
timeouts SecureCloudAuthAccountComponentTimeouts
trustedRoleMetadata string
type string
The type of component to be created. e.g. COMPONENT_SERVICE_PRINCIPAL.
version string
webhookDatasourceMetadata string
account_id str
Cloud Account created using resource sysdig_secure_cloud_auth_account.
cloud_connector_metadata str
cloud_logs_metadata str
crypto_key_metadata str
event_bridge_metadata str
instance str
secure_cloud_auth_account_component_id str
service_principal_metadata str
timeouts SecureCloudAuthAccountComponentTimeoutsArgs
trusted_role_metadata str
type str
The type of component to be created. e.g. COMPONENT_SERVICE_PRINCIPAL.
version str
webhook_datasource_metadata str
accountId String
Cloud Account created using resource sysdig_secure_cloud_auth_account.
cloudConnectorMetadata String
cloudLogsMetadata String
cryptoKeyMetadata String
eventBridgeMetadata String
instance String
secureCloudAuthAccountComponentId String
servicePrincipalMetadata String
timeouts Property Map
trustedRoleMetadata String
type String
The type of component to be created. e.g. COMPONENT_SERVICE_PRINCIPAL.
version String
webhookDatasourceMetadata String

Supporting Types

SecureCloudAuthAccountComponentTimeouts
, SecureCloudAuthAccountComponentTimeoutsArgs

Create string
Delete string
Read string
Update string
Create string
Delete string
Read string
Update string
create String
delete String
read String
update String
create string
delete string
read string
update string
create str
delete str
read str
update str
create String
delete String
read String
update String

Package Details

Repository
sysdig sysdiglabs/terraform-provider-sysdig
License
Notes
This Pulumi package is based on the sysdig Terraform Provider.