mongodbatlas

package
v6.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretBackend

type SecretBackend struct {
	pulumi.CustomResourceState

	// Path where the MongoDB Atlas Secrets Engine is mounted.
	Mount pulumi.StringOutput `pulumi:"mount"`
	// The namespace to provision the resource in.
	// The value should not contain leading or trailing forward slashes.
	// The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
	// *Available only for Vault Enterprise*.
	Namespace pulumi.StringPtrOutput `pulumi:"namespace"`
	// Path where MongoDB Atlas configuration is located
	Path pulumi.StringOutput `pulumi:"path"`
	// Specifies the Private API Key used to authenticate with the MongoDB Atlas API.
	PrivateKey pulumi.StringOutput `pulumi:"privateKey"`
	// Specifies the Public API Key used to authenticate with the MongoDB Atlas API.
	PublicKey pulumi.StringOutput `pulumi:"publicKey"`
}

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi-vault/sdk/v6/go/vault"
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		mongo, err := vault.NewMount(ctx, "mongo", &vault.MountArgs{
			Path:        pulumi.String("mongodbatlas"),
			Type:        pulumi.String("mongodbatlas"),
			Description: pulumi.String("MongoDB Atlas secret engine mount"),
		})
		if err != nil {
			return err
		}
		_, err = mongodbatlas.NewSecretBackend(ctx, "config", &mongodbatlas.SecretBackendArgs{
			Mount:      mongo.Path,
			PrivateKey: pulumi.String("privateKey"),
			PublicKey:  pulumi.String("publicKey"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

MongoDB Atlas secret backends can be imported using the `${mount}/config`, e.g.

```sh $ pulumi import vault:mongodbatlas/secretBackend:SecretBackend config mongodbatlas/config ```

func GetSecretBackend

func GetSecretBackend(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SecretBackendState, opts ...pulumi.ResourceOption) (*SecretBackend, error)

GetSecretBackend gets an existing SecretBackend resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSecretBackend

func NewSecretBackend(ctx *pulumi.Context,
	name string, args *SecretBackendArgs, opts ...pulumi.ResourceOption) (*SecretBackend, error)

NewSecretBackend registers a new resource with the given unique name, arguments, and options.

func (*SecretBackend) ElementType

func (*SecretBackend) ElementType() reflect.Type

func (*SecretBackend) ToSecretBackendOutput

func (i *SecretBackend) ToSecretBackendOutput() SecretBackendOutput

func (*SecretBackend) ToSecretBackendOutputWithContext

func (i *SecretBackend) ToSecretBackendOutputWithContext(ctx context.Context) SecretBackendOutput

type SecretBackendArgs

type SecretBackendArgs struct {
	// Path where the MongoDB Atlas Secrets Engine is mounted.
	Mount pulumi.StringInput
	// The namespace to provision the resource in.
	// The value should not contain leading or trailing forward slashes.
	// The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
	// *Available only for Vault Enterprise*.
	Namespace pulumi.StringPtrInput
	// Specifies the Private API Key used to authenticate with the MongoDB Atlas API.
	PrivateKey pulumi.StringInput
	// Specifies the Public API Key used to authenticate with the MongoDB Atlas API.
	PublicKey pulumi.StringInput
}

The set of arguments for constructing a SecretBackend resource.

func (SecretBackendArgs) ElementType

func (SecretBackendArgs) ElementType() reflect.Type

type SecretBackendArray

type SecretBackendArray []SecretBackendInput

func (SecretBackendArray) ElementType

func (SecretBackendArray) ElementType() reflect.Type

func (SecretBackendArray) ToSecretBackendArrayOutput

func (i SecretBackendArray) ToSecretBackendArrayOutput() SecretBackendArrayOutput

func (SecretBackendArray) ToSecretBackendArrayOutputWithContext

func (i SecretBackendArray) ToSecretBackendArrayOutputWithContext(ctx context.Context) SecretBackendArrayOutput

type SecretBackendArrayInput

type SecretBackendArrayInput interface {
	pulumi.Input

	ToSecretBackendArrayOutput() SecretBackendArrayOutput
	ToSecretBackendArrayOutputWithContext(context.Context) SecretBackendArrayOutput
}

SecretBackendArrayInput is an input type that accepts SecretBackendArray and SecretBackendArrayOutput values. You can construct a concrete instance of `SecretBackendArrayInput` via:

SecretBackendArray{ SecretBackendArgs{...} }

type SecretBackendArrayOutput

type SecretBackendArrayOutput struct{ *pulumi.OutputState }

func (SecretBackendArrayOutput) ElementType

func (SecretBackendArrayOutput) ElementType() reflect.Type

func (SecretBackendArrayOutput) Index

func (SecretBackendArrayOutput) ToSecretBackendArrayOutput

func (o SecretBackendArrayOutput) ToSecretBackendArrayOutput() SecretBackendArrayOutput

func (SecretBackendArrayOutput) ToSecretBackendArrayOutputWithContext

func (o SecretBackendArrayOutput) ToSecretBackendArrayOutputWithContext(ctx context.Context) SecretBackendArrayOutput

type SecretBackendInput

type SecretBackendInput interface {
	pulumi.Input

	ToSecretBackendOutput() SecretBackendOutput
	ToSecretBackendOutputWithContext(ctx context.Context) SecretBackendOutput
}

type SecretBackendMap

type SecretBackendMap map[string]SecretBackendInput

func (SecretBackendMap) ElementType

func (SecretBackendMap) ElementType() reflect.Type

func (SecretBackendMap) ToSecretBackendMapOutput

func (i SecretBackendMap) ToSecretBackendMapOutput() SecretBackendMapOutput

func (SecretBackendMap) ToSecretBackendMapOutputWithContext

func (i SecretBackendMap) ToSecretBackendMapOutputWithContext(ctx context.Context) SecretBackendMapOutput

type SecretBackendMapInput

type SecretBackendMapInput interface {
	pulumi.Input

	ToSecretBackendMapOutput() SecretBackendMapOutput
	ToSecretBackendMapOutputWithContext(context.Context) SecretBackendMapOutput
}

SecretBackendMapInput is an input type that accepts SecretBackendMap and SecretBackendMapOutput values. You can construct a concrete instance of `SecretBackendMapInput` via:

SecretBackendMap{ "key": SecretBackendArgs{...} }

type SecretBackendMapOutput

type SecretBackendMapOutput struct{ *pulumi.OutputState }

func (SecretBackendMapOutput) ElementType

func (SecretBackendMapOutput) ElementType() reflect.Type

func (SecretBackendMapOutput) MapIndex

func (SecretBackendMapOutput) ToSecretBackendMapOutput

func (o SecretBackendMapOutput) ToSecretBackendMapOutput() SecretBackendMapOutput

func (SecretBackendMapOutput) ToSecretBackendMapOutputWithContext

func (o SecretBackendMapOutput) ToSecretBackendMapOutputWithContext(ctx context.Context) SecretBackendMapOutput

type SecretBackendOutput

type SecretBackendOutput struct{ *pulumi.OutputState }

func (SecretBackendOutput) ElementType

func (SecretBackendOutput) ElementType() reflect.Type

func (SecretBackendOutput) Mount

Path where the MongoDB Atlas Secrets Engine is mounted.

func (SecretBackendOutput) Namespace

The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). *Available only for Vault Enterprise*.

func (SecretBackendOutput) Path

Path where MongoDB Atlas configuration is located

func (SecretBackendOutput) PrivateKey

func (o SecretBackendOutput) PrivateKey() pulumi.StringOutput

Specifies the Private API Key used to authenticate with the MongoDB Atlas API.

func (SecretBackendOutput) PublicKey

func (o SecretBackendOutput) PublicKey() pulumi.StringOutput

Specifies the Public API Key used to authenticate with the MongoDB Atlas API.

func (SecretBackendOutput) ToSecretBackendOutput

func (o SecretBackendOutput) ToSecretBackendOutput() SecretBackendOutput

func (SecretBackendOutput) ToSecretBackendOutputWithContext

func (o SecretBackendOutput) ToSecretBackendOutputWithContext(ctx context.Context) SecretBackendOutput

type SecretBackendState

type SecretBackendState struct {
	// Path where the MongoDB Atlas Secrets Engine is mounted.
	Mount pulumi.StringPtrInput
	// The namespace to provision the resource in.
	// The value should not contain leading or trailing forward slashes.
	// The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
	// *Available only for Vault Enterprise*.
	Namespace pulumi.StringPtrInput
	// Path where MongoDB Atlas configuration is located
	Path pulumi.StringPtrInput
	// Specifies the Private API Key used to authenticate with the MongoDB Atlas API.
	PrivateKey pulumi.StringPtrInput
	// Specifies the Public API Key used to authenticate with the MongoDB Atlas API.
	PublicKey pulumi.StringPtrInput
}

func (SecretBackendState) ElementType

func (SecretBackendState) ElementType() reflect.Type

type SecretRole

type SecretRole struct {
	pulumi.CustomResourceState

	// Whitelist entry in CIDR notation to be added for the API key.
	CidrBlocks pulumi.StringArrayOutput `pulumi:"cidrBlocks"`
	// IP address to be added to the whitelist for the API key.
	IpAddresses pulumi.StringArrayOutput `pulumi:"ipAddresses"`
	// The maximum allowed lifetime of credentials issued using this role.
	MaxTtl pulumi.StringPtrOutput `pulumi:"maxTtl"`
	// Path where the MongoDB Atlas Secrets Engine is mounted.
	Mount pulumi.StringOutput `pulumi:"mount"`
	// The name of the role.
	Name pulumi.StringOutput `pulumi:"name"`
	// The namespace to provision the resource in.
	// The value should not contain leading or trailing forward slashes.
	// The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
	// *Available only for Vault Enterprise*.
	Namespace pulumi.StringPtrOutput `pulumi:"namespace"`
	// Unique identifier for the organization to which the target API Key belongs.
	// Required if `projectId` is not set.
	OrganizationId pulumi.StringPtrOutput `pulumi:"organizationId"`
	// Unique identifier for the project to which the target API Key belongs.
	// Required if `organizationId` is not set.
	ProjectId pulumi.StringPtrOutput `pulumi:"projectId"`
	// Roles assigned when an org API key is assigned to a project API key. Possible values are `GROUP_CLUSTER_MANAGER`, `GROUP_DATA_ACCESS_ADMIN`, `GROUP_DATA_ACCESS_READ_ONLY`, `GROUP_DATA_ACCESS_READ_WRITE`, `GROUP_OWNER` and `GROUP_READ_ONLY`.
	ProjectRoles pulumi.StringArrayOutput `pulumi:"projectRoles"`
	// List of roles that the API Key needs to have. Possible values are `ORG_OWNER`, `ORG_MEMBER`, `ORG_GROUP_CREATOR`, `ORG_BILLING_ADMIN` and `ORG_READ_ONLY`.
	Roles pulumi.StringArrayOutput `pulumi:"roles"`
	// Duration in seconds after which the issued credential should expire.
	Ttl pulumi.StringPtrOutput `pulumi:"ttl"`
}

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi-vault/sdk/v6/go/vault"
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		mongo, err := vault.NewMount(ctx, "mongo", &vault.MountArgs{
			Path:        pulumi.String("%s"),
			Type:        pulumi.String("mongodbatlas"),
			Description: pulumi.String("MongoDB Atlas secret engine mount"),
		})
		if err != nil {
			return err
		}
		_, err = mongodbatlas.NewSecretBackend(ctx, "config", &mongodbatlas.SecretBackendArgs{
			Mount:      mongo.Path,
			PrivateKey: pulumi.String("privateKey"),
			PublicKey:  pulumi.String("publicKey"),
		})
		if err != nil {
			return err
		}
		_, err = mongodbatlas.NewSecretRole(ctx, "role", &mongodbatlas.SecretRoleArgs{
			Mount:          mongo.Path,
			OrganizationId: pulumi.String("7cf5a45a9ccf6400e60981b7"),
			ProjectId:      pulumi.String("5cf5a45a9ccf6400e60981b6"),
			Roles: pulumi.StringArray{
				pulumi.String("ORG_READ_ONLY"),
			},
			IpAddresses: pulumi.StringArray("192.168.1.5, 192.168.1.6"),
			CidrBlocks:  pulumi.StringArray("192.168.1.3/35"),
			ProjectRoles: pulumi.StringArray{
				pulumi.String("GROUP_READ_ONLY"),
			},
			Ttl:    pulumi.String("60"),
			MaxTtl: pulumi.String("120"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

The MongoDB Atlas secret role can be imported using the full path to the role of the form: `<mount_path>/roles/<role_name>` e.g.

```sh $ pulumi import vault:mongodbatlas/secretRole:SecretRole example mongodbatlas/roles/example-role ```

func GetSecretRole

func GetSecretRole(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SecretRoleState, opts ...pulumi.ResourceOption) (*SecretRole, error)

GetSecretRole gets an existing SecretRole resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSecretRole

func NewSecretRole(ctx *pulumi.Context,
	name string, args *SecretRoleArgs, opts ...pulumi.ResourceOption) (*SecretRole, error)

NewSecretRole registers a new resource with the given unique name, arguments, and options.

func (*SecretRole) ElementType

func (*SecretRole) ElementType() reflect.Type

func (*SecretRole) ToSecretRoleOutput

func (i *SecretRole) ToSecretRoleOutput() SecretRoleOutput

func (*SecretRole) ToSecretRoleOutputWithContext

func (i *SecretRole) ToSecretRoleOutputWithContext(ctx context.Context) SecretRoleOutput

type SecretRoleArgs

type SecretRoleArgs struct {
	// Whitelist entry in CIDR notation to be added for the API key.
	CidrBlocks pulumi.StringArrayInput
	// IP address to be added to the whitelist for the API key.
	IpAddresses pulumi.StringArrayInput
	// The maximum allowed lifetime of credentials issued using this role.
	MaxTtl pulumi.StringPtrInput
	// Path where the MongoDB Atlas Secrets Engine is mounted.
	Mount pulumi.StringInput
	// The name of the role.
	Name pulumi.StringPtrInput
	// The namespace to provision the resource in.
	// The value should not contain leading or trailing forward slashes.
	// The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
	// *Available only for Vault Enterprise*.
	Namespace pulumi.StringPtrInput
	// Unique identifier for the organization to which the target API Key belongs.
	// Required if `projectId` is not set.
	OrganizationId pulumi.StringPtrInput
	// Unique identifier for the project to which the target API Key belongs.
	// Required if `organizationId` is not set.
	ProjectId pulumi.StringPtrInput
	// Roles assigned when an org API key is assigned to a project API key. Possible values are `GROUP_CLUSTER_MANAGER`, `GROUP_DATA_ACCESS_ADMIN`, `GROUP_DATA_ACCESS_READ_ONLY`, `GROUP_DATA_ACCESS_READ_WRITE`, `GROUP_OWNER` and `GROUP_READ_ONLY`.
	ProjectRoles pulumi.StringArrayInput
	// List of roles that the API Key needs to have. Possible values are `ORG_OWNER`, `ORG_MEMBER`, `ORG_GROUP_CREATOR`, `ORG_BILLING_ADMIN` and `ORG_READ_ONLY`.
	Roles pulumi.StringArrayInput
	// Duration in seconds after which the issued credential should expire.
	Ttl pulumi.StringPtrInput
}

The set of arguments for constructing a SecretRole resource.

func (SecretRoleArgs) ElementType

func (SecretRoleArgs) ElementType() reflect.Type

type SecretRoleArray

type SecretRoleArray []SecretRoleInput

func (SecretRoleArray) ElementType

func (SecretRoleArray) ElementType() reflect.Type

func (SecretRoleArray) ToSecretRoleArrayOutput

func (i SecretRoleArray) ToSecretRoleArrayOutput() SecretRoleArrayOutput

func (SecretRoleArray) ToSecretRoleArrayOutputWithContext

func (i SecretRoleArray) ToSecretRoleArrayOutputWithContext(ctx context.Context) SecretRoleArrayOutput

type SecretRoleArrayInput

type SecretRoleArrayInput interface {
	pulumi.Input

	ToSecretRoleArrayOutput() SecretRoleArrayOutput
	ToSecretRoleArrayOutputWithContext(context.Context) SecretRoleArrayOutput
}

SecretRoleArrayInput is an input type that accepts SecretRoleArray and SecretRoleArrayOutput values. You can construct a concrete instance of `SecretRoleArrayInput` via:

SecretRoleArray{ SecretRoleArgs{...} }

type SecretRoleArrayOutput

type SecretRoleArrayOutput struct{ *pulumi.OutputState }

func (SecretRoleArrayOutput) ElementType

func (SecretRoleArrayOutput) ElementType() reflect.Type

func (SecretRoleArrayOutput) Index

func (SecretRoleArrayOutput) ToSecretRoleArrayOutput

func (o SecretRoleArrayOutput) ToSecretRoleArrayOutput() SecretRoleArrayOutput

func (SecretRoleArrayOutput) ToSecretRoleArrayOutputWithContext

func (o SecretRoleArrayOutput) ToSecretRoleArrayOutputWithContext(ctx context.Context) SecretRoleArrayOutput

type SecretRoleInput

type SecretRoleInput interface {
	pulumi.Input

	ToSecretRoleOutput() SecretRoleOutput
	ToSecretRoleOutputWithContext(ctx context.Context) SecretRoleOutput
}

type SecretRoleMap

type SecretRoleMap map[string]SecretRoleInput

func (SecretRoleMap) ElementType

func (SecretRoleMap) ElementType() reflect.Type

func (SecretRoleMap) ToSecretRoleMapOutput

func (i SecretRoleMap) ToSecretRoleMapOutput() SecretRoleMapOutput

func (SecretRoleMap) ToSecretRoleMapOutputWithContext

func (i SecretRoleMap) ToSecretRoleMapOutputWithContext(ctx context.Context) SecretRoleMapOutput

type SecretRoleMapInput

type SecretRoleMapInput interface {
	pulumi.Input

	ToSecretRoleMapOutput() SecretRoleMapOutput
	ToSecretRoleMapOutputWithContext(context.Context) SecretRoleMapOutput
}

SecretRoleMapInput is an input type that accepts SecretRoleMap and SecretRoleMapOutput values. You can construct a concrete instance of `SecretRoleMapInput` via:

SecretRoleMap{ "key": SecretRoleArgs{...} }

type SecretRoleMapOutput

type SecretRoleMapOutput struct{ *pulumi.OutputState }

func (SecretRoleMapOutput) ElementType

func (SecretRoleMapOutput) ElementType() reflect.Type

func (SecretRoleMapOutput) MapIndex

func (SecretRoleMapOutput) ToSecretRoleMapOutput

func (o SecretRoleMapOutput) ToSecretRoleMapOutput() SecretRoleMapOutput

func (SecretRoleMapOutput) ToSecretRoleMapOutputWithContext

func (o SecretRoleMapOutput) ToSecretRoleMapOutputWithContext(ctx context.Context) SecretRoleMapOutput

type SecretRoleOutput

type SecretRoleOutput struct{ *pulumi.OutputState }

func (SecretRoleOutput) CidrBlocks

func (o SecretRoleOutput) CidrBlocks() pulumi.StringArrayOutput

Whitelist entry in CIDR notation to be added for the API key.

func (SecretRoleOutput) ElementType

func (SecretRoleOutput) ElementType() reflect.Type

func (SecretRoleOutput) IpAddresses

func (o SecretRoleOutput) IpAddresses() pulumi.StringArrayOutput

IP address to be added to the whitelist for the API key.

func (SecretRoleOutput) MaxTtl

The maximum allowed lifetime of credentials issued using this role.

func (SecretRoleOutput) Mount

Path where the MongoDB Atlas Secrets Engine is mounted.

func (SecretRoleOutput) Name

The name of the role.

func (SecretRoleOutput) Namespace

func (o SecretRoleOutput) Namespace() pulumi.StringPtrOutput

The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). *Available only for Vault Enterprise*.

func (SecretRoleOutput) OrganizationId

func (o SecretRoleOutput) OrganizationId() pulumi.StringPtrOutput

Unique identifier for the organization to which the target API Key belongs. Required if `projectId` is not set.

func (SecretRoleOutput) ProjectId

func (o SecretRoleOutput) ProjectId() pulumi.StringPtrOutput

Unique identifier for the project to which the target API Key belongs. Required if `organizationId` is not set.

func (SecretRoleOutput) ProjectRoles

func (o SecretRoleOutput) ProjectRoles() pulumi.StringArrayOutput

Roles assigned when an org API key is assigned to a project API key. Possible values are `GROUP_CLUSTER_MANAGER`, `GROUP_DATA_ACCESS_ADMIN`, `GROUP_DATA_ACCESS_READ_ONLY`, `GROUP_DATA_ACCESS_READ_WRITE`, `GROUP_OWNER` and `GROUP_READ_ONLY`.

func (SecretRoleOutput) Roles

List of roles that the API Key needs to have. Possible values are `ORG_OWNER`, `ORG_MEMBER`, `ORG_GROUP_CREATOR`, `ORG_BILLING_ADMIN` and `ORG_READ_ONLY`.

func (SecretRoleOutput) ToSecretRoleOutput

func (o SecretRoleOutput) ToSecretRoleOutput() SecretRoleOutput

func (SecretRoleOutput) ToSecretRoleOutputWithContext

func (o SecretRoleOutput) ToSecretRoleOutputWithContext(ctx context.Context) SecretRoleOutput

func (SecretRoleOutput) Ttl

Duration in seconds after which the issued credential should expire.

type SecretRoleState

type SecretRoleState struct {
	// Whitelist entry in CIDR notation to be added for the API key.
	CidrBlocks pulumi.StringArrayInput
	// IP address to be added to the whitelist for the API key.
	IpAddresses pulumi.StringArrayInput
	// The maximum allowed lifetime of credentials issued using this role.
	MaxTtl pulumi.StringPtrInput
	// Path where the MongoDB Atlas Secrets Engine is mounted.
	Mount pulumi.StringPtrInput
	// The name of the role.
	Name pulumi.StringPtrInput
	// The namespace to provision the resource in.
	// The value should not contain leading or trailing forward slashes.
	// The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
	// *Available only for Vault Enterprise*.
	Namespace pulumi.StringPtrInput
	// Unique identifier for the organization to which the target API Key belongs.
	// Required if `projectId` is not set.
	OrganizationId pulumi.StringPtrInput
	// Unique identifier for the project to which the target API Key belongs.
	// Required if `organizationId` is not set.
	ProjectId pulumi.StringPtrInput
	// Roles assigned when an org API key is assigned to a project API key. Possible values are `GROUP_CLUSTER_MANAGER`, `GROUP_DATA_ACCESS_ADMIN`, `GROUP_DATA_ACCESS_READ_ONLY`, `GROUP_DATA_ACCESS_READ_WRITE`, `GROUP_OWNER` and `GROUP_READ_ONLY`.
	ProjectRoles pulumi.StringArrayInput
	// List of roles that the API Key needs to have. Possible values are `ORG_OWNER`, `ORG_MEMBER`, `ORG_GROUP_CREATOR`, `ORG_BILLING_ADMIN` and `ORG_READ_ONLY`.
	Roles pulumi.StringArrayInput
	// Duration in seconds after which the issued credential should expire.
	Ttl pulumi.StringPtrInput
}

func (SecretRoleState) ElementType

func (SecretRoleState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL