Documentation
¶
Index ¶
- type SecretBackend
- type SecretBackendArgs
- type SecretBackendArray
- type SecretBackendArrayInput
- type SecretBackendArrayOutput
- func (SecretBackendArrayOutput) ElementType() reflect.Type
- func (o SecretBackendArrayOutput) Index(i pulumi.IntInput) SecretBackendOutput
- func (o SecretBackendArrayOutput) ToSecretBackendArrayOutput() SecretBackendArrayOutput
- func (o SecretBackendArrayOutput) ToSecretBackendArrayOutputWithContext(ctx context.Context) SecretBackendArrayOutput
- type SecretBackendInput
- type SecretBackendMap
- type SecretBackendMapInput
- type SecretBackendMapOutput
- func (SecretBackendMapOutput) ElementType() reflect.Type
- func (o SecretBackendMapOutput) MapIndex(k pulumi.StringInput) SecretBackendOutput
- func (o SecretBackendMapOutput) ToSecretBackendMapOutput() SecretBackendMapOutput
- func (o SecretBackendMapOutput) ToSecretBackendMapOutputWithContext(ctx context.Context) SecretBackendMapOutput
- type SecretBackendOutput
- func (SecretBackendOutput) ElementType() reflect.Type
- func (o SecretBackendOutput) Mount() pulumi.StringOutput
- func (o SecretBackendOutput) Namespace() pulumi.StringPtrOutput
- func (o SecretBackendOutput) Path() pulumi.StringOutput
- func (o SecretBackendOutput) PrivateKey() pulumi.StringOutput
- func (o SecretBackendOutput) PublicKey() pulumi.StringOutput
- func (o SecretBackendOutput) ToSecretBackendOutput() SecretBackendOutput
- func (o SecretBackendOutput) ToSecretBackendOutputWithContext(ctx context.Context) SecretBackendOutput
- type SecretBackendState
- type SecretRole
- type SecretRoleArgs
- type SecretRoleArray
- type SecretRoleArrayInput
- type SecretRoleArrayOutput
- func (SecretRoleArrayOutput) ElementType() reflect.Type
- func (o SecretRoleArrayOutput) Index(i pulumi.IntInput) SecretRoleOutput
- func (o SecretRoleArrayOutput) ToSecretRoleArrayOutput() SecretRoleArrayOutput
- func (o SecretRoleArrayOutput) ToSecretRoleArrayOutputWithContext(ctx context.Context) SecretRoleArrayOutput
- type SecretRoleInput
- type SecretRoleMap
- type SecretRoleMapInput
- type SecretRoleMapOutput
- func (SecretRoleMapOutput) ElementType() reflect.Type
- func (o SecretRoleMapOutput) MapIndex(k pulumi.StringInput) SecretRoleOutput
- func (o SecretRoleMapOutput) ToSecretRoleMapOutput() SecretRoleMapOutput
- func (o SecretRoleMapOutput) ToSecretRoleMapOutputWithContext(ctx context.Context) SecretRoleMapOutput
- type SecretRoleOutput
- func (o SecretRoleOutput) CidrBlocks() pulumi.StringArrayOutput
- func (SecretRoleOutput) ElementType() reflect.Type
- func (o SecretRoleOutput) IpAddresses() pulumi.StringArrayOutput
- func (o SecretRoleOutput) MaxTtl() pulumi.StringPtrOutput
- func (o SecretRoleOutput) Mount() pulumi.StringOutput
- func (o SecretRoleOutput) Name() pulumi.StringOutput
- func (o SecretRoleOutput) Namespace() pulumi.StringPtrOutput
- func (o SecretRoleOutput) OrganizationId() pulumi.StringPtrOutput
- func (o SecretRoleOutput) ProjectId() pulumi.StringPtrOutput
- func (o SecretRoleOutput) ProjectRoles() pulumi.StringArrayOutput
- func (o SecretRoleOutput) Roles() pulumi.StringArrayOutput
- func (o SecretRoleOutput) ToSecretRoleOutput() SecretRoleOutput
- func (o SecretRoleOutput) ToSecretRoleOutputWithContext(ctx context.Context) SecretRoleOutput
- func (o SecretRoleOutput) Ttl() pulumi.StringPtrOutput
- type SecretRoleState
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#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
```go package main
import (
"github.com/pulumi/pulumi-vault/sdk/v5/go/vault" "github.com/pulumi/pulumi-vault/sdk/v5/go/vault/mongodbatlas" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := vault.NewMount(ctx, "mongo", &vault.MountArgs{ Description: pulumi.String("MongoDB Atlas secret engine mount"), Path: pulumi.String("mongodbatlas"), Type: pulumi.String("mongodbatlas"), }) if err != nil { return err } _, err = mongodbatlas.NewSecretBackend(ctx, "config", &mongodbatlas.SecretBackendArgs{ Mount: pulumi.String("vault_mount.mongo.path"), PrivateKey: pulumi.String("privateKey"), PublicKey: pulumi.String("publicKey"), }) if err != nil { return err } return nil }) }
```
## 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#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 (o SecretBackendArrayOutput) Index(i pulumi.IntInput) SecretBackendOutput
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 (o SecretBackendMapOutput) MapIndex(k pulumi.StringInput) SecretBackendOutput
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 ¶
func (o SecretBackendOutput) Mount() pulumi.StringOutput
Path where the MongoDB Atlas Secrets Engine is mounted.
func (SecretBackendOutput) Namespace ¶
func (o SecretBackendOutput) 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#namespace). *Available only for Vault Enterprise*.
func (SecretBackendOutput) Path ¶
func (o SecretBackendOutput) Path() pulumi.StringOutput
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#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#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. ProjectRoles pulumi.StringArrayOutput `pulumi:"projectRoles"` // List of roles that the API Key needs to have. Roles pulumi.StringArrayOutput `pulumi:"roles"` // Duration in seconds after which the issued credential should expire. Ttl pulumi.StringPtrOutput `pulumi:"ttl"` }
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-vault/sdk/v5/go/vault" "github.com/pulumi/pulumi-vault/sdk/v5/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: pulumi.String("vault_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("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("GROUP_READ_ONLY"), Ttl: pulumi.String("60"), MaxTtl: pulumi.String("120"), }) if err != nil { return err } return nil }) }
```
## 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#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. ProjectRoles pulumi.StringArrayInput // List of roles that the API Key needs to have. 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 (o SecretRoleArrayOutput) Index(i pulumi.IntInput) SecretRoleOutput
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 (o SecretRoleMapOutput) MapIndex(k pulumi.StringInput) SecretRoleOutput
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 ¶
func (o SecretRoleOutput) MaxTtl() pulumi.StringPtrOutput
The maximum allowed lifetime of credentials issued using this role.
func (SecretRoleOutput) Mount ¶
func (o SecretRoleOutput) Mount() pulumi.StringOutput
Path where the MongoDB Atlas Secrets Engine is mounted.
func (SecretRoleOutput) Name ¶
func (o SecretRoleOutput) Name() pulumi.StringOutput
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#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.
func (SecretRoleOutput) Roles ¶
func (o SecretRoleOutput) Roles() pulumi.StringArrayOutput
List of roles that the API Key needs to have.
func (SecretRoleOutput) ToSecretRoleOutput ¶
func (o SecretRoleOutput) ToSecretRoleOutput() SecretRoleOutput
func (SecretRoleOutput) ToSecretRoleOutputWithContext ¶
func (o SecretRoleOutput) ToSecretRoleOutputWithContext(ctx context.Context) SecretRoleOutput
func (SecretRoleOutput) Ttl ¶
func (o SecretRoleOutput) Ttl() pulumi.StringPtrOutput
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#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. ProjectRoles pulumi.StringArrayInput // List of roles that the API Key needs to have. Roles pulumi.StringArrayInput // Duration in seconds after which the issued credential should expire. Ttl pulumi.StringPtrInput }
func (SecretRoleState) ElementType ¶
func (SecretRoleState) ElementType() reflect.Type