secret

package
v0.0.0-...-c33e12d Latest Latest
Warning

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

Go to latest
Published: Mar 13, 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 LookupSecretArgs

type LookupSecretArgs struct {
	// The secret name.
	// Only one of `name` and `secretId` should be specified.
	Name *string `pulumi:"name"`
	// The organization ID the Project is associated with.
	// If no default organizationId is set, one must be set explicitly in this datasource
	OrganizationId *string `pulumi:"organizationId"`
	// The secret path.
	// Conflicts with `secretId`.
	Path *string `pulumi:"path"`
	// `projectId`) The ID of the
	// project the secret is associated with.
	ProjectId *string `pulumi:"projectId"`
	// `region`) The region in which the secret exists.
	Region *string `pulumi:"region"`
	// The secret id.
	// Only one of `name` and `secretId` should be specified.
	SecretId *string `pulumi:"secretId"`
}

A collection of arguments for invoking getSecret.

type LookupSecretOutputArgs

type LookupSecretOutputArgs struct {
	// The secret name.
	// Only one of `name` and `secretId` should be specified.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// The organization ID the Project is associated with.
	// If no default organizationId is set, one must be set explicitly in this datasource
	OrganizationId pulumi.StringPtrInput `pulumi:"organizationId"`
	// The secret path.
	// Conflicts with `secretId`.
	Path pulumi.StringPtrInput `pulumi:"path"`
	// `projectId`) The ID of the
	// project the secret is associated with.
	ProjectId pulumi.StringPtrInput `pulumi:"projectId"`
	// `region`) The region in which the secret exists.
	Region pulumi.StringPtrInput `pulumi:"region"`
	// The secret id.
	// Only one of `name` and `secretId` should be specified.
	SecretId pulumi.StringPtrInput `pulumi:"secretId"`
}

A collection of arguments for invoking getSecret.

func (LookupSecretOutputArgs) ElementType

func (LookupSecretOutputArgs) ElementType() reflect.Type

type LookupSecretResult

type LookupSecretResult struct {
	CreatedAt   string `pulumi:"createdAt"`
	Description string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id             string   `pulumi:"id"`
	Name           *string  `pulumi:"name"`
	OrganizationId string   `pulumi:"organizationId"`
	Path           *string  `pulumi:"path"`
	ProjectId      *string  `pulumi:"projectId"`
	Region         *string  `pulumi:"region"`
	SecretId       *string  `pulumi:"secretId"`
	Status         string   `pulumi:"status"`
	Tags           []string `pulumi:"tags"`
	UpdatedAt      string   `pulumi:"updatedAt"`
	VersionCount   int      `pulumi:"versionCount"`
}

A collection of values returned by getSecret.

func LookupSecret

func LookupSecret(ctx *pulumi.Context, args *LookupSecretArgs, opts ...pulumi.InvokeOption) (*LookupSecretResult, error)

Gets information about Scaleway Secrets. For more information, see [the documentation](https://developers.scaleway.com/en/products/secret_manager/api/v1alpha1/).

## Examples

### Basic

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

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/secret"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := secret.NewSecret(ctx, "main", &secret.SecretArgs{
			Description: pulumi.String("barr"),
		})
		if err != nil {
			return err
		}
		_, err = secret.LookupSecret(ctx, &secret.LookupSecretArgs{
			SecretId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = secret.LookupSecret(ctx, &secret.LookupSecretArgs{
			Name: pulumi.StringRef("your_secret_name"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

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

type LookupSecretResultOutput

type LookupSecretResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSecret.

func (LookupSecretResultOutput) CreatedAt

func (LookupSecretResultOutput) Description

func (LookupSecretResultOutput) ElementType

func (LookupSecretResultOutput) ElementType() reflect.Type

func (LookupSecretResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupSecretResultOutput) Name

func (LookupSecretResultOutput) OrganizationId

func (o LookupSecretResultOutput) OrganizationId() pulumi.StringOutput

func (LookupSecretResultOutput) Path

func (LookupSecretResultOutput) ProjectId

func (LookupSecretResultOutput) Region

func (LookupSecretResultOutput) SecretId

func (LookupSecretResultOutput) Status

func (LookupSecretResultOutput) Tags

func (LookupSecretResultOutput) ToLookupSecretResultOutput

func (o LookupSecretResultOutput) ToLookupSecretResultOutput() LookupSecretResultOutput

func (LookupSecretResultOutput) ToLookupSecretResultOutputWithContext

func (o LookupSecretResultOutput) ToLookupSecretResultOutputWithContext(ctx context.Context) LookupSecretResultOutput

func (LookupSecretResultOutput) UpdatedAt

func (LookupSecretResultOutput) VersionCount

func (o LookupSecretResultOutput) VersionCount() pulumi.IntOutput

type LookupVersionArgs

type LookupVersionArgs struct {
	// The ID of the project the Secret version is associated with.
	ProjectId *string `pulumi:"projectId"`
	// `region`) The region
	// in which the resource exists.
	Region *string `pulumi:"region"`
	// The revision for this Secret Version.
	Revision *string `pulumi:"revision"`
	// The Secret ID associated wit the secret version.
	// Only one of `secretId` and `secretName` should be specified.
	SecretId *string `pulumi:"secretId"`
	// The Name of Secret associated wit the secret version.
	// Only one of `secretId` and `secretName` should be specified.
	SecretName *string `pulumi:"secretName"`
}

A collection of arguments for invoking getVersion.

type LookupVersionOutputArgs

type LookupVersionOutputArgs struct {
	// The ID of the project the Secret version is associated with.
	ProjectId pulumi.StringPtrInput `pulumi:"projectId"`
	// `region`) The region
	// in which the resource exists.
	Region pulumi.StringPtrInput `pulumi:"region"`
	// The revision for this Secret Version.
	Revision pulumi.StringPtrInput `pulumi:"revision"`
	// The Secret ID associated wit the secret version.
	// Only one of `secretId` and `secretName` should be specified.
	SecretId pulumi.StringPtrInput `pulumi:"secretId"`
	// The Name of Secret associated wit the secret version.
	// Only one of `secretId` and `secretName` should be specified.
	SecretName pulumi.StringPtrInput `pulumi:"secretName"`
}

A collection of arguments for invoking getVersion.

func (LookupVersionOutputArgs) ElementType

func (LookupVersionOutputArgs) ElementType() reflect.Type

type LookupVersionResult

type LookupVersionResult struct {
	// Date and time of secret version's creation (RFC 3339 format).
	CreatedAt string `pulumi:"createdAt"`
	// The data payload of the secret version. more on the data section
	Data string `pulumi:"data"`
	// (Optional) Description of the secret version (e.g. `my-new-description`).
	Description string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id         string  `pulumi:"id"`
	ProjectId  *string `pulumi:"projectId"`
	Region     *string `pulumi:"region"`
	Revision   *string `pulumi:"revision"`
	SecretId   *string `pulumi:"secretId"`
	SecretName *string `pulumi:"secretName"`
	// The status of the Secret Version.
	Status string `pulumi:"status"`
	// Date and time of secret version's last update (RFC 3339 format).
	UpdatedAt string `pulumi:"updatedAt"`
}

A collection of values returned by getVersion.

func LookupVersion

func LookupVersion(ctx *pulumi.Context, args *LookupVersionArgs, opts ...pulumi.InvokeOption) (*LookupVersionResult, error)

Gets information about Scaleway a Secret Version. For more information, see [the documentation](https://developers.scaleway.com/en/products/secret_manager/api/v1alpha1/#secret-versions-079501).

## Examples

### Basic

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

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/secret"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		mainSecret, err := secret.NewSecret(ctx, "mainSecret", &secret.SecretArgs{
			Description: pulumi.String("barr"),
		})
		if err != nil {
			return err
		}
		_, err = secret.NewVersion(ctx, "mainVersion", &secret.VersionArgs{
			Description: pulumi.String("your description"),
			SecretId:    mainSecret.ID(),
			Data:        pulumi.String("your_secret"),
		})
		if err != nil {
			return err
		}
		dataBySecretId := secret.LookupVersionOutput(ctx, secret.GetVersionOutputArgs{
			SecretId: mainSecret.ID(),
			Revision: pulumi.String("1"),
		}, nil)
		dataBySecretName := secret.LookupVersionOutput(ctx, secret.GetVersionOutputArgs{
			SecretName: mainSecret.Name,
			Revision:   pulumi.String("1"),
		}, nil)
		ctx.Export("scalewaySecretAccessPayload", dataBySecretName.ApplyT(func(dataBySecretName secret.GetVersionResult) (*string, error) {
			return &dataBySecretName.Data, nil
		}).(pulumi.StringPtrOutput))
		ctx.Export("scalewaySecretAccessPayloadById", dataBySecretId.ApplyT(func(dataBySecretId secret.GetVersionResult) (*string, error) {
			return &dataBySecretId.Data, nil
		}).(pulumi.StringPtrOutput))
		return nil
	})
}

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

## Data

Note: This Data Source give you **access** to the secret payload encoded en base64.

Be aware that this is a sensitive attribute. For more information, see Sensitive Data in State.

> **Important:** This property is sensitive and will not be displayed in the plan.

type LookupVersionResultOutput

type LookupVersionResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getVersion.

func (LookupVersionResultOutput) CreatedAt

Date and time of secret version's creation (RFC 3339 format).

func (LookupVersionResultOutput) Data

The data payload of the secret version. more on the data section

func (LookupVersionResultOutput) Description

(Optional) Description of the secret version (e.g. `my-new-description`).

func (LookupVersionResultOutput) ElementType

func (LookupVersionResultOutput) ElementType() reflect.Type

func (LookupVersionResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupVersionResultOutput) ProjectId

func (LookupVersionResultOutput) Region

func (LookupVersionResultOutput) Revision

func (LookupVersionResultOutput) SecretId

func (LookupVersionResultOutput) SecretName

func (LookupVersionResultOutput) Status

The status of the Secret Version.

func (LookupVersionResultOutput) ToLookupVersionResultOutput

func (o LookupVersionResultOutput) ToLookupVersionResultOutput() LookupVersionResultOutput

func (LookupVersionResultOutput) ToLookupVersionResultOutputWithContext

func (o LookupVersionResultOutput) ToLookupVersionResultOutputWithContext(ctx context.Context) LookupVersionResultOutput

func (LookupVersionResultOutput) UpdatedAt

Date and time of secret version's last update (RFC 3339 format).

type Secret

type Secret struct {
	pulumi.CustomResourceState

	// Date and time of secret's creation (RFC 3339 format).
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// Description of the secret (e.g. `my-new-description`).
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Name of the secret (e.g. `my-secret`).
	Name pulumi.StringOutput `pulumi:"name"`
	// Path of the secret, defaults to `/`.
	Path pulumi.StringPtrOutput `pulumi:"path"`
	// The project ID containing is the secret.
	ProjectId pulumi.StringOutput `pulumi:"projectId"`
	// `region`) The region
	// in which the resource exists.
	Region pulumi.StringOutput `pulumi:"region"`
	// The status of the Secret.
	Status pulumi.StringOutput `pulumi:"status"`
	// Tags of the secret (e.g. `["tag", "secret"]`).
	Tags pulumi.StringArrayOutput `pulumi:"tags"`
	// Date and time of secret's last update (RFC 3339 format).
	UpdatedAt pulumi.StringOutput `pulumi:"updatedAt"`
	// The number of versions for this Secret.
	VersionCount pulumi.IntOutput `pulumi:"versionCount"`
}

Creates and manages Scaleway Secrets. For more information, see [the documentation](https://developers.scaleway.com/en/products/secret_manager/api/v1alpha1/).

## Example Usage

### Basic

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

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/secret"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := secret.NewSecret(ctx, "main", &secret.SecretArgs{
			Description: pulumi.String("barr"),
			Tags: pulumi.StringArray{
				pulumi.String("foo"),
				pulumi.String("terraform"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

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

## Import

The Secret can be imported using the `{region}/{id}`, e.g.

bash

```sh $ pulumi import scaleway:secret/secret:Secret main fr-par/11111111-1111-1111-1111-111111111111 ```

func GetSecret

func GetSecret(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SecretState, opts ...pulumi.ResourceOption) (*Secret, error)

GetSecret gets an existing Secret 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 NewSecret

func NewSecret(ctx *pulumi.Context,
	name string, args *SecretArgs, opts ...pulumi.ResourceOption) (*Secret, error)

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

func (*Secret) ElementType

func (*Secret) ElementType() reflect.Type

func (*Secret) ToSecretOutput

func (i *Secret) ToSecretOutput() SecretOutput

func (*Secret) ToSecretOutputWithContext

func (i *Secret) ToSecretOutputWithContext(ctx context.Context) SecretOutput

type SecretArgs

type SecretArgs struct {
	// Description of the secret (e.g. `my-new-description`).
	Description pulumi.StringPtrInput
	// Name of the secret (e.g. `my-secret`).
	Name pulumi.StringPtrInput
	// Path of the secret, defaults to `/`.
	Path pulumi.StringPtrInput
	// The project ID containing is the secret.
	ProjectId pulumi.StringPtrInput
	// `region`) The region
	// in which the resource exists.
	Region pulumi.StringPtrInput
	// Tags of the secret (e.g. `["tag", "secret"]`).
	Tags pulumi.StringArrayInput
}

The set of arguments for constructing a Secret resource.

func (SecretArgs) ElementType

func (SecretArgs) ElementType() reflect.Type

type SecretArray

type SecretArray []SecretInput

func (SecretArray) ElementType

func (SecretArray) ElementType() reflect.Type

func (SecretArray) ToSecretArrayOutput

func (i SecretArray) ToSecretArrayOutput() SecretArrayOutput

func (SecretArray) ToSecretArrayOutputWithContext

func (i SecretArray) ToSecretArrayOutputWithContext(ctx context.Context) SecretArrayOutput

type SecretArrayInput

type SecretArrayInput interface {
	pulumi.Input

	ToSecretArrayOutput() SecretArrayOutput
	ToSecretArrayOutputWithContext(context.Context) SecretArrayOutput
}

SecretArrayInput is an input type that accepts SecretArray and SecretArrayOutput values. You can construct a concrete instance of `SecretArrayInput` via:

SecretArray{ SecretArgs{...} }

type SecretArrayOutput

type SecretArrayOutput struct{ *pulumi.OutputState }

func (SecretArrayOutput) ElementType

func (SecretArrayOutput) ElementType() reflect.Type

func (SecretArrayOutput) Index

func (SecretArrayOutput) ToSecretArrayOutput

func (o SecretArrayOutput) ToSecretArrayOutput() SecretArrayOutput

func (SecretArrayOutput) ToSecretArrayOutputWithContext

func (o SecretArrayOutput) ToSecretArrayOutputWithContext(ctx context.Context) SecretArrayOutput

type SecretInput

type SecretInput interface {
	pulumi.Input

	ToSecretOutput() SecretOutput
	ToSecretOutputWithContext(ctx context.Context) SecretOutput
}

type SecretMap

type SecretMap map[string]SecretInput

func (SecretMap) ElementType

func (SecretMap) ElementType() reflect.Type

func (SecretMap) ToSecretMapOutput

func (i SecretMap) ToSecretMapOutput() SecretMapOutput

func (SecretMap) ToSecretMapOutputWithContext

func (i SecretMap) ToSecretMapOutputWithContext(ctx context.Context) SecretMapOutput

type SecretMapInput

type SecretMapInput interface {
	pulumi.Input

	ToSecretMapOutput() SecretMapOutput
	ToSecretMapOutputWithContext(context.Context) SecretMapOutput
}

SecretMapInput is an input type that accepts SecretMap and SecretMapOutput values. You can construct a concrete instance of `SecretMapInput` via:

SecretMap{ "key": SecretArgs{...} }

type SecretMapOutput

type SecretMapOutput struct{ *pulumi.OutputState }

func (SecretMapOutput) ElementType

func (SecretMapOutput) ElementType() reflect.Type

func (SecretMapOutput) MapIndex

func (SecretMapOutput) ToSecretMapOutput

func (o SecretMapOutput) ToSecretMapOutput() SecretMapOutput

func (SecretMapOutput) ToSecretMapOutputWithContext

func (o SecretMapOutput) ToSecretMapOutputWithContext(ctx context.Context) SecretMapOutput

type SecretOutput

type SecretOutput struct{ *pulumi.OutputState }

func (SecretOutput) CreatedAt

func (o SecretOutput) CreatedAt() pulumi.StringOutput

Date and time of secret's creation (RFC 3339 format).

func (SecretOutput) Description

func (o SecretOutput) Description() pulumi.StringPtrOutput

Description of the secret (e.g. `my-new-description`).

func (SecretOutput) ElementType

func (SecretOutput) ElementType() reflect.Type

func (SecretOutput) Name

func (o SecretOutput) Name() pulumi.StringOutput

Name of the secret (e.g. `my-secret`).

func (SecretOutput) Path

Path of the secret, defaults to `/`.

func (SecretOutput) ProjectId

func (o SecretOutput) ProjectId() pulumi.StringOutput

The project ID containing is the secret.

func (SecretOutput) Region

func (o SecretOutput) Region() pulumi.StringOutput

`region`) The region in which the resource exists.

func (SecretOutput) Status

func (o SecretOutput) Status() pulumi.StringOutput

The status of the Secret.

func (SecretOutput) Tags

Tags of the secret (e.g. `["tag", "secret"]`).

func (SecretOutput) ToSecretOutput

func (o SecretOutput) ToSecretOutput() SecretOutput

func (SecretOutput) ToSecretOutputWithContext

func (o SecretOutput) ToSecretOutputWithContext(ctx context.Context) SecretOutput

func (SecretOutput) UpdatedAt

func (o SecretOutput) UpdatedAt() pulumi.StringOutput

Date and time of secret's last update (RFC 3339 format).

func (SecretOutput) VersionCount

func (o SecretOutput) VersionCount() pulumi.IntOutput

The number of versions for this Secret.

type SecretState

type SecretState struct {
	// Date and time of secret's creation (RFC 3339 format).
	CreatedAt pulumi.StringPtrInput
	// Description of the secret (e.g. `my-new-description`).
	Description pulumi.StringPtrInput
	// Name of the secret (e.g. `my-secret`).
	Name pulumi.StringPtrInput
	// Path of the secret, defaults to `/`.
	Path pulumi.StringPtrInput
	// The project ID containing is the secret.
	ProjectId pulumi.StringPtrInput
	// `region`) The region
	// in which the resource exists.
	Region pulumi.StringPtrInput
	// The status of the Secret.
	Status pulumi.StringPtrInput
	// Tags of the secret (e.g. `["tag", "secret"]`).
	Tags pulumi.StringArrayInput
	// Date and time of secret's last update (RFC 3339 format).
	UpdatedAt pulumi.StringPtrInput
	// The number of versions for this Secret.
	VersionCount pulumi.IntPtrInput
}

func (SecretState) ElementType

func (SecretState) ElementType() reflect.Type

type Version

type Version struct {
	pulumi.CustomResourceState

	// Date and time of secret version's creation (RFC 3339 format).
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// The data payload of the secret version. Must be no larger than 64KiB. (e.g. `my-secret-version-payload`). more on the data section
	Data pulumi.StringOutput `pulumi:"data"`
	// Description of the secret version (e.g. `my-new-description`).
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// `region`) The region
	// in which the resource exists.
	Region pulumi.StringOutput `pulumi:"region"`
	// The revision for this Secret Version.
	Revision pulumi.StringOutput `pulumi:"revision"`
	// The Secret ID associated wit the secret version.
	SecretId pulumi.StringOutput `pulumi:"secretId"`
	// The status of the Secret Version.
	Status pulumi.StringOutput `pulumi:"status"`
	// Date and time of secret version's last update (RFC 3339 format).
	UpdatedAt pulumi.StringOutput `pulumi:"updatedAt"`
}

Creates and manages Scaleway Secret Versions. For more information, see [the documentation](https://developers.scaleway.com/en/products/secret_manager/api/v1alpha1/#secret-versions-079501).

## Example Usage

### Basic

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

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/secret"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		main, err := secret.NewSecret(ctx, "main", &secret.SecretArgs{
			Description: pulumi.String("barr"),
			Tags: pulumi.StringArray{
				pulumi.String("foo"),
				pulumi.String("terraform"),
			},
		})
		if err != nil {
			return err
		}
		_, err = secret.NewVersion(ctx, "v1", &secret.VersionArgs{
			Description: pulumi.String("version1"),
			SecretId:    main.ID(),
			Data:        pulumi.String("my_new_secret"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

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

## Import

The Secret Version can be imported using the `{region}/{id}/{revision}`, e.g.

~> **Important:** Be aware if you import with revision `latest` you will overwrite the version you used before.

bash

```sh $ pulumi import scaleway:secret/version:Version main fr-par/11111111-1111-1111-1111-111111111111/2 ```

func GetVersion

func GetVersion(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *VersionState, opts ...pulumi.ResourceOption) (*Version, error)

GetVersion gets an existing Version 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 NewVersion

func NewVersion(ctx *pulumi.Context,
	name string, args *VersionArgs, opts ...pulumi.ResourceOption) (*Version, error)

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

func (*Version) ElementType

func (*Version) ElementType() reflect.Type

func (*Version) ToVersionOutput

func (i *Version) ToVersionOutput() VersionOutput

func (*Version) ToVersionOutputWithContext

func (i *Version) ToVersionOutputWithContext(ctx context.Context) VersionOutput

type VersionArgs

type VersionArgs struct {
	// The data payload of the secret version. Must be no larger than 64KiB. (e.g. `my-secret-version-payload`). more on the data section
	Data pulumi.StringInput
	// Description of the secret version (e.g. `my-new-description`).
	Description pulumi.StringPtrInput
	// `region`) The region
	// in which the resource exists.
	Region pulumi.StringPtrInput
	// The Secret ID associated wit the secret version.
	SecretId pulumi.StringInput
}

The set of arguments for constructing a Version resource.

func (VersionArgs) ElementType

func (VersionArgs) ElementType() reflect.Type

type VersionArray

type VersionArray []VersionInput

func (VersionArray) ElementType

func (VersionArray) ElementType() reflect.Type

func (VersionArray) ToVersionArrayOutput

func (i VersionArray) ToVersionArrayOutput() VersionArrayOutput

func (VersionArray) ToVersionArrayOutputWithContext

func (i VersionArray) ToVersionArrayOutputWithContext(ctx context.Context) VersionArrayOutput

type VersionArrayInput

type VersionArrayInput interface {
	pulumi.Input

	ToVersionArrayOutput() VersionArrayOutput
	ToVersionArrayOutputWithContext(context.Context) VersionArrayOutput
}

VersionArrayInput is an input type that accepts VersionArray and VersionArrayOutput values. You can construct a concrete instance of `VersionArrayInput` via:

VersionArray{ VersionArgs{...} }

type VersionArrayOutput

type VersionArrayOutput struct{ *pulumi.OutputState }

func (VersionArrayOutput) ElementType

func (VersionArrayOutput) ElementType() reflect.Type

func (VersionArrayOutput) Index

func (VersionArrayOutput) ToVersionArrayOutput

func (o VersionArrayOutput) ToVersionArrayOutput() VersionArrayOutput

func (VersionArrayOutput) ToVersionArrayOutputWithContext

func (o VersionArrayOutput) ToVersionArrayOutputWithContext(ctx context.Context) VersionArrayOutput

type VersionInput

type VersionInput interface {
	pulumi.Input

	ToVersionOutput() VersionOutput
	ToVersionOutputWithContext(ctx context.Context) VersionOutput
}

type VersionMap

type VersionMap map[string]VersionInput

func (VersionMap) ElementType

func (VersionMap) ElementType() reflect.Type

func (VersionMap) ToVersionMapOutput

func (i VersionMap) ToVersionMapOutput() VersionMapOutput

func (VersionMap) ToVersionMapOutputWithContext

func (i VersionMap) ToVersionMapOutputWithContext(ctx context.Context) VersionMapOutput

type VersionMapInput

type VersionMapInput interface {
	pulumi.Input

	ToVersionMapOutput() VersionMapOutput
	ToVersionMapOutputWithContext(context.Context) VersionMapOutput
}

VersionMapInput is an input type that accepts VersionMap and VersionMapOutput values. You can construct a concrete instance of `VersionMapInput` via:

VersionMap{ "key": VersionArgs{...} }

type VersionMapOutput

type VersionMapOutput struct{ *pulumi.OutputState }

func (VersionMapOutput) ElementType

func (VersionMapOutput) ElementType() reflect.Type

func (VersionMapOutput) MapIndex

func (VersionMapOutput) ToVersionMapOutput

func (o VersionMapOutput) ToVersionMapOutput() VersionMapOutput

func (VersionMapOutput) ToVersionMapOutputWithContext

func (o VersionMapOutput) ToVersionMapOutputWithContext(ctx context.Context) VersionMapOutput

type VersionOutput

type VersionOutput struct{ *pulumi.OutputState }

func (VersionOutput) CreatedAt

func (o VersionOutput) CreatedAt() pulumi.StringOutput

Date and time of secret version's creation (RFC 3339 format).

func (VersionOutput) Data

The data payload of the secret version. Must be no larger than 64KiB. (e.g. `my-secret-version-payload`). more on the data section

func (VersionOutput) Description

func (o VersionOutput) Description() pulumi.StringPtrOutput

Description of the secret version (e.g. `my-new-description`).

func (VersionOutput) ElementType

func (VersionOutput) ElementType() reflect.Type

func (VersionOutput) Region

func (o VersionOutput) Region() pulumi.StringOutput

`region`) The region in which the resource exists.

func (VersionOutput) Revision

func (o VersionOutput) Revision() pulumi.StringOutput

The revision for this Secret Version.

func (VersionOutput) SecretId

func (o VersionOutput) SecretId() pulumi.StringOutput

The Secret ID associated wit the secret version.

func (VersionOutput) Status

func (o VersionOutput) Status() pulumi.StringOutput

The status of the Secret Version.

func (VersionOutput) ToVersionOutput

func (o VersionOutput) ToVersionOutput() VersionOutput

func (VersionOutput) ToVersionOutputWithContext

func (o VersionOutput) ToVersionOutputWithContext(ctx context.Context) VersionOutput

func (VersionOutput) UpdatedAt

func (o VersionOutput) UpdatedAt() pulumi.StringOutput

Date and time of secret version's last update (RFC 3339 format).

type VersionState

type VersionState struct {
	// Date and time of secret version's creation (RFC 3339 format).
	CreatedAt pulumi.StringPtrInput
	// The data payload of the secret version. Must be no larger than 64KiB. (e.g. `my-secret-version-payload`). more on the data section
	Data pulumi.StringPtrInput
	// Description of the secret version (e.g. `my-new-description`).
	Description pulumi.StringPtrInput
	// `region`) The region
	// in which the resource exists.
	Region pulumi.StringPtrInput
	// The revision for this Secret Version.
	Revision pulumi.StringPtrInput
	// The Secret ID associated wit the secret version.
	SecretId pulumi.StringPtrInput
	// The status of the Secret Version.
	Status pulumi.StringPtrInput
	// Date and time of secret version's last update (RFC 3339 format).
	UpdatedAt pulumi.StringPtrInput
}

func (VersionState) ElementType

func (VersionState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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