Documentation
¶
Index ¶
- func PkgVersion() (semver.Version, error)
- type GetSecretVersionsArgs
- type GetSecretVersionsOutputArgs
- type GetSecretVersionsResult
- type GetSecretVersionsResultOutput
- func (GetSecretVersionsResultOutput) ElementType() reflect.Type
- func (o GetSecretVersionsResultOutput) Id() pulumi.StringOutput
- func (o GetSecretVersionsResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetSecretVersionsResultOutput) SecretName() pulumi.StringOutput
- func (o GetSecretVersionsResultOutput) SecretVersionLists() GetSecretVersionsSecretVersionListArrayOutput
- func (o GetSecretVersionsResultOutput) ToGetSecretVersionsResultOutput() GetSecretVersionsResultOutput
- func (o GetSecretVersionsResultOutput) ToGetSecretVersionsResultOutputWithContext(ctx context.Context) GetSecretVersionsResultOutput
- func (o GetSecretVersionsResultOutput) VersionId() pulumi.StringPtrOutput
- type GetSecretVersionsSecretVersionList
- type GetSecretVersionsSecretVersionListArgs
- func (GetSecretVersionsSecretVersionListArgs) ElementType() reflect.Type
- func (i GetSecretVersionsSecretVersionListArgs) ToGetSecretVersionsSecretVersionListOutput() GetSecretVersionsSecretVersionListOutput
- func (i GetSecretVersionsSecretVersionListArgs) ToGetSecretVersionsSecretVersionListOutputWithContext(ctx context.Context) GetSecretVersionsSecretVersionListOutput
- type GetSecretVersionsSecretVersionListArray
- func (GetSecretVersionsSecretVersionListArray) ElementType() reflect.Type
- func (i GetSecretVersionsSecretVersionListArray) ToGetSecretVersionsSecretVersionListArrayOutput() GetSecretVersionsSecretVersionListArrayOutput
- func (i GetSecretVersionsSecretVersionListArray) ToGetSecretVersionsSecretVersionListArrayOutputWithContext(ctx context.Context) GetSecretVersionsSecretVersionListArrayOutput
- type GetSecretVersionsSecretVersionListArrayInput
- type GetSecretVersionsSecretVersionListArrayOutput
- func (GetSecretVersionsSecretVersionListArrayOutput) ElementType() reflect.Type
- func (o GetSecretVersionsSecretVersionListArrayOutput) Index(i pulumi.IntInput) GetSecretVersionsSecretVersionListOutput
- func (o GetSecretVersionsSecretVersionListArrayOutput) ToGetSecretVersionsSecretVersionListArrayOutput() GetSecretVersionsSecretVersionListArrayOutput
- func (o GetSecretVersionsSecretVersionListArrayOutput) ToGetSecretVersionsSecretVersionListArrayOutputWithContext(ctx context.Context) GetSecretVersionsSecretVersionListArrayOutput
- type GetSecretVersionsSecretVersionListInput
- type GetSecretVersionsSecretVersionListOutput
- func (GetSecretVersionsSecretVersionListOutput) ElementType() reflect.Type
- func (o GetSecretVersionsSecretVersionListOutput) SecretBinary() pulumi.StringOutput
- func (o GetSecretVersionsSecretVersionListOutput) SecretString() pulumi.StringOutput
- func (o GetSecretVersionsSecretVersionListOutput) ToGetSecretVersionsSecretVersionListOutput() GetSecretVersionsSecretVersionListOutput
- func (o GetSecretVersionsSecretVersionListOutput) ToGetSecretVersionsSecretVersionListOutputWithContext(ctx context.Context) GetSecretVersionsSecretVersionListOutput
- func (o GetSecretVersionsSecretVersionListOutput) VersionId() pulumi.StringOutput
- type GetSecretsArgs
- type GetSecretsOutputArgs
- type GetSecretsResult
- type GetSecretsResultOutput
- func (GetSecretsResultOutput) ElementType() reflect.Type
- func (o GetSecretsResultOutput) Id() pulumi.StringOutput
- func (o GetSecretsResultOutput) OrderType() pulumi.IntPtrOutput
- func (o GetSecretsResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetSecretsResultOutput) SecretLists() GetSecretsSecretListArrayOutput
- func (o GetSecretsResultOutput) SecretName() pulumi.StringPtrOutput
- func (o GetSecretsResultOutput) State() pulumi.IntPtrOutput
- func (o GetSecretsResultOutput) Tags() pulumi.MapOutput
- func (o GetSecretsResultOutput) ToGetSecretsResultOutput() GetSecretsResultOutput
- func (o GetSecretsResultOutput) ToGetSecretsResultOutputWithContext(ctx context.Context) GetSecretsResultOutput
- type GetSecretsSecretList
- type GetSecretsSecretListArgs
- type GetSecretsSecretListArray
- type GetSecretsSecretListArrayInput
- type GetSecretsSecretListArrayOutput
- func (GetSecretsSecretListArrayOutput) ElementType() reflect.Type
- func (o GetSecretsSecretListArrayOutput) Index(i pulumi.IntInput) GetSecretsSecretListOutput
- func (o GetSecretsSecretListArrayOutput) ToGetSecretsSecretListArrayOutput() GetSecretsSecretListArrayOutput
- func (o GetSecretsSecretListArrayOutput) ToGetSecretsSecretListArrayOutputWithContext(ctx context.Context) GetSecretsSecretListArrayOutput
- type GetSecretsSecretListInput
- type GetSecretsSecretListOutput
- func (o GetSecretsSecretListOutput) CreateTime() pulumi.IntOutput
- func (o GetSecretsSecretListOutput) CreateUin() pulumi.IntOutput
- func (o GetSecretsSecretListOutput) DeleteTime() pulumi.IntOutput
- func (o GetSecretsSecretListOutput) Description() pulumi.StringOutput
- func (GetSecretsSecretListOutput) ElementType() reflect.Type
- func (o GetSecretsSecretListOutput) KmsKeyId() pulumi.StringOutput
- func (o GetSecretsSecretListOutput) SecretName() pulumi.StringOutput
- func (o GetSecretsSecretListOutput) Status() pulumi.StringOutput
- func (o GetSecretsSecretListOutput) ToGetSecretsSecretListOutput() GetSecretsSecretListOutput
- func (o GetSecretsSecretListOutput) ToGetSecretsSecretListOutputWithContext(ctx context.Context) GetSecretsSecretListOutput
- type Secret
- type SecretArgs
- type SecretArray
- type SecretArrayInput
- type SecretArrayOutput
- type SecretInput
- type SecretMap
- type SecretMapInput
- type SecretMapOutput
- type SecretOutput
- func (o SecretOutput) AdditionalConfig() pulumi.StringPtrOutput
- func (o SecretOutput) Description() pulumi.StringPtrOutput
- func (SecretOutput) ElementType() reflect.Type
- func (o SecretOutput) IsEnabled() pulumi.BoolPtrOutput
- func (o SecretOutput) KmsKeyId() pulumi.StringOutput
- func (o SecretOutput) RecoveryWindowInDays() pulumi.IntPtrOutput
- func (o SecretOutput) SecretName() pulumi.StringOutput
- func (o SecretOutput) SecretType() pulumi.IntOutput
- func (o SecretOutput) Status() pulumi.StringOutput
- func (o SecretOutput) Tags() pulumi.MapOutput
- func (o SecretOutput) ToSecretOutput() SecretOutput
- func (o SecretOutput) ToSecretOutputWithContext(ctx context.Context) SecretOutput
- type SecretState
- type SecretVersion
- type SecretVersionArgs
- type SecretVersionArray
- type SecretVersionArrayInput
- type SecretVersionArrayOutput
- func (SecretVersionArrayOutput) ElementType() reflect.Type
- func (o SecretVersionArrayOutput) Index(i pulumi.IntInput) SecretVersionOutput
- func (o SecretVersionArrayOutput) ToSecretVersionArrayOutput() SecretVersionArrayOutput
- func (o SecretVersionArrayOutput) ToSecretVersionArrayOutputWithContext(ctx context.Context) SecretVersionArrayOutput
- type SecretVersionInput
- type SecretVersionMap
- type SecretVersionMapInput
- type SecretVersionMapOutput
- func (SecretVersionMapOutput) ElementType() reflect.Type
- func (o SecretVersionMapOutput) MapIndex(k pulumi.StringInput) SecretVersionOutput
- func (o SecretVersionMapOutput) ToSecretVersionMapOutput() SecretVersionMapOutput
- func (o SecretVersionMapOutput) ToSecretVersionMapOutputWithContext(ctx context.Context) SecretVersionMapOutput
- type SecretVersionOutput
- func (SecretVersionOutput) ElementType() reflect.Type
- func (o SecretVersionOutput) SecretBinary() pulumi.StringPtrOutput
- func (o SecretVersionOutput) SecretName() pulumi.StringOutput
- func (o SecretVersionOutput) SecretString() pulumi.StringPtrOutput
- func (o SecretVersionOutput) ToSecretVersionOutput() SecretVersionOutput
- func (o SecretVersionOutput) ToSecretVersionOutputWithContext(ctx context.Context) SecretVersionOutput
- func (o SecretVersionOutput) VersionId() pulumi.StringOutput
- type SecretVersionState
- type SshKeyPairSecret
- type SshKeyPairSecretArgs
- type SshKeyPairSecretArray
- type SshKeyPairSecretArrayInput
- type SshKeyPairSecretArrayOutput
- func (SshKeyPairSecretArrayOutput) ElementType() reflect.Type
- func (o SshKeyPairSecretArrayOutput) Index(i pulumi.IntInput) SshKeyPairSecretOutput
- func (o SshKeyPairSecretArrayOutput) ToSshKeyPairSecretArrayOutput() SshKeyPairSecretArrayOutput
- func (o SshKeyPairSecretArrayOutput) ToSshKeyPairSecretArrayOutputWithContext(ctx context.Context) SshKeyPairSecretArrayOutput
- type SshKeyPairSecretInput
- type SshKeyPairSecretMap
- type SshKeyPairSecretMapInput
- type SshKeyPairSecretMapOutput
- func (SshKeyPairSecretMapOutput) ElementType() reflect.Type
- func (o SshKeyPairSecretMapOutput) MapIndex(k pulumi.StringInput) SshKeyPairSecretOutput
- func (o SshKeyPairSecretMapOutput) ToSshKeyPairSecretMapOutput() SshKeyPairSecretMapOutput
- func (o SshKeyPairSecretMapOutput) ToSshKeyPairSecretMapOutputWithContext(ctx context.Context) SshKeyPairSecretMapOutput
- type SshKeyPairSecretOutput
- func (o SshKeyPairSecretOutput) CleanSshKey() pulumi.BoolPtrOutput
- func (o SshKeyPairSecretOutput) CreateTime() pulumi.IntOutput
- func (o SshKeyPairSecretOutput) Description() pulumi.StringPtrOutput
- func (SshKeyPairSecretOutput) ElementType() reflect.Type
- func (o SshKeyPairSecretOutput) KmsKeyId() pulumi.StringPtrOutput
- func (o SshKeyPairSecretOutput) ProjectId() pulumi.IntOutput
- func (o SshKeyPairSecretOutput) SecretName() pulumi.StringOutput
- func (o SshKeyPairSecretOutput) SecretType() pulumi.IntOutput
- func (o SshKeyPairSecretOutput) SshKeyName() pulumi.StringPtrOutput
- func (o SshKeyPairSecretOutput) Status() pulumi.StringOutput
- func (o SshKeyPairSecretOutput) ToSshKeyPairSecretOutput() SshKeyPairSecretOutput
- func (o SshKeyPairSecretOutput) ToSshKeyPairSecretOutputWithContext(ctx context.Context) SshKeyPairSecretOutput
- type SshKeyPairSecretState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PkgVersion ¶ added in v0.0.5
PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.
Types ¶
type GetSecretVersionsArgs ¶
type GetSecretVersionsArgs struct { // Used to save results. ResultOutputFile *string `pulumi:"resultOutputFile"` // Secret name used to filter result. SecretName string `pulumi:"secretName"` // VersionId used to filter result. VersionId *string `pulumi:"versionId"` }
A collection of arguments for invoking getSecretVersions.
type GetSecretVersionsOutputArgs ¶
type GetSecretVersionsOutputArgs struct { // Used to save results. ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"` // Secret name used to filter result. SecretName pulumi.StringInput `pulumi:"secretName"` // VersionId used to filter result. VersionId pulumi.StringPtrInput `pulumi:"versionId"` }
A collection of arguments for invoking getSecretVersions.
func (GetSecretVersionsOutputArgs) ElementType ¶
func (GetSecretVersionsOutputArgs) ElementType() reflect.Type
type GetSecretVersionsResult ¶
type GetSecretVersionsResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` ResultOutputFile *string `pulumi:"resultOutputFile"` SecretName string `pulumi:"secretName"` // A list of SSM secret versions. When secret status is `Disabled`, this field will not update anymore. SecretVersionLists []GetSecretVersionsSecretVersionList `pulumi:"secretVersionLists"` // Version of secret. VersionId *string `pulumi:"versionId"` }
A collection of values returned by getSecretVersions.
func GetSecretVersions ¶
func GetSecretVersions(ctx *pulumi.Context, args *GetSecretVersionsArgs, opts ...pulumi.InvokeOption) (*GetSecretVersionsResult, error)
Use this data source to query detailed information of SSM secret version
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Ssm" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Ssm"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Ssm.GetSecretVersions(ctx, &ssm.GetSecretVersionsArgs{ SecretName: "test", VersionId: pulumi.StringRef("v1"), }, nil) if err != nil { return err } return nil }) }
```
type GetSecretVersionsResultOutput ¶
type GetSecretVersionsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getSecretVersions.
func GetSecretVersionsOutput ¶
func GetSecretVersionsOutput(ctx *pulumi.Context, args GetSecretVersionsOutputArgs, opts ...pulumi.InvokeOption) GetSecretVersionsResultOutput
func (GetSecretVersionsResultOutput) ElementType ¶
func (GetSecretVersionsResultOutput) ElementType() reflect.Type
func (GetSecretVersionsResultOutput) Id ¶
func (o GetSecretVersionsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetSecretVersionsResultOutput) ResultOutputFile ¶
func (o GetSecretVersionsResultOutput) ResultOutputFile() pulumi.StringPtrOutput
func (GetSecretVersionsResultOutput) SecretName ¶
func (o GetSecretVersionsResultOutput) SecretName() pulumi.StringOutput
func (GetSecretVersionsResultOutput) SecretVersionLists ¶
func (o GetSecretVersionsResultOutput) SecretVersionLists() GetSecretVersionsSecretVersionListArrayOutput
A list of SSM secret versions. When secret status is `Disabled`, this field will not update anymore.
func (GetSecretVersionsResultOutput) ToGetSecretVersionsResultOutput ¶
func (o GetSecretVersionsResultOutput) ToGetSecretVersionsResultOutput() GetSecretVersionsResultOutput
func (GetSecretVersionsResultOutput) ToGetSecretVersionsResultOutputWithContext ¶
func (o GetSecretVersionsResultOutput) ToGetSecretVersionsResultOutputWithContext(ctx context.Context) GetSecretVersionsResultOutput
func (GetSecretVersionsResultOutput) VersionId ¶
func (o GetSecretVersionsResultOutput) VersionId() pulumi.StringPtrOutput
Version of secret.
type GetSecretVersionsSecretVersionListArgs ¶
type GetSecretVersionsSecretVersionListArgs struct { // The base64-encoded binary secret. SecretBinary pulumi.StringInput `pulumi:"secretBinary"` // The string text of secret. SecretString pulumi.StringInput `pulumi:"secretString"` // VersionId used to filter result. VersionId pulumi.StringInput `pulumi:"versionId"` }
func (GetSecretVersionsSecretVersionListArgs) ElementType ¶
func (GetSecretVersionsSecretVersionListArgs) ElementType() reflect.Type
func (GetSecretVersionsSecretVersionListArgs) ToGetSecretVersionsSecretVersionListOutput ¶
func (i GetSecretVersionsSecretVersionListArgs) ToGetSecretVersionsSecretVersionListOutput() GetSecretVersionsSecretVersionListOutput
func (GetSecretVersionsSecretVersionListArgs) ToGetSecretVersionsSecretVersionListOutputWithContext ¶
func (i GetSecretVersionsSecretVersionListArgs) ToGetSecretVersionsSecretVersionListOutputWithContext(ctx context.Context) GetSecretVersionsSecretVersionListOutput
type GetSecretVersionsSecretVersionListArray ¶
type GetSecretVersionsSecretVersionListArray []GetSecretVersionsSecretVersionListInput
func (GetSecretVersionsSecretVersionListArray) ElementType ¶
func (GetSecretVersionsSecretVersionListArray) ElementType() reflect.Type
func (GetSecretVersionsSecretVersionListArray) ToGetSecretVersionsSecretVersionListArrayOutput ¶
func (i GetSecretVersionsSecretVersionListArray) ToGetSecretVersionsSecretVersionListArrayOutput() GetSecretVersionsSecretVersionListArrayOutput
func (GetSecretVersionsSecretVersionListArray) ToGetSecretVersionsSecretVersionListArrayOutputWithContext ¶
func (i GetSecretVersionsSecretVersionListArray) ToGetSecretVersionsSecretVersionListArrayOutputWithContext(ctx context.Context) GetSecretVersionsSecretVersionListArrayOutput
type GetSecretVersionsSecretVersionListArrayInput ¶
type GetSecretVersionsSecretVersionListArrayInput interface { pulumi.Input ToGetSecretVersionsSecretVersionListArrayOutput() GetSecretVersionsSecretVersionListArrayOutput ToGetSecretVersionsSecretVersionListArrayOutputWithContext(context.Context) GetSecretVersionsSecretVersionListArrayOutput }
GetSecretVersionsSecretVersionListArrayInput is an input type that accepts GetSecretVersionsSecretVersionListArray and GetSecretVersionsSecretVersionListArrayOutput values. You can construct a concrete instance of `GetSecretVersionsSecretVersionListArrayInput` via:
GetSecretVersionsSecretVersionListArray{ GetSecretVersionsSecretVersionListArgs{...} }
type GetSecretVersionsSecretVersionListArrayOutput ¶
type GetSecretVersionsSecretVersionListArrayOutput struct{ *pulumi.OutputState }
func (GetSecretVersionsSecretVersionListArrayOutput) ElementType ¶
func (GetSecretVersionsSecretVersionListArrayOutput) ElementType() reflect.Type
func (GetSecretVersionsSecretVersionListArrayOutput) ToGetSecretVersionsSecretVersionListArrayOutput ¶
func (o GetSecretVersionsSecretVersionListArrayOutput) ToGetSecretVersionsSecretVersionListArrayOutput() GetSecretVersionsSecretVersionListArrayOutput
func (GetSecretVersionsSecretVersionListArrayOutput) ToGetSecretVersionsSecretVersionListArrayOutputWithContext ¶
func (o GetSecretVersionsSecretVersionListArrayOutput) ToGetSecretVersionsSecretVersionListArrayOutputWithContext(ctx context.Context) GetSecretVersionsSecretVersionListArrayOutput
type GetSecretVersionsSecretVersionListInput ¶
type GetSecretVersionsSecretVersionListInput interface { pulumi.Input ToGetSecretVersionsSecretVersionListOutput() GetSecretVersionsSecretVersionListOutput ToGetSecretVersionsSecretVersionListOutputWithContext(context.Context) GetSecretVersionsSecretVersionListOutput }
GetSecretVersionsSecretVersionListInput is an input type that accepts GetSecretVersionsSecretVersionListArgs and GetSecretVersionsSecretVersionListOutput values. You can construct a concrete instance of `GetSecretVersionsSecretVersionListInput` via:
GetSecretVersionsSecretVersionListArgs{...}
type GetSecretVersionsSecretVersionListOutput ¶
type GetSecretVersionsSecretVersionListOutput struct{ *pulumi.OutputState }
func (GetSecretVersionsSecretVersionListOutput) ElementType ¶
func (GetSecretVersionsSecretVersionListOutput) ElementType() reflect.Type
func (GetSecretVersionsSecretVersionListOutput) SecretBinary ¶
func (o GetSecretVersionsSecretVersionListOutput) SecretBinary() pulumi.StringOutput
The base64-encoded binary secret.
func (GetSecretVersionsSecretVersionListOutput) SecretString ¶
func (o GetSecretVersionsSecretVersionListOutput) SecretString() pulumi.StringOutput
The string text of secret.
func (GetSecretVersionsSecretVersionListOutput) ToGetSecretVersionsSecretVersionListOutput ¶
func (o GetSecretVersionsSecretVersionListOutput) ToGetSecretVersionsSecretVersionListOutput() GetSecretVersionsSecretVersionListOutput
func (GetSecretVersionsSecretVersionListOutput) ToGetSecretVersionsSecretVersionListOutputWithContext ¶
func (o GetSecretVersionsSecretVersionListOutput) ToGetSecretVersionsSecretVersionListOutputWithContext(ctx context.Context) GetSecretVersionsSecretVersionListOutput
func (GetSecretVersionsSecretVersionListOutput) VersionId ¶
func (o GetSecretVersionsSecretVersionListOutput) VersionId() pulumi.StringOutput
VersionId used to filter result.
type GetSecretsArgs ¶
type GetSecretsArgs struct { // The order to sort the create time of secret. `0` - desc, `1` - asc. Default value is `0`. OrderType *int `pulumi:"orderType"` // Used to save results. ResultOutputFile *string `pulumi:"resultOutputFile"` // Secret name used to filter result. SecretName *string `pulumi:"secretName"` // Filter by state of secret. `0` - all secrets are queried, `1` - only Enabled secrets are queried, `2` - only Disabled secrets are queried, `3` - only PendingDelete secrets are queried. State *int `pulumi:"state"` // Tags to filter secret. Tags map[string]interface{} `pulumi:"tags"` }
A collection of arguments for invoking getSecrets.
type GetSecretsOutputArgs ¶
type GetSecretsOutputArgs struct { // The order to sort the create time of secret. `0` - desc, `1` - asc. Default value is `0`. OrderType pulumi.IntPtrInput `pulumi:"orderType"` // Used to save results. ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"` // Secret name used to filter result. SecretName pulumi.StringPtrInput `pulumi:"secretName"` // Filter by state of secret. `0` - all secrets are queried, `1` - only Enabled secrets are queried, `2` - only Disabled secrets are queried, `3` - only PendingDelete secrets are queried. State pulumi.IntPtrInput `pulumi:"state"` // Tags to filter secret. Tags pulumi.MapInput `pulumi:"tags"` }
A collection of arguments for invoking getSecrets.
func (GetSecretsOutputArgs) ElementType ¶
func (GetSecretsOutputArgs) ElementType() reflect.Type
type GetSecretsResult ¶
type GetSecretsResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` OrderType *int `pulumi:"orderType"` ResultOutputFile *string `pulumi:"resultOutputFile"` // A list of SSM secrets. SecretLists []GetSecretsSecretList `pulumi:"secretLists"` // Name of secret. SecretName *string `pulumi:"secretName"` State *int `pulumi:"state"` Tags map[string]interface{} `pulumi:"tags"` }
A collection of values returned by getSecrets.
func GetSecrets ¶
func GetSecrets(ctx *pulumi.Context, args *GetSecretsArgs, opts ...pulumi.InvokeOption) (*GetSecretsResult, error)
Use this data source to query detailed information of SSM secret
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Ssm" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Ssm"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Ssm.GetSecrets(ctx, &ssm.GetSecretsArgs{ OrderType: pulumi.IntRef(1), SecretName: pulumi.StringRef("test"), State: pulumi.IntRef(1), }, nil) if err != nil { return err } return nil }) }
```
type GetSecretsResultOutput ¶
type GetSecretsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getSecrets.
func GetSecretsOutput ¶
func GetSecretsOutput(ctx *pulumi.Context, args GetSecretsOutputArgs, opts ...pulumi.InvokeOption) GetSecretsResultOutput
func (GetSecretsResultOutput) ElementType ¶
func (GetSecretsResultOutput) ElementType() reflect.Type
func (GetSecretsResultOutput) Id ¶
func (o GetSecretsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetSecretsResultOutput) OrderType ¶
func (o GetSecretsResultOutput) OrderType() pulumi.IntPtrOutput
func (GetSecretsResultOutput) ResultOutputFile ¶
func (o GetSecretsResultOutput) ResultOutputFile() pulumi.StringPtrOutput
func (GetSecretsResultOutput) SecretLists ¶
func (o GetSecretsResultOutput) SecretLists() GetSecretsSecretListArrayOutput
A list of SSM secrets.
func (GetSecretsResultOutput) SecretName ¶
func (o GetSecretsResultOutput) SecretName() pulumi.StringPtrOutput
Name of secret.
func (GetSecretsResultOutput) State ¶
func (o GetSecretsResultOutput) State() pulumi.IntPtrOutput
func (GetSecretsResultOutput) Tags ¶
func (o GetSecretsResultOutput) Tags() pulumi.MapOutput
func (GetSecretsResultOutput) ToGetSecretsResultOutput ¶
func (o GetSecretsResultOutput) ToGetSecretsResultOutput() GetSecretsResultOutput
func (GetSecretsResultOutput) ToGetSecretsResultOutputWithContext ¶
func (o GetSecretsResultOutput) ToGetSecretsResultOutputWithContext(ctx context.Context) GetSecretsResultOutput
type GetSecretsSecretList ¶
type GetSecretsSecretList struct { // Create time of secret. CreateTime int `pulumi:"createTime"` // Uin of Creator. CreateUin int `pulumi:"createUin"` // Delete time of CMK. DeleteTime int `pulumi:"deleteTime"` // Description of secret. Description string `pulumi:"description"` // KMS keyId used to encrypt secret. KmsKeyId string `pulumi:"kmsKeyId"` // Secret name used to filter result. SecretName string `pulumi:"secretName"` // Status of secret. Status string `pulumi:"status"` }
type GetSecretsSecretListArgs ¶
type GetSecretsSecretListArgs struct { // Create time of secret. CreateTime pulumi.IntInput `pulumi:"createTime"` // Uin of Creator. CreateUin pulumi.IntInput `pulumi:"createUin"` // Delete time of CMK. DeleteTime pulumi.IntInput `pulumi:"deleteTime"` // Description of secret. Description pulumi.StringInput `pulumi:"description"` // KMS keyId used to encrypt secret. KmsKeyId pulumi.StringInput `pulumi:"kmsKeyId"` // Secret name used to filter result. SecretName pulumi.StringInput `pulumi:"secretName"` // Status of secret. Status pulumi.StringInput `pulumi:"status"` }
func (GetSecretsSecretListArgs) ElementType ¶
func (GetSecretsSecretListArgs) ElementType() reflect.Type
func (GetSecretsSecretListArgs) ToGetSecretsSecretListOutput ¶
func (i GetSecretsSecretListArgs) ToGetSecretsSecretListOutput() GetSecretsSecretListOutput
func (GetSecretsSecretListArgs) ToGetSecretsSecretListOutputWithContext ¶
func (i GetSecretsSecretListArgs) ToGetSecretsSecretListOutputWithContext(ctx context.Context) GetSecretsSecretListOutput
type GetSecretsSecretListArray ¶
type GetSecretsSecretListArray []GetSecretsSecretListInput
func (GetSecretsSecretListArray) ElementType ¶
func (GetSecretsSecretListArray) ElementType() reflect.Type
func (GetSecretsSecretListArray) ToGetSecretsSecretListArrayOutput ¶
func (i GetSecretsSecretListArray) ToGetSecretsSecretListArrayOutput() GetSecretsSecretListArrayOutput
func (GetSecretsSecretListArray) ToGetSecretsSecretListArrayOutputWithContext ¶
func (i GetSecretsSecretListArray) ToGetSecretsSecretListArrayOutputWithContext(ctx context.Context) GetSecretsSecretListArrayOutput
type GetSecretsSecretListArrayInput ¶
type GetSecretsSecretListArrayInput interface { pulumi.Input ToGetSecretsSecretListArrayOutput() GetSecretsSecretListArrayOutput ToGetSecretsSecretListArrayOutputWithContext(context.Context) GetSecretsSecretListArrayOutput }
GetSecretsSecretListArrayInput is an input type that accepts GetSecretsSecretListArray and GetSecretsSecretListArrayOutput values. You can construct a concrete instance of `GetSecretsSecretListArrayInput` via:
GetSecretsSecretListArray{ GetSecretsSecretListArgs{...} }
type GetSecretsSecretListArrayOutput ¶
type GetSecretsSecretListArrayOutput struct{ *pulumi.OutputState }
func (GetSecretsSecretListArrayOutput) ElementType ¶
func (GetSecretsSecretListArrayOutput) ElementType() reflect.Type
func (GetSecretsSecretListArrayOutput) Index ¶
func (o GetSecretsSecretListArrayOutput) Index(i pulumi.IntInput) GetSecretsSecretListOutput
func (GetSecretsSecretListArrayOutput) ToGetSecretsSecretListArrayOutput ¶
func (o GetSecretsSecretListArrayOutput) ToGetSecretsSecretListArrayOutput() GetSecretsSecretListArrayOutput
func (GetSecretsSecretListArrayOutput) ToGetSecretsSecretListArrayOutputWithContext ¶
func (o GetSecretsSecretListArrayOutput) ToGetSecretsSecretListArrayOutputWithContext(ctx context.Context) GetSecretsSecretListArrayOutput
type GetSecretsSecretListInput ¶
type GetSecretsSecretListInput interface { pulumi.Input ToGetSecretsSecretListOutput() GetSecretsSecretListOutput ToGetSecretsSecretListOutputWithContext(context.Context) GetSecretsSecretListOutput }
GetSecretsSecretListInput is an input type that accepts GetSecretsSecretListArgs and GetSecretsSecretListOutput values. You can construct a concrete instance of `GetSecretsSecretListInput` via:
GetSecretsSecretListArgs{...}
type GetSecretsSecretListOutput ¶
type GetSecretsSecretListOutput struct{ *pulumi.OutputState }
func (GetSecretsSecretListOutput) CreateTime ¶
func (o GetSecretsSecretListOutput) CreateTime() pulumi.IntOutput
Create time of secret.
func (GetSecretsSecretListOutput) CreateUin ¶
func (o GetSecretsSecretListOutput) CreateUin() pulumi.IntOutput
Uin of Creator.
func (GetSecretsSecretListOutput) DeleteTime ¶
func (o GetSecretsSecretListOutput) DeleteTime() pulumi.IntOutput
Delete time of CMK.
func (GetSecretsSecretListOutput) Description ¶
func (o GetSecretsSecretListOutput) Description() pulumi.StringOutput
Description of secret.
func (GetSecretsSecretListOutput) ElementType ¶
func (GetSecretsSecretListOutput) ElementType() reflect.Type
func (GetSecretsSecretListOutput) KmsKeyId ¶
func (o GetSecretsSecretListOutput) KmsKeyId() pulumi.StringOutput
KMS keyId used to encrypt secret.
func (GetSecretsSecretListOutput) SecretName ¶
func (o GetSecretsSecretListOutput) SecretName() pulumi.StringOutput
Secret name used to filter result.
func (GetSecretsSecretListOutput) Status ¶
func (o GetSecretsSecretListOutput) Status() pulumi.StringOutput
Status of secret.
func (GetSecretsSecretListOutput) ToGetSecretsSecretListOutput ¶
func (o GetSecretsSecretListOutput) ToGetSecretsSecretListOutput() GetSecretsSecretListOutput
func (GetSecretsSecretListOutput) ToGetSecretsSecretListOutputWithContext ¶
func (o GetSecretsSecretListOutput) ToGetSecretsSecretListOutputWithContext(ctx context.Context) GetSecretsSecretListOutput
type Secret ¶
type Secret struct { pulumi.CustomResourceState // Additional config for specific secret types in JSON string format. AdditionalConfig pulumi.StringPtrOutput `pulumi:"additionalConfig"` // Description of secret. The maximum is 2048 bytes. Description pulumi.StringPtrOutput `pulumi:"description"` // Specify whether to enable secret. Default value is `true`. IsEnabled pulumi.BoolPtrOutput `pulumi:"isEnabled"` // KMS keyId used to encrypt secret. If it is empty, it means that the CMK created by SSM for you by default is used for encryption. You can also specify the KMS CMK created by yourself in the same region for encryption. KmsKeyId pulumi.StringOutput `pulumi:"kmsKeyId"` // Specify the scheduled deletion date. Default value is `0` that means to delete immediately. 1-30 means the number of days reserved, completely deleted after this date. RecoveryWindowInDays pulumi.IntPtrOutput `pulumi:"recoveryWindowInDays"` // Name of secret which cannot be repeated in the same region. The maximum length is 128 bytes. The name can only contain English letters, numbers, underscore and hyphen '-'. The first character must be a letter or number. SecretName pulumi.StringOutput `pulumi:"secretName"` // Type of secret. `0`: user-defined secret. `4`: redis secret. SecretType pulumi.IntOutput `pulumi:"secretType"` // Status of secret. Status pulumi.StringOutput `pulumi:"status"` // Tags of secret. Tags pulumi.MapOutput `pulumi:"tags"` }
Provide a resource to create a SSM secret.
## Example Usage ### Create user defined secret
```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Ssm"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Ssm.NewSecret(ctx, "foo", &Ssm.SecretArgs{ Description: pulumi.String("user defined secret"), IsEnabled: pulumi.Bool(true), RecoveryWindowInDays: pulumi.Int(0), SecretName: pulumi.String("test"), Tags: pulumi.AnyMap{ "test-tag": pulumi.Any("test"), }, }) if err != nil { return err } return nil }) }
``` ### Create redis secret
```go package main
import (
"encoding/json" "github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Redis" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Redis" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Ssm"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { instance, err := Redis.GetInstances(ctx, &redis.GetInstancesArgs{ Zone: pulumi.StringRef("ap-guangzhou-6"), }, nil) if err != nil { return err } tmpJSON0, err := json.Marshal(map[string]interface{}{ "Region": "ap-guangzhou", "Privilege": "r", "InstanceId": instance.InstanceLists[0].RedisId, "ReadonlyPolicy": []string{ "master", }, "Remark": "for tf test", }) if err != nil { return err } json0 := string(tmpJSON0) _, err = Ssm.NewSecret(ctx, "secret", &Ssm.SecretArgs{ SecretName: pulumi.String("for-redis-test"), Description: pulumi.String("redis secret"), IsEnabled: pulumi.Bool(false), SecretType: pulumi.Int(4), AdditionalConfig: pulumi.String(json0), Tags: pulumi.AnyMap{ "test-tag": pulumi.Any("test"), }, RecoveryWindowInDays: pulumi.Int(0), }) if err != nil { return err } return nil }) }
```
## Import
SSM secret can be imported using the secretName, e.g.
```sh
$ pulumi import tencentcloud:Ssm/secret:Secret foo test
```
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) ToSecretOutput ¶
func (i *Secret) ToSecretOutput() SecretOutput
func (*Secret) ToSecretOutputWithContext ¶
func (i *Secret) ToSecretOutputWithContext(ctx context.Context) SecretOutput
type SecretArgs ¶
type SecretArgs struct { // Additional config for specific secret types in JSON string format. AdditionalConfig pulumi.StringPtrInput // Description of secret. The maximum is 2048 bytes. Description pulumi.StringPtrInput // Specify whether to enable secret. Default value is `true`. IsEnabled pulumi.BoolPtrInput // KMS keyId used to encrypt secret. If it is empty, it means that the CMK created by SSM for you by default is used for encryption. You can also specify the KMS CMK created by yourself in the same region for encryption. KmsKeyId pulumi.StringPtrInput // Specify the scheduled deletion date. Default value is `0` that means to delete immediately. 1-30 means the number of days reserved, completely deleted after this date. RecoveryWindowInDays pulumi.IntPtrInput // Name of secret which cannot be repeated in the same region. The maximum length is 128 bytes. The name can only contain English letters, numbers, underscore and hyphen '-'. The first character must be a letter or number. SecretName pulumi.StringInput // Type of secret. `0`: user-defined secret. `4`: redis secret. SecretType pulumi.IntPtrInput // Tags of secret. Tags pulumi.MapInput }
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 (o SecretArrayOutput) Index(i pulumi.IntInput) SecretOutput
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) 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 (o SecretMapOutput) MapIndex(k pulumi.StringInput) SecretOutput
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) AdditionalConfig ¶ added in v0.1.5
func (o SecretOutput) AdditionalConfig() pulumi.StringPtrOutput
Additional config for specific secret types in JSON string format.
func (SecretOutput) Description ¶
func (o SecretOutput) Description() pulumi.StringPtrOutput
Description of secret. The maximum is 2048 bytes.
func (SecretOutput) ElementType ¶
func (SecretOutput) ElementType() reflect.Type
func (SecretOutput) IsEnabled ¶
func (o SecretOutput) IsEnabled() pulumi.BoolPtrOutput
Specify whether to enable secret. Default value is `true`.
func (SecretOutput) KmsKeyId ¶
func (o SecretOutput) KmsKeyId() pulumi.StringOutput
KMS keyId used to encrypt secret. If it is empty, it means that the CMK created by SSM for you by default is used for encryption. You can also specify the KMS CMK created by yourself in the same region for encryption.
func (SecretOutput) RecoveryWindowInDays ¶
func (o SecretOutput) RecoveryWindowInDays() pulumi.IntPtrOutput
Specify the scheduled deletion date. Default value is `0` that means to delete immediately. 1-30 means the number of days reserved, completely deleted after this date.
func (SecretOutput) SecretName ¶
func (o SecretOutput) SecretName() pulumi.StringOutput
Name of secret which cannot be repeated in the same region. The maximum length is 128 bytes. The name can only contain English letters, numbers, underscore and hyphen '-'. The first character must be a letter or number.
func (SecretOutput) SecretType ¶ added in v0.1.5
func (o SecretOutput) SecretType() pulumi.IntOutput
Type of secret. `0`: user-defined secret. `4`: redis secret.
func (SecretOutput) ToSecretOutput ¶
func (o SecretOutput) ToSecretOutput() SecretOutput
func (SecretOutput) ToSecretOutputWithContext ¶
func (o SecretOutput) ToSecretOutputWithContext(ctx context.Context) SecretOutput
type SecretState ¶
type SecretState struct { // Additional config for specific secret types in JSON string format. AdditionalConfig pulumi.StringPtrInput // Description of secret. The maximum is 2048 bytes. Description pulumi.StringPtrInput // Specify whether to enable secret. Default value is `true`. IsEnabled pulumi.BoolPtrInput // KMS keyId used to encrypt secret. If it is empty, it means that the CMK created by SSM for you by default is used for encryption. You can also specify the KMS CMK created by yourself in the same region for encryption. KmsKeyId pulumi.StringPtrInput // Specify the scheduled deletion date. Default value is `0` that means to delete immediately. 1-30 means the number of days reserved, completely deleted after this date. RecoveryWindowInDays pulumi.IntPtrInput // Name of secret which cannot be repeated in the same region. The maximum length is 128 bytes. The name can only contain English letters, numbers, underscore and hyphen '-'. The first character must be a letter or number. SecretName pulumi.StringPtrInput // Type of secret. `0`: user-defined secret. `4`: redis secret. SecretType pulumi.IntPtrInput // Status of secret. Status pulumi.StringPtrInput // Tags of secret. Tags pulumi.MapInput }
func (SecretState) ElementType ¶
func (SecretState) ElementType() reflect.Type
type SecretVersion ¶
type SecretVersion struct { pulumi.CustomResourceState // The base64-encoded binary secret. secretBinary and secretString must be set only one, and the maximum support is 4096 bytes. When secret status is `Disabled`, this field will not update anymore. SecretBinary pulumi.StringPtrOutput `pulumi:"secretBinary"` // Name of secret which cannot be repeated in the same region. The maximum length is 128 bytes. The name can only contain English letters, numbers, underscore and hyphen '-'. The first character must be a letter or number. SecretName pulumi.StringOutput `pulumi:"secretName"` // The string text of secret. secretBinary and secretString must be set only one, and the maximum support is 4096 bytes. When secret status is `Disabled`, this field will not update anymore. SecretString pulumi.StringPtrOutput `pulumi:"secretString"` // Version of secret. The maximum length is 64 bytes. The versionId can only contain English letters, numbers, underscore and hyphen '-'. The first character must be a letter or number. VersionId pulumi.StringOutput `pulumi:"versionId"` }
Provide a resource to create a SSM secret version.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Ssm"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { foo, err := Ssm.NewSecret(ctx, "foo", &Ssm.SecretArgs{ SecretName: pulumi.String("test"), Description: pulumi.String("test secret"), RecoveryWindowInDays: pulumi.Int(0), IsEnabled: pulumi.Bool(true), Tags: pulumi.AnyMap{ "test-tag": pulumi.Any("test"), }, }) if err != nil { return err } _, err = Ssm.NewSecretVersion(ctx, "v1", &Ssm.SecretVersionArgs{ SecretName: foo.SecretName, VersionId: pulumi.String("v1"), SecretBinary: pulumi.String("MTIzMTIzMTIzMTIzMTIzQQ=="), }) if err != nil { return err } return nil }) }
```
## Import
SSM secret version can be imported using the secretName#versionId, e.g.
```sh
$ pulumi import tencentcloud:Ssm/secretVersion:SecretVersion v1 test#v1
```
func GetSecretVersion ¶
func GetSecretVersion(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SecretVersionState, opts ...pulumi.ResourceOption) (*SecretVersion, error)
GetSecretVersion gets an existing SecretVersion 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 NewSecretVersion ¶
func NewSecretVersion(ctx *pulumi.Context, name string, args *SecretVersionArgs, opts ...pulumi.ResourceOption) (*SecretVersion, error)
NewSecretVersion registers a new resource with the given unique name, arguments, and options.
func (*SecretVersion) ElementType ¶
func (*SecretVersion) ElementType() reflect.Type
func (*SecretVersion) ToSecretVersionOutput ¶
func (i *SecretVersion) ToSecretVersionOutput() SecretVersionOutput
func (*SecretVersion) ToSecretVersionOutputWithContext ¶
func (i *SecretVersion) ToSecretVersionOutputWithContext(ctx context.Context) SecretVersionOutput
type SecretVersionArgs ¶
type SecretVersionArgs struct { // The base64-encoded binary secret. secretBinary and secretString must be set only one, and the maximum support is 4096 bytes. When secret status is `Disabled`, this field will not update anymore. SecretBinary pulumi.StringPtrInput // Name of secret which cannot be repeated in the same region. The maximum length is 128 bytes. The name can only contain English letters, numbers, underscore and hyphen '-'. The first character must be a letter or number. SecretName pulumi.StringInput // The string text of secret. secretBinary and secretString must be set only one, and the maximum support is 4096 bytes. When secret status is `Disabled`, this field will not update anymore. SecretString pulumi.StringPtrInput // Version of secret. The maximum length is 64 bytes. The versionId can only contain English letters, numbers, underscore and hyphen '-'. The first character must be a letter or number. VersionId pulumi.StringInput }
The set of arguments for constructing a SecretVersion resource.
func (SecretVersionArgs) ElementType ¶
func (SecretVersionArgs) ElementType() reflect.Type
type SecretVersionArray ¶
type SecretVersionArray []SecretVersionInput
func (SecretVersionArray) ElementType ¶
func (SecretVersionArray) ElementType() reflect.Type
func (SecretVersionArray) ToSecretVersionArrayOutput ¶
func (i SecretVersionArray) ToSecretVersionArrayOutput() SecretVersionArrayOutput
func (SecretVersionArray) ToSecretVersionArrayOutputWithContext ¶
func (i SecretVersionArray) ToSecretVersionArrayOutputWithContext(ctx context.Context) SecretVersionArrayOutput
type SecretVersionArrayInput ¶
type SecretVersionArrayInput interface { pulumi.Input ToSecretVersionArrayOutput() SecretVersionArrayOutput ToSecretVersionArrayOutputWithContext(context.Context) SecretVersionArrayOutput }
SecretVersionArrayInput is an input type that accepts SecretVersionArray and SecretVersionArrayOutput values. You can construct a concrete instance of `SecretVersionArrayInput` via:
SecretVersionArray{ SecretVersionArgs{...} }
type SecretVersionArrayOutput ¶
type SecretVersionArrayOutput struct{ *pulumi.OutputState }
func (SecretVersionArrayOutput) ElementType ¶
func (SecretVersionArrayOutput) ElementType() reflect.Type
func (SecretVersionArrayOutput) Index ¶
func (o SecretVersionArrayOutput) Index(i pulumi.IntInput) SecretVersionOutput
func (SecretVersionArrayOutput) ToSecretVersionArrayOutput ¶
func (o SecretVersionArrayOutput) ToSecretVersionArrayOutput() SecretVersionArrayOutput
func (SecretVersionArrayOutput) ToSecretVersionArrayOutputWithContext ¶
func (o SecretVersionArrayOutput) ToSecretVersionArrayOutputWithContext(ctx context.Context) SecretVersionArrayOutput
type SecretVersionInput ¶
type SecretVersionInput interface { pulumi.Input ToSecretVersionOutput() SecretVersionOutput ToSecretVersionOutputWithContext(ctx context.Context) SecretVersionOutput }
type SecretVersionMap ¶
type SecretVersionMap map[string]SecretVersionInput
func (SecretVersionMap) ElementType ¶
func (SecretVersionMap) ElementType() reflect.Type
func (SecretVersionMap) ToSecretVersionMapOutput ¶
func (i SecretVersionMap) ToSecretVersionMapOutput() SecretVersionMapOutput
func (SecretVersionMap) ToSecretVersionMapOutputWithContext ¶
func (i SecretVersionMap) ToSecretVersionMapOutputWithContext(ctx context.Context) SecretVersionMapOutput
type SecretVersionMapInput ¶
type SecretVersionMapInput interface { pulumi.Input ToSecretVersionMapOutput() SecretVersionMapOutput ToSecretVersionMapOutputWithContext(context.Context) SecretVersionMapOutput }
SecretVersionMapInput is an input type that accepts SecretVersionMap and SecretVersionMapOutput values. You can construct a concrete instance of `SecretVersionMapInput` via:
SecretVersionMap{ "key": SecretVersionArgs{...} }
type SecretVersionMapOutput ¶
type SecretVersionMapOutput struct{ *pulumi.OutputState }
func (SecretVersionMapOutput) ElementType ¶
func (SecretVersionMapOutput) ElementType() reflect.Type
func (SecretVersionMapOutput) MapIndex ¶
func (o SecretVersionMapOutput) MapIndex(k pulumi.StringInput) SecretVersionOutput
func (SecretVersionMapOutput) ToSecretVersionMapOutput ¶
func (o SecretVersionMapOutput) ToSecretVersionMapOutput() SecretVersionMapOutput
func (SecretVersionMapOutput) ToSecretVersionMapOutputWithContext ¶
func (o SecretVersionMapOutput) ToSecretVersionMapOutputWithContext(ctx context.Context) SecretVersionMapOutput
type SecretVersionOutput ¶
type SecretVersionOutput struct{ *pulumi.OutputState }
func (SecretVersionOutput) ElementType ¶
func (SecretVersionOutput) ElementType() reflect.Type
func (SecretVersionOutput) SecretBinary ¶
func (o SecretVersionOutput) SecretBinary() pulumi.StringPtrOutput
The base64-encoded binary secret. secretBinary and secretString must be set only one, and the maximum support is 4096 bytes. When secret status is `Disabled`, this field will not update anymore.
func (SecretVersionOutput) SecretName ¶
func (o SecretVersionOutput) SecretName() pulumi.StringOutput
Name of secret which cannot be repeated in the same region. The maximum length is 128 bytes. The name can only contain English letters, numbers, underscore and hyphen '-'. The first character must be a letter or number.
func (SecretVersionOutput) SecretString ¶
func (o SecretVersionOutput) SecretString() pulumi.StringPtrOutput
The string text of secret. secretBinary and secretString must be set only one, and the maximum support is 4096 bytes. When secret status is `Disabled`, this field will not update anymore.
func (SecretVersionOutput) ToSecretVersionOutput ¶
func (o SecretVersionOutput) ToSecretVersionOutput() SecretVersionOutput
func (SecretVersionOutput) ToSecretVersionOutputWithContext ¶
func (o SecretVersionOutput) ToSecretVersionOutputWithContext(ctx context.Context) SecretVersionOutput
func (SecretVersionOutput) VersionId ¶
func (o SecretVersionOutput) VersionId() pulumi.StringOutput
Version of secret. The maximum length is 64 bytes. The versionId can only contain English letters, numbers, underscore and hyphen '-'. The first character must be a letter or number.
type SecretVersionState ¶
type SecretVersionState struct { // The base64-encoded binary secret. secretBinary and secretString must be set only one, and the maximum support is 4096 bytes. When secret status is `Disabled`, this field will not update anymore. SecretBinary pulumi.StringPtrInput // Name of secret which cannot be repeated in the same region. The maximum length is 128 bytes. The name can only contain English letters, numbers, underscore and hyphen '-'. The first character must be a letter or number. SecretName pulumi.StringPtrInput // The string text of secret. secretBinary and secretString must be set only one, and the maximum support is 4096 bytes. When secret status is `Disabled`, this field will not update anymore. SecretString pulumi.StringPtrInput // Version of secret. The maximum length is 64 bytes. The versionId can only contain English letters, numbers, underscore and hyphen '-'. The first character must be a letter or number. VersionId pulumi.StringPtrInput }
func (SecretVersionState) ElementType ¶
func (SecretVersionState) ElementType() reflect.Type
type SshKeyPairSecret ¶ added in v0.1.5
type SshKeyPairSecret struct { pulumi.CustomResourceState // Specifies whether to delete the SSH key from both the secret and the SSH key list in the CVM console. This field is only take effect when delete SSH key secrets. Valid values: `True`: deletes SSH key from both the secret and SSH key list in the CVM console. Note that the deletion will fail if the SSH key is already bound to a CVM instance.`False`: only deletes the SSH key information in the secret. CleanSshKey pulumi.BoolPtrOutput `pulumi:"cleanSshKey"` // Credential creation time in UNIX timestamp format. CreateTime pulumi.IntOutput `pulumi:"createTime"` // Description, such as what it is used for. It contains up to 2,048 bytes. Description pulumi.StringPtrOutput `pulumi:"description"` // Specifies a KMS CMK to encrypt the secret.If this parameter is left empty, the CMK created by Secrets Manager by default will be used for encryption.You can also specify a custom KMS CMK created in the same region for encryption. KmsKeyId pulumi.StringPtrOutput `pulumi:"kmsKeyId"` // ID of the project to which the created SSH key belongs. ProjectId pulumi.IntOutput `pulumi:"projectId"` // Secret name, which must be unique in the same region. It can contain 128 bytes of letters, digits, hyphens and underscores and must begin with a letter or digit. SecretName pulumi.StringOutput `pulumi:"secretName"` // `0`: user-defined secret. `1`: Tencent Cloud services secret. `2`: SSH key secret. `3`: Tencent Cloud API key secret. Note: this field may return `null`, indicating that no valid values can be obtained. SecretType pulumi.IntOutput `pulumi:"secretType"` // Name of the SSH key pair, which only contains digits, letters and underscores and must start with a digit or letter. The maximum length is 25 characters. SshKeyName pulumi.StringPtrOutput `pulumi:"sshKeyName"` // Enable or Disable Secret. Valid values is `Enabled` or `Disabled`. Default is `Enabled`. Status pulumi.StringOutput `pulumi:"status"` }
Provides a resource to create a ssm ssh key pair secret
## Import
ssm ssh_key_pair_secret can be imported using the id, e.g.
```sh
$ pulumi import tencentcloud:Ssm/sshKeyPairSecret:SshKeyPairSecret ssh_key_pair_secret ssh_key_pair_secret_name
```
func GetSshKeyPairSecret ¶ added in v0.1.5
func GetSshKeyPairSecret(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SshKeyPairSecretState, opts ...pulumi.ResourceOption) (*SshKeyPairSecret, error)
GetSshKeyPairSecret gets an existing SshKeyPairSecret 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 NewSshKeyPairSecret ¶ added in v0.1.5
func NewSshKeyPairSecret(ctx *pulumi.Context, name string, args *SshKeyPairSecretArgs, opts ...pulumi.ResourceOption) (*SshKeyPairSecret, error)
NewSshKeyPairSecret registers a new resource with the given unique name, arguments, and options.
func (*SshKeyPairSecret) ElementType ¶ added in v0.1.5
func (*SshKeyPairSecret) ElementType() reflect.Type
func (*SshKeyPairSecret) ToSshKeyPairSecretOutput ¶ added in v0.1.5
func (i *SshKeyPairSecret) ToSshKeyPairSecretOutput() SshKeyPairSecretOutput
func (*SshKeyPairSecret) ToSshKeyPairSecretOutputWithContext ¶ added in v0.1.5
func (i *SshKeyPairSecret) ToSshKeyPairSecretOutputWithContext(ctx context.Context) SshKeyPairSecretOutput
type SshKeyPairSecretArgs ¶ added in v0.1.5
type SshKeyPairSecretArgs struct { // Specifies whether to delete the SSH key from both the secret and the SSH key list in the CVM console. This field is only take effect when delete SSH key secrets. Valid values: `True`: deletes SSH key from both the secret and SSH key list in the CVM console. Note that the deletion will fail if the SSH key is already bound to a CVM instance.`False`: only deletes the SSH key information in the secret. CleanSshKey pulumi.BoolPtrInput // Description, such as what it is used for. It contains up to 2,048 bytes. Description pulumi.StringPtrInput // Specifies a KMS CMK to encrypt the secret.If this parameter is left empty, the CMK created by Secrets Manager by default will be used for encryption.You can also specify a custom KMS CMK created in the same region for encryption. KmsKeyId pulumi.StringPtrInput // ID of the project to which the created SSH key belongs. ProjectId pulumi.IntInput // Secret name, which must be unique in the same region. It can contain 128 bytes of letters, digits, hyphens and underscores and must begin with a letter or digit. SecretName pulumi.StringInput // Name of the SSH key pair, which only contains digits, letters and underscores and must start with a digit or letter. The maximum length is 25 characters. SshKeyName pulumi.StringPtrInput // Enable or Disable Secret. Valid values is `Enabled` or `Disabled`. Default is `Enabled`. Status pulumi.StringPtrInput }
The set of arguments for constructing a SshKeyPairSecret resource.
func (SshKeyPairSecretArgs) ElementType ¶ added in v0.1.5
func (SshKeyPairSecretArgs) ElementType() reflect.Type
type SshKeyPairSecretArray ¶ added in v0.1.5
type SshKeyPairSecretArray []SshKeyPairSecretInput
func (SshKeyPairSecretArray) ElementType ¶ added in v0.1.5
func (SshKeyPairSecretArray) ElementType() reflect.Type
func (SshKeyPairSecretArray) ToSshKeyPairSecretArrayOutput ¶ added in v0.1.5
func (i SshKeyPairSecretArray) ToSshKeyPairSecretArrayOutput() SshKeyPairSecretArrayOutput
func (SshKeyPairSecretArray) ToSshKeyPairSecretArrayOutputWithContext ¶ added in v0.1.5
func (i SshKeyPairSecretArray) ToSshKeyPairSecretArrayOutputWithContext(ctx context.Context) SshKeyPairSecretArrayOutput
type SshKeyPairSecretArrayInput ¶ added in v0.1.5
type SshKeyPairSecretArrayInput interface { pulumi.Input ToSshKeyPairSecretArrayOutput() SshKeyPairSecretArrayOutput ToSshKeyPairSecretArrayOutputWithContext(context.Context) SshKeyPairSecretArrayOutput }
SshKeyPairSecretArrayInput is an input type that accepts SshKeyPairSecretArray and SshKeyPairSecretArrayOutput values. You can construct a concrete instance of `SshKeyPairSecretArrayInput` via:
SshKeyPairSecretArray{ SshKeyPairSecretArgs{...} }
type SshKeyPairSecretArrayOutput ¶ added in v0.1.5
type SshKeyPairSecretArrayOutput struct{ *pulumi.OutputState }
func (SshKeyPairSecretArrayOutput) ElementType ¶ added in v0.1.5
func (SshKeyPairSecretArrayOutput) ElementType() reflect.Type
func (SshKeyPairSecretArrayOutput) Index ¶ added in v0.1.5
func (o SshKeyPairSecretArrayOutput) Index(i pulumi.IntInput) SshKeyPairSecretOutput
func (SshKeyPairSecretArrayOutput) ToSshKeyPairSecretArrayOutput ¶ added in v0.1.5
func (o SshKeyPairSecretArrayOutput) ToSshKeyPairSecretArrayOutput() SshKeyPairSecretArrayOutput
func (SshKeyPairSecretArrayOutput) ToSshKeyPairSecretArrayOutputWithContext ¶ added in v0.1.5
func (o SshKeyPairSecretArrayOutput) ToSshKeyPairSecretArrayOutputWithContext(ctx context.Context) SshKeyPairSecretArrayOutput
type SshKeyPairSecretInput ¶ added in v0.1.5
type SshKeyPairSecretInput interface { pulumi.Input ToSshKeyPairSecretOutput() SshKeyPairSecretOutput ToSshKeyPairSecretOutputWithContext(ctx context.Context) SshKeyPairSecretOutput }
type SshKeyPairSecretMap ¶ added in v0.1.5
type SshKeyPairSecretMap map[string]SshKeyPairSecretInput
func (SshKeyPairSecretMap) ElementType ¶ added in v0.1.5
func (SshKeyPairSecretMap) ElementType() reflect.Type
func (SshKeyPairSecretMap) ToSshKeyPairSecretMapOutput ¶ added in v0.1.5
func (i SshKeyPairSecretMap) ToSshKeyPairSecretMapOutput() SshKeyPairSecretMapOutput
func (SshKeyPairSecretMap) ToSshKeyPairSecretMapOutputWithContext ¶ added in v0.1.5
func (i SshKeyPairSecretMap) ToSshKeyPairSecretMapOutputWithContext(ctx context.Context) SshKeyPairSecretMapOutput
type SshKeyPairSecretMapInput ¶ added in v0.1.5
type SshKeyPairSecretMapInput interface { pulumi.Input ToSshKeyPairSecretMapOutput() SshKeyPairSecretMapOutput ToSshKeyPairSecretMapOutputWithContext(context.Context) SshKeyPairSecretMapOutput }
SshKeyPairSecretMapInput is an input type that accepts SshKeyPairSecretMap and SshKeyPairSecretMapOutput values. You can construct a concrete instance of `SshKeyPairSecretMapInput` via:
SshKeyPairSecretMap{ "key": SshKeyPairSecretArgs{...} }
type SshKeyPairSecretMapOutput ¶ added in v0.1.5
type SshKeyPairSecretMapOutput struct{ *pulumi.OutputState }
func (SshKeyPairSecretMapOutput) ElementType ¶ added in v0.1.5
func (SshKeyPairSecretMapOutput) ElementType() reflect.Type
func (SshKeyPairSecretMapOutput) MapIndex ¶ added in v0.1.5
func (o SshKeyPairSecretMapOutput) MapIndex(k pulumi.StringInput) SshKeyPairSecretOutput
func (SshKeyPairSecretMapOutput) ToSshKeyPairSecretMapOutput ¶ added in v0.1.5
func (o SshKeyPairSecretMapOutput) ToSshKeyPairSecretMapOutput() SshKeyPairSecretMapOutput
func (SshKeyPairSecretMapOutput) ToSshKeyPairSecretMapOutputWithContext ¶ added in v0.1.5
func (o SshKeyPairSecretMapOutput) ToSshKeyPairSecretMapOutputWithContext(ctx context.Context) SshKeyPairSecretMapOutput
type SshKeyPairSecretOutput ¶ added in v0.1.5
type SshKeyPairSecretOutput struct{ *pulumi.OutputState }
func (SshKeyPairSecretOutput) CleanSshKey ¶ added in v0.1.5
func (o SshKeyPairSecretOutput) CleanSshKey() pulumi.BoolPtrOutput
Specifies whether to delete the SSH key from both the secret and the SSH key list in the CVM console. This field is only take effect when delete SSH key secrets. Valid values: `True`: deletes SSH key from both the secret and SSH key list in the CVM console. Note that the deletion will fail if the SSH key is already bound to a CVM instance.`False`: only deletes the SSH key information in the secret.
func (SshKeyPairSecretOutput) CreateTime ¶ added in v0.1.5
func (o SshKeyPairSecretOutput) CreateTime() pulumi.IntOutput
Credential creation time in UNIX timestamp format.
func (SshKeyPairSecretOutput) Description ¶ added in v0.1.5
func (o SshKeyPairSecretOutput) Description() pulumi.StringPtrOutput
Description, such as what it is used for. It contains up to 2,048 bytes.
func (SshKeyPairSecretOutput) ElementType ¶ added in v0.1.5
func (SshKeyPairSecretOutput) ElementType() reflect.Type
func (SshKeyPairSecretOutput) KmsKeyId ¶ added in v0.1.5
func (o SshKeyPairSecretOutput) KmsKeyId() pulumi.StringPtrOutput
Specifies a KMS CMK to encrypt the secret.If this parameter is left empty, the CMK created by Secrets Manager by default will be used for encryption.You can also specify a custom KMS CMK created in the same region for encryption.
func (SshKeyPairSecretOutput) ProjectId ¶ added in v0.1.5
func (o SshKeyPairSecretOutput) ProjectId() pulumi.IntOutput
ID of the project to which the created SSH key belongs.
func (SshKeyPairSecretOutput) SecretName ¶ added in v0.1.5
func (o SshKeyPairSecretOutput) SecretName() pulumi.StringOutput
Secret name, which must be unique in the same region. It can contain 128 bytes of letters, digits, hyphens and underscores and must begin with a letter or digit.
func (SshKeyPairSecretOutput) SecretType ¶ added in v0.1.5
func (o SshKeyPairSecretOutput) SecretType() pulumi.IntOutput
`0`: user-defined secret. `1`: Tencent Cloud services secret. `2`: SSH key secret. `3`: Tencent Cloud API key secret. Note: this field may return `null`, indicating that no valid values can be obtained.
func (SshKeyPairSecretOutput) SshKeyName ¶ added in v0.1.5
func (o SshKeyPairSecretOutput) SshKeyName() pulumi.StringPtrOutput
Name of the SSH key pair, which only contains digits, letters and underscores and must start with a digit or letter. The maximum length is 25 characters.
func (SshKeyPairSecretOutput) Status ¶ added in v0.1.5
func (o SshKeyPairSecretOutput) Status() pulumi.StringOutput
Enable or Disable Secret. Valid values is `Enabled` or `Disabled`. Default is `Enabled`.
func (SshKeyPairSecretOutput) ToSshKeyPairSecretOutput ¶ added in v0.1.5
func (o SshKeyPairSecretOutput) ToSshKeyPairSecretOutput() SshKeyPairSecretOutput
func (SshKeyPairSecretOutput) ToSshKeyPairSecretOutputWithContext ¶ added in v0.1.5
func (o SshKeyPairSecretOutput) ToSshKeyPairSecretOutputWithContext(ctx context.Context) SshKeyPairSecretOutput
type SshKeyPairSecretState ¶ added in v0.1.5
type SshKeyPairSecretState struct { // Specifies whether to delete the SSH key from both the secret and the SSH key list in the CVM console. This field is only take effect when delete SSH key secrets. Valid values: `True`: deletes SSH key from both the secret and SSH key list in the CVM console. Note that the deletion will fail if the SSH key is already bound to a CVM instance.`False`: only deletes the SSH key information in the secret. CleanSshKey pulumi.BoolPtrInput // Credential creation time in UNIX timestamp format. CreateTime pulumi.IntPtrInput // Description, such as what it is used for. It contains up to 2,048 bytes. Description pulumi.StringPtrInput // Specifies a KMS CMK to encrypt the secret.If this parameter is left empty, the CMK created by Secrets Manager by default will be used for encryption.You can also specify a custom KMS CMK created in the same region for encryption. KmsKeyId pulumi.StringPtrInput // ID of the project to which the created SSH key belongs. ProjectId pulumi.IntPtrInput // Secret name, which must be unique in the same region. It can contain 128 bytes of letters, digits, hyphens and underscores and must begin with a letter or digit. SecretName pulumi.StringPtrInput // `0`: user-defined secret. `1`: Tencent Cloud services secret. `2`: SSH key secret. `3`: Tencent Cloud API key secret. Note: this field may return `null`, indicating that no valid values can be obtained. SecretType pulumi.IntPtrInput // Name of the SSH key pair, which only contains digits, letters and underscores and must start with a digit or letter. The maximum length is 25 characters. SshKeyName pulumi.StringPtrInput // Enable or Disable Secret. Valid values is `Enabled` or `Disabled`. Default is `Enabled`. Status pulumi.StringPtrInput }
func (SshKeyPairSecretState) ElementType ¶ added in v0.1.5
func (SshKeyPairSecretState) ElementType() reflect.Type