Documentation
¶
Index ¶
- func PkgVersion() (semver.Version, error)
- type GetProductsArgs
- type GetProductsOutputArgs
- type GetProductsResult
- type GetProductsResultOutput
- func (GetProductsResultOutput) ElementType() reflect.Type
- func (o GetProductsResultOutput) Id() pulumi.StringOutput
- func (o GetProductsResultOutput) Products() pulumi.StringArrayOutput
- func (o GetProductsResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetProductsResultOutput) ToGetProductsResultOutput() GetProductsResultOutput
- func (o GetProductsResultOutput) ToGetProductsResultOutputWithContext(ctx context.Context) GetProductsResultOutput
- type GetRotationDetailArgs
- type GetRotationDetailOutputArgs
- type GetRotationDetailResult
- type GetRotationDetailResultOutput
- func (GetRotationDetailResultOutput) ElementType() reflect.Type
- func (o GetRotationDetailResultOutput) EnableRotation() pulumi.BoolOutput
- func (o GetRotationDetailResultOutput) Frequency() pulumi.IntOutput
- func (o GetRotationDetailResultOutput) Id() pulumi.StringOutput
- func (o GetRotationDetailResultOutput) LatestRotateTime() pulumi.StringOutput
- func (o GetRotationDetailResultOutput) NextRotateBeginTime() pulumi.StringOutput
- func (o GetRotationDetailResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetRotationDetailResultOutput) SecretName() pulumi.StringOutput
- func (o GetRotationDetailResultOutput) ToGetRotationDetailResultOutput() GetRotationDetailResultOutput
- func (o GetRotationDetailResultOutput) ToGetRotationDetailResultOutputWithContext(ctx context.Context) GetRotationDetailResultOutput
- type GetRotationHistoryArgs
- type GetRotationHistoryOutputArgs
- type GetRotationHistoryResult
- type GetRotationHistoryResultOutput
- func (GetRotationHistoryResultOutput) ElementType() reflect.Type
- func (o GetRotationHistoryResultOutput) Id() pulumi.StringOutput
- func (o GetRotationHistoryResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetRotationHistoryResultOutput) SecretName() pulumi.StringOutput
- func (o GetRotationHistoryResultOutput) ToGetRotationHistoryResultOutput() GetRotationHistoryResultOutput
- func (o GetRotationHistoryResultOutput) ToGetRotationHistoryResultOutputWithContext(ctx context.Context) GetRotationHistoryResultOutput
- func (o GetRotationHistoryResultOutput) VersionIds() pulumi.StringArrayOutput
- 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) ProductName() pulumi.StringPtrOutput
- func (o GetSecretsResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetSecretsResultOutput) SecretLists() GetSecretsSecretListArrayOutput
- func (o GetSecretsResultOutput) SecretName() pulumi.StringPtrOutput
- func (o GetSecretsResultOutput) SecretType() pulumi.IntPtrOutput
- 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) AssociatedInstanceIds() pulumi.StringArrayOutput
- 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) KmsKeyType() pulumi.StringOutput
- func (o GetSecretsSecretListOutput) NextRotationTime() pulumi.IntOutput
- func (o GetSecretsSecretListOutput) ProductName() pulumi.StringOutput
- func (o GetSecretsSecretListOutput) ProjectId() pulumi.IntOutput
- func (o GetSecretsSecretListOutput) ResourceId() pulumi.StringOutput
- func (o GetSecretsSecretListOutput) ResourceName() pulumi.StringOutput
- func (o GetSecretsSecretListOutput) RotationBeginTime() pulumi.StringOutput
- func (o GetSecretsSecretListOutput) RotationFrequency() pulumi.IntOutput
- func (o GetSecretsSecretListOutput) RotationStatus() pulumi.IntOutput
- func (o GetSecretsSecretListOutput) SecretName() pulumi.StringOutput
- func (o GetSecretsSecretListOutput) SecretType() pulumi.IntOutput
- func (o GetSecretsSecretListOutput) Status() pulumi.StringOutput
- func (o GetSecretsSecretListOutput) TargetUin() pulumi.IntOutput
- func (o GetSecretsSecretListOutput) ToGetSecretsSecretListOutput() GetSecretsSecretListOutput
- func (o GetSecretsSecretListOutput) ToGetSecretsSecretListOutputWithContext(ctx context.Context) GetSecretsSecretListOutput
- type GetServiceStatusArgs
- type GetServiceStatusOutputArgs
- type GetServiceStatusResult
- type GetServiceStatusResultOutput
- func (o GetServiceStatusResultOutput) AccessKeyEscrowEnabled() pulumi.BoolOutput
- func (GetServiceStatusResultOutput) ElementType() reflect.Type
- func (o GetServiceStatusResultOutput) Id() pulumi.StringOutput
- func (o GetServiceStatusResultOutput) InvalidType() pulumi.IntOutput
- func (o GetServiceStatusResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetServiceStatusResultOutput) ServiceEnabled() pulumi.BoolOutput
- func (o GetServiceStatusResultOutput) ToGetServiceStatusResultOutput() GetServiceStatusResultOutput
- func (o GetServiceStatusResultOutput) ToGetServiceStatusResultOutputWithContext(ctx context.Context) GetServiceStatusResultOutput
- type GetSshKeyPairValueArgs
- type GetSshKeyPairValueOutputArgs
- type GetSshKeyPairValueResult
- type GetSshKeyPairValueResultOutput
- func (GetSshKeyPairValueResultOutput) ElementType() reflect.Type
- func (o GetSshKeyPairValueResultOutput) Id() pulumi.StringOutput
- func (o GetSshKeyPairValueResultOutput) PrivateKey() pulumi.StringOutput
- func (o GetSshKeyPairValueResultOutput) ProjectId() pulumi.IntOutput
- func (o GetSshKeyPairValueResultOutput) PublicKey() pulumi.StringOutput
- func (o GetSshKeyPairValueResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetSshKeyPairValueResultOutput) SecretName() pulumi.StringOutput
- func (o GetSshKeyPairValueResultOutput) SshKeyDescription() pulumi.StringOutput
- func (o GetSshKeyPairValueResultOutput) SshKeyId() pulumi.StringOutput
- func (o GetSshKeyPairValueResultOutput) SshKeyName() pulumi.StringOutput
- func (o GetSshKeyPairValueResultOutput) ToGetSshKeyPairValueResultOutput() GetSshKeyPairValueResultOutput
- func (o GetSshKeyPairValueResultOutput) ToGetSshKeyPairValueResultOutputWithContext(ctx context.Context) GetSshKeyPairValueResultOutput
- type ProductSecret
- type ProductSecretArgs
- type ProductSecretArray
- type ProductSecretArrayInput
- type ProductSecretArrayOutput
- func (ProductSecretArrayOutput) ElementType() reflect.Type
- func (o ProductSecretArrayOutput) Index(i pulumi.IntInput) ProductSecretOutput
- func (o ProductSecretArrayOutput) ToProductSecretArrayOutput() ProductSecretArrayOutput
- func (o ProductSecretArrayOutput) ToProductSecretArrayOutputWithContext(ctx context.Context) ProductSecretArrayOutput
- type ProductSecretInput
- type ProductSecretMap
- type ProductSecretMapInput
- type ProductSecretMapOutput
- func (ProductSecretMapOutput) ElementType() reflect.Type
- func (o ProductSecretMapOutput) MapIndex(k pulumi.StringInput) ProductSecretOutput
- func (o ProductSecretMapOutput) ToProductSecretMapOutput() ProductSecretMapOutput
- func (o ProductSecretMapOutput) ToProductSecretMapOutputWithContext(ctx context.Context) ProductSecretMapOutput
- type ProductSecretOutput
- func (o ProductSecretOutput) CreateTime() pulumi.IntOutput
- func (o ProductSecretOutput) Description() pulumi.StringPtrOutput
- func (o ProductSecretOutput) Domains() pulumi.StringArrayOutput
- func (ProductSecretOutput) ElementType() reflect.Type
- func (o ProductSecretOutput) EnableRotation() pulumi.BoolOutput
- func (o ProductSecretOutput) InstanceId() pulumi.StringOutput
- func (o ProductSecretOutput) KmsKeyId() pulumi.StringPtrOutput
- func (o ProductSecretOutput) PrivilegesLists() ProductSecretPrivilegesListArrayOutput
- func (o ProductSecretOutput) ProductName() pulumi.StringOutput
- func (o ProductSecretOutput) RotationBeginTime() pulumi.StringOutput
- func (o ProductSecretOutput) RotationFrequency() pulumi.IntOutput
- func (o ProductSecretOutput) SecretName() pulumi.StringOutput
- func (o ProductSecretOutput) SecretType() pulumi.IntOutput
- func (o ProductSecretOutput) Status() pulumi.StringOutput
- func (o ProductSecretOutput) Tags() pulumi.MapOutput
- func (o ProductSecretOutput) ToProductSecretOutput() ProductSecretOutput
- func (o ProductSecretOutput) ToProductSecretOutputWithContext(ctx context.Context) ProductSecretOutput
- func (o ProductSecretOutput) UserNamePrefix() pulumi.StringOutput
- type ProductSecretPrivilegesList
- type ProductSecretPrivilegesListArgs
- func (ProductSecretPrivilegesListArgs) ElementType() reflect.Type
- func (i ProductSecretPrivilegesListArgs) ToProductSecretPrivilegesListOutput() ProductSecretPrivilegesListOutput
- func (i ProductSecretPrivilegesListArgs) ToProductSecretPrivilegesListOutputWithContext(ctx context.Context) ProductSecretPrivilegesListOutput
- type ProductSecretPrivilegesListArray
- func (ProductSecretPrivilegesListArray) ElementType() reflect.Type
- func (i ProductSecretPrivilegesListArray) ToProductSecretPrivilegesListArrayOutput() ProductSecretPrivilegesListArrayOutput
- func (i ProductSecretPrivilegesListArray) ToProductSecretPrivilegesListArrayOutputWithContext(ctx context.Context) ProductSecretPrivilegesListArrayOutput
- type ProductSecretPrivilegesListArrayInput
- type ProductSecretPrivilegesListArrayOutput
- func (ProductSecretPrivilegesListArrayOutput) ElementType() reflect.Type
- func (o ProductSecretPrivilegesListArrayOutput) Index(i pulumi.IntInput) ProductSecretPrivilegesListOutput
- func (o ProductSecretPrivilegesListArrayOutput) ToProductSecretPrivilegesListArrayOutput() ProductSecretPrivilegesListArrayOutput
- func (o ProductSecretPrivilegesListArrayOutput) ToProductSecretPrivilegesListArrayOutputWithContext(ctx context.Context) ProductSecretPrivilegesListArrayOutput
- type ProductSecretPrivilegesListInput
- type ProductSecretPrivilegesListOutput
- func (o ProductSecretPrivilegesListOutput) ColumnName() pulumi.StringPtrOutput
- func (o ProductSecretPrivilegesListOutput) Database() pulumi.StringPtrOutput
- func (ProductSecretPrivilegesListOutput) ElementType() reflect.Type
- func (o ProductSecretPrivilegesListOutput) PrivilegeName() pulumi.StringOutput
- func (o ProductSecretPrivilegesListOutput) Privileges() pulumi.StringArrayOutput
- func (o ProductSecretPrivilegesListOutput) TableName() pulumi.StringPtrOutput
- func (o ProductSecretPrivilegesListOutput) ToProductSecretPrivilegesListOutput() ProductSecretPrivilegesListOutput
- func (o ProductSecretPrivilegesListOutput) ToProductSecretPrivilegesListOutputWithContext(ctx context.Context) ProductSecretPrivilegesListOutput
- type ProductSecretState
- type RotateProductSecret
- type RotateProductSecretArgs
- type RotateProductSecretArray
- type RotateProductSecretArrayInput
- type RotateProductSecretArrayOutput
- func (RotateProductSecretArrayOutput) ElementType() reflect.Type
- func (o RotateProductSecretArrayOutput) Index(i pulumi.IntInput) RotateProductSecretOutput
- func (o RotateProductSecretArrayOutput) ToRotateProductSecretArrayOutput() RotateProductSecretArrayOutput
- func (o RotateProductSecretArrayOutput) ToRotateProductSecretArrayOutputWithContext(ctx context.Context) RotateProductSecretArrayOutput
- type RotateProductSecretInput
- type RotateProductSecretMap
- type RotateProductSecretMapInput
- type RotateProductSecretMapOutput
- func (RotateProductSecretMapOutput) ElementType() reflect.Type
- func (o RotateProductSecretMapOutput) MapIndex(k pulumi.StringInput) RotateProductSecretOutput
- func (o RotateProductSecretMapOutput) ToRotateProductSecretMapOutput() RotateProductSecretMapOutput
- func (o RotateProductSecretMapOutput) ToRotateProductSecretMapOutputWithContext(ctx context.Context) RotateProductSecretMapOutput
- type RotateProductSecretOutput
- func (RotateProductSecretOutput) ElementType() reflect.Type
- func (o RotateProductSecretOutput) SecretName() pulumi.StringOutput
- func (o RotateProductSecretOutput) ToRotateProductSecretOutput() RotateProductSecretOutput
- func (o RotateProductSecretOutput) ToRotateProductSecretOutputWithContext(ctx context.Context) RotateProductSecretOutput
- type RotateProductSecretState
- 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.StringOutput
- func (o SshKeyPairSecretOutput) ProjectId() pulumi.IntOutput
- func (o SshKeyPairSecretOutput) SecretName() pulumi.StringOutput
- func (o SshKeyPairSecretOutput) SecretType() pulumi.IntOutput
- func (o SshKeyPairSecretOutput) SshKeyName() pulumi.StringOutput
- func (o SshKeyPairSecretOutput) Status() pulumi.StringOutput
- func (o SshKeyPairSecretOutput) Tags() pulumi.MapOutput
- 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 GetProductsArgs ¶ added in v0.1.8
type GetProductsArgs struct { // Used to save results. ResultOutputFile *string `pulumi:"resultOutputFile"` }
A collection of arguments for invoking getProducts.
type GetProductsOutputArgs ¶ added in v0.1.8
type GetProductsOutputArgs struct { // Used to save results. ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"` }
A collection of arguments for invoking getProducts.
func (GetProductsOutputArgs) ElementType ¶ added in v0.1.8
func (GetProductsOutputArgs) ElementType() reflect.Type
type GetProductsResult ¶ added in v0.1.8
type GetProductsResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // List of supported services. Products []string `pulumi:"products"` ResultOutputFile *string `pulumi:"resultOutputFile"` }
A collection of values returned by getProducts.
func GetProducts ¶ added in v0.1.8
func GetProducts(ctx *pulumi.Context, args *GetProductsArgs, opts ...pulumi.InvokeOption) (*GetProductsResult, error)
Use this data source to query detailed information of ssm products
## 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.GetProducts(ctx, nil, nil) if err != nil { return err } return nil }) }
```
type GetProductsResultOutput ¶ added in v0.1.8
type GetProductsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getProducts.
func GetProductsOutput ¶ added in v0.1.8
func GetProductsOutput(ctx *pulumi.Context, args GetProductsOutputArgs, opts ...pulumi.InvokeOption) GetProductsResultOutput
func (GetProductsResultOutput) ElementType ¶ added in v0.1.8
func (GetProductsResultOutput) ElementType() reflect.Type
func (GetProductsResultOutput) Id ¶ added in v0.1.8
func (o GetProductsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetProductsResultOutput) Products ¶ added in v0.1.8
func (o GetProductsResultOutput) Products() pulumi.StringArrayOutput
List of supported services.
func (GetProductsResultOutput) ResultOutputFile ¶ added in v0.1.8
func (o GetProductsResultOutput) ResultOutputFile() pulumi.StringPtrOutput
func (GetProductsResultOutput) ToGetProductsResultOutput ¶ added in v0.1.8
func (o GetProductsResultOutput) ToGetProductsResultOutput() GetProductsResultOutput
func (GetProductsResultOutput) ToGetProductsResultOutputWithContext ¶ added in v0.1.8
func (o GetProductsResultOutput) ToGetProductsResultOutputWithContext(ctx context.Context) GetProductsResultOutput
type GetRotationDetailArgs ¶ added in v0.1.8
type GetRotationDetailArgs struct { // Used to save results. ResultOutputFile *string `pulumi:"resultOutputFile"` // Secret name. SecretName string `pulumi:"secretName"` }
A collection of arguments for invoking getRotationDetail.
type GetRotationDetailOutputArgs ¶ added in v0.1.8
type GetRotationDetailOutputArgs struct { // Used to save results. ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"` // Secret name. SecretName pulumi.StringInput `pulumi:"secretName"` }
A collection of arguments for invoking getRotationDetail.
func (GetRotationDetailOutputArgs) ElementType ¶ added in v0.1.8
func (GetRotationDetailOutputArgs) ElementType() reflect.Type
type GetRotationDetailResult ¶ added in v0.1.8
type GetRotationDetailResult struct { // Whether to allow rotation. EnableRotation bool `pulumi:"enableRotation"` // The rotation frequency, in days, defaults to 1 day. Frequency int `pulumi:"frequency"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // Time of last rotation. LatestRotateTime string `pulumi:"latestRotateTime"` // The time to start the next rotation. NextRotateBeginTime string `pulumi:"nextRotateBeginTime"` ResultOutputFile *string `pulumi:"resultOutputFile"` SecretName string `pulumi:"secretName"` }
A collection of values returned by getRotationDetail.
func GetRotationDetail ¶ added in v0.1.8
func GetRotationDetail(ctx *pulumi.Context, args *GetRotationDetailArgs, opts ...pulumi.InvokeOption) (*GetRotationDetailResult, error)
Use this data source to query detailed information of ssm rotationDetail
## 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.GetRotationDetail(ctx, &ssm.GetRotationDetailArgs{ SecretName: "tf_example", }, nil) if err != nil { return err } return nil }) }
```
type GetRotationDetailResultOutput ¶ added in v0.1.8
type GetRotationDetailResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getRotationDetail.
func GetRotationDetailOutput ¶ added in v0.1.8
func GetRotationDetailOutput(ctx *pulumi.Context, args GetRotationDetailOutputArgs, opts ...pulumi.InvokeOption) GetRotationDetailResultOutput
func (GetRotationDetailResultOutput) ElementType ¶ added in v0.1.8
func (GetRotationDetailResultOutput) ElementType() reflect.Type
func (GetRotationDetailResultOutput) EnableRotation ¶ added in v0.1.8
func (o GetRotationDetailResultOutput) EnableRotation() pulumi.BoolOutput
Whether to allow rotation.
func (GetRotationDetailResultOutput) Frequency ¶ added in v0.1.8
func (o GetRotationDetailResultOutput) Frequency() pulumi.IntOutput
The rotation frequency, in days, defaults to 1 day.
func (GetRotationDetailResultOutput) Id ¶ added in v0.1.8
func (o GetRotationDetailResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetRotationDetailResultOutput) LatestRotateTime ¶ added in v0.1.8
func (o GetRotationDetailResultOutput) LatestRotateTime() pulumi.StringOutput
Time of last rotation.
func (GetRotationDetailResultOutput) NextRotateBeginTime ¶ added in v0.1.8
func (o GetRotationDetailResultOutput) NextRotateBeginTime() pulumi.StringOutput
The time to start the next rotation.
func (GetRotationDetailResultOutput) ResultOutputFile ¶ added in v0.1.8
func (o GetRotationDetailResultOutput) ResultOutputFile() pulumi.StringPtrOutput
func (GetRotationDetailResultOutput) SecretName ¶ added in v0.1.8
func (o GetRotationDetailResultOutput) SecretName() pulumi.StringOutput
func (GetRotationDetailResultOutput) ToGetRotationDetailResultOutput ¶ added in v0.1.8
func (o GetRotationDetailResultOutput) ToGetRotationDetailResultOutput() GetRotationDetailResultOutput
func (GetRotationDetailResultOutput) ToGetRotationDetailResultOutputWithContext ¶ added in v0.1.8
func (o GetRotationDetailResultOutput) ToGetRotationDetailResultOutputWithContext(ctx context.Context) GetRotationDetailResultOutput
type GetRotationHistoryArgs ¶ added in v0.1.8
type GetRotationHistoryArgs struct { // Used to save results. ResultOutputFile *string `pulumi:"resultOutputFile"` // Secret name. SecretName string `pulumi:"secretName"` }
A collection of arguments for invoking getRotationHistory.
type GetRotationHistoryOutputArgs ¶ added in v0.1.8
type GetRotationHistoryOutputArgs struct { // Used to save results. ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"` // Secret name. SecretName pulumi.StringInput `pulumi:"secretName"` }
A collection of arguments for invoking getRotationHistory.
func (GetRotationHistoryOutputArgs) ElementType ¶ added in v0.1.8
func (GetRotationHistoryOutputArgs) ElementType() reflect.Type
type GetRotationHistoryResult ¶ added in v0.1.8
type GetRotationHistoryResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` ResultOutputFile *string `pulumi:"resultOutputFile"` SecretName string `pulumi:"secretName"` // The number of version numbers. The maximum number of version numbers that can be displayed to users is 10. VersionIds []string `pulumi:"versionIds"` }
A collection of values returned by getRotationHistory.
func GetRotationHistory ¶ added in v0.1.8
func GetRotationHistory(ctx *pulumi.Context, args *GetRotationHistoryArgs, opts ...pulumi.InvokeOption) (*GetRotationHistoryResult, error)
Use this data source to query detailed information of ssm rotationHistory
## 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.GetRotationHistory(ctx, &ssm.GetRotationHistoryArgs{ SecretName: "keep_terraform", }, nil) if err != nil { return err } return nil }) }
```
type GetRotationHistoryResultOutput ¶ added in v0.1.8
type GetRotationHistoryResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getRotationHistory.
func GetRotationHistoryOutput ¶ added in v0.1.8
func GetRotationHistoryOutput(ctx *pulumi.Context, args GetRotationHistoryOutputArgs, opts ...pulumi.InvokeOption) GetRotationHistoryResultOutput
func (GetRotationHistoryResultOutput) ElementType ¶ added in v0.1.8
func (GetRotationHistoryResultOutput) ElementType() reflect.Type
func (GetRotationHistoryResultOutput) Id ¶ added in v0.1.8
func (o GetRotationHistoryResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetRotationHistoryResultOutput) ResultOutputFile ¶ added in v0.1.8
func (o GetRotationHistoryResultOutput) ResultOutputFile() pulumi.StringPtrOutput
func (GetRotationHistoryResultOutput) SecretName ¶ added in v0.1.8
func (o GetRotationHistoryResultOutput) SecretName() pulumi.StringOutput
func (GetRotationHistoryResultOutput) ToGetRotationHistoryResultOutput ¶ added in v0.1.8
func (o GetRotationHistoryResultOutput) ToGetRotationHistoryResultOutput() GetRotationHistoryResultOutput
func (GetRotationHistoryResultOutput) ToGetRotationHistoryResultOutputWithContext ¶ added in v0.1.8
func (o GetRotationHistoryResultOutput) ToGetRotationHistoryResultOutputWithContext(ctx context.Context) GetRotationHistoryResultOutput
func (GetRotationHistoryResultOutput) VersionIds ¶ added in v0.1.8
func (o GetRotationHistoryResultOutput) VersionIds() pulumi.StringArrayOutput
The number of version numbers. The maximum number of version numbers that can be displayed to users is 10.
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 { exampleSecret, err := Ssm.NewSecret(ctx, "exampleSecret", &Ssm.SecretArgs{ SecretName: pulumi.String("tf-example"), Description: pulumi.String("desc."), Tags: pulumi.AnyMap{ "createdBy": pulumi.Any("terraform"), }, }) if err != nil { return err } v1, err := Ssm.NewSecretVersion(ctx, "v1", &Ssm.SecretVersionArgs{ SecretName: exampleSecret.SecretName, VersionId: pulumi.String("v1"), SecretBinary: pulumi.String("MTIzMTIzMTIzMTIzMTIzQQ=="), }) if err != nil { return err } _ = Ssm.GetSecretVersionsOutput(ctx, ssm.GetSecretVersionsOutputArgs{ SecretName: v1.SecretName, VersionId: v1.VersionId, }, nil) 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"` // This parameter only takes effect when the SecretType parameter value is 1. When the SecretType value is 1, if the Product Name value is empty, it means to query all types of cloud product credentials. If the Product Name value is MySQL, it means to query MySQL database credentials. If the Product Name value is Tdsql mysql, it means to query Tdsql (MySQL version) credentials. ProductName *string `pulumi:"productName"` // Used to save results. ResultOutputFile *string `pulumi:"resultOutputFile"` // Secret name used to filter result. SecretName *string `pulumi:"secretName"` // 0- represents user-defined credentials, defaults to 0. 1- represents the user's cloud product credentials. 2- represents SSH key pair credentials. 3- represents cloud API key pair credentials. SecretType *int `pulumi:"secretType"` // 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"` // This parameter only takes effect when the SecretType parameter value is 1. When the SecretType value is 1, if the Product Name value is empty, it means to query all types of cloud product credentials. If the Product Name value is MySQL, it means to query MySQL database credentials. If the Product Name value is Tdsql mysql, it means to query Tdsql (MySQL version) credentials. ProductName pulumi.StringPtrInput `pulumi:"productName"` // Used to save results. ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"` // Secret name used to filter result. SecretName pulumi.StringPtrInput `pulumi:"secretName"` // 0- represents user-defined credentials, defaults to 0. 1- represents the user's cloud product credentials. 2- represents SSH key pair credentials. 3- represents cloud API key pair credentials. SecretType pulumi.IntPtrInput `pulumi:"secretType"` // 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"` // Cloud product name, only effective when SecretType is 1, which means the credential type is cloud product credential. ProductName *string `pulumi:"productName"` ResultOutputFile *string `pulumi:"resultOutputFile"` // A list of SSM secrets. SecretLists []GetSecretsSecretList `pulumi:"secretLists"` // Name of secret. SecretName *string `pulumi:"secretName"` // 0- User defined credentials; 1- Cloud product credentials; 2- SSH key pair credentials; 3- Cloud API key pair credentials. SecretType *int `pulumi:"secretType"` 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 { exampleSecret, err := Ssm.NewSecret(ctx, "exampleSecret", &Ssm.SecretArgs{ SecretName: pulumi.String("tf_example"), Description: pulumi.String("desc."), Tags: pulumi.AnyMap{ "createdBy": pulumi.Any("terraform"), }, }) if err != nil { return err } return nil }) }
``` ### OR you can filter by tags
```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{ SecretName: pulumi.StringRef(tencentcloud_ssm_secret.Example.Secret_name), State: pulumi.IntRef(1), Tags: map[string]interface{}{ "createdBy": "terraform", }, }, 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) ProductName ¶ added in v0.1.8
func (o GetSecretsResultOutput) ProductName() pulumi.StringPtrOutput
Cloud product name, only effective when SecretType is 1, which means the credential type is cloud product credential.
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) SecretType ¶ added in v0.1.8
func (o GetSecretsResultOutput) SecretType() pulumi.IntPtrOutput
0- User defined credentials; 1- Cloud product credentials; 2- SSH key pair credentials; 3- Cloud API key pair credentials.
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 { // When the credential type is SSH key pair credential, this field is valid and is used to represent the CVM instance ID associated with the SSH key pair. AssociatedInstanceIds []string `pulumi:"associatedInstanceIds"` // 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"` // KMS CMK type used to encrypt credentials, DEFAULT represents the default key created by SecretsManager, and CUSTOMER represents the user specified key. KmsKeyType string `pulumi:"kmsKeyType"` // Next rotation start time, uinx timestamp. NextRotationTime int `pulumi:"nextRotationTime"` // This parameter only takes effect when the SecretType parameter value is 1. When the SecretType value is 1, if the Product Name value is empty, it means to query all types of cloud product credentials. If the Product Name value is MySQL, it means to query MySQL database credentials. If the Product Name value is Tdsql mysql, it means to query Tdsql (MySQL version) credentials. ProductName string `pulumi:"productName"` // When the credential type is SSH key pair credential, this field is valid and represents the item ID to which the SSH key pair belongs. ProjectId int `pulumi:"projectId"` // The cloud product instance ID number corresponding to the cloud product credentials. ResourceId string `pulumi:"resourceId"` // When the credential type is SSH key pair credential, this field is valid and is used to represent the name of the SSH key pair credential. ResourceName string `pulumi:"resourceName"` // The user specified rotation start time. RotationBeginTime string `pulumi:"rotationBeginTime"` // The frequency of rotation, in days, takes effect when rotation is on. RotationFrequency int `pulumi:"rotationFrequency"` // 1: - Turn on the rotation; 0- No rotation Note: This field may return null, indicating that a valid value cannot be obtained. RotationStatus int `pulumi:"rotationStatus"` // Secret name used to filter result. SecretName string `pulumi:"secretName"` // 0- represents user-defined credentials, defaults to 0. 1- represents the user's cloud product credentials. 2- represents SSH key pair credentials. 3- represents cloud API key pair credentials. SecretType int `pulumi:"secretType"` // Status of secret. Status string `pulumi:"status"` // When the credential type is a cloud API key pair credential, this field is valid and is used to represent the user UIN to which the cloud API key pair belongs. TargetUin int `pulumi:"targetUin"` }
type GetSecretsSecretListArgs ¶
type GetSecretsSecretListArgs struct { // When the credential type is SSH key pair credential, this field is valid and is used to represent the CVM instance ID associated with the SSH key pair. AssociatedInstanceIds pulumi.StringArrayInput `pulumi:"associatedInstanceIds"` // 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"` // KMS CMK type used to encrypt credentials, DEFAULT represents the default key created by SecretsManager, and CUSTOMER represents the user specified key. KmsKeyType pulumi.StringInput `pulumi:"kmsKeyType"` // Next rotation start time, uinx timestamp. NextRotationTime pulumi.IntInput `pulumi:"nextRotationTime"` // This parameter only takes effect when the SecretType parameter value is 1. When the SecretType value is 1, if the Product Name value is empty, it means to query all types of cloud product credentials. If the Product Name value is MySQL, it means to query MySQL database credentials. If the Product Name value is Tdsql mysql, it means to query Tdsql (MySQL version) credentials. ProductName pulumi.StringInput `pulumi:"productName"` // When the credential type is SSH key pair credential, this field is valid and represents the item ID to which the SSH key pair belongs. ProjectId pulumi.IntInput `pulumi:"projectId"` // The cloud product instance ID number corresponding to the cloud product credentials. ResourceId pulumi.StringInput `pulumi:"resourceId"` // When the credential type is SSH key pair credential, this field is valid and is used to represent the name of the SSH key pair credential. ResourceName pulumi.StringInput `pulumi:"resourceName"` // The user specified rotation start time. RotationBeginTime pulumi.StringInput `pulumi:"rotationBeginTime"` // The frequency of rotation, in days, takes effect when rotation is on. RotationFrequency pulumi.IntInput `pulumi:"rotationFrequency"` // 1: - Turn on the rotation; 0- No rotation Note: This field may return null, indicating that a valid value cannot be obtained. RotationStatus pulumi.IntInput `pulumi:"rotationStatus"` // Secret name used to filter result. SecretName pulumi.StringInput `pulumi:"secretName"` // 0- represents user-defined credentials, defaults to 0. 1- represents the user's cloud product credentials. 2- represents SSH key pair credentials. 3- represents cloud API key pair credentials. SecretType pulumi.IntInput `pulumi:"secretType"` // Status of secret. Status pulumi.StringInput `pulumi:"status"` // When the credential type is a cloud API key pair credential, this field is valid and is used to represent the user UIN to which the cloud API key pair belongs. TargetUin pulumi.IntInput `pulumi:"targetUin"` }
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) AssociatedInstanceIds ¶ added in v0.1.8
func (o GetSecretsSecretListOutput) AssociatedInstanceIds() pulumi.StringArrayOutput
When the credential type is SSH key pair credential, this field is valid and is used to represent the CVM instance ID associated with the SSH key pair.
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) KmsKeyType ¶ added in v0.1.8
func (o GetSecretsSecretListOutput) KmsKeyType() pulumi.StringOutput
KMS CMK type used to encrypt credentials, DEFAULT represents the default key created by SecretsManager, and CUSTOMER represents the user specified key.
func (GetSecretsSecretListOutput) NextRotationTime ¶ added in v0.1.8
func (o GetSecretsSecretListOutput) NextRotationTime() pulumi.IntOutput
Next rotation start time, uinx timestamp.
func (GetSecretsSecretListOutput) ProductName ¶ added in v0.1.8
func (o GetSecretsSecretListOutput) ProductName() pulumi.StringOutput
This parameter only takes effect when the SecretType parameter value is 1. When the SecretType value is 1, if the Product Name value is empty, it means to query all types of cloud product credentials. If the Product Name value is MySQL, it means to query MySQL database credentials. If the Product Name value is Tdsql mysql, it means to query Tdsql (MySQL version) credentials.
func (GetSecretsSecretListOutput) ProjectId ¶ added in v0.1.8
func (o GetSecretsSecretListOutput) ProjectId() pulumi.IntOutput
When the credential type is SSH key pair credential, this field is valid and represents the item ID to which the SSH key pair belongs.
func (GetSecretsSecretListOutput) ResourceId ¶ added in v0.1.8
func (o GetSecretsSecretListOutput) ResourceId() pulumi.StringOutput
The cloud product instance ID number corresponding to the cloud product credentials.
func (GetSecretsSecretListOutput) ResourceName ¶ added in v0.1.8
func (o GetSecretsSecretListOutput) ResourceName() pulumi.StringOutput
When the credential type is SSH key pair credential, this field is valid and is used to represent the name of the SSH key pair credential.
func (GetSecretsSecretListOutput) RotationBeginTime ¶ added in v0.1.8
func (o GetSecretsSecretListOutput) RotationBeginTime() pulumi.StringOutput
The user specified rotation start time.
func (GetSecretsSecretListOutput) RotationFrequency ¶ added in v0.1.8
func (o GetSecretsSecretListOutput) RotationFrequency() pulumi.IntOutput
The frequency of rotation, in days, takes effect when rotation is on.
func (GetSecretsSecretListOutput) RotationStatus ¶ added in v0.1.8
func (o GetSecretsSecretListOutput) RotationStatus() pulumi.IntOutput
1: - Turn on the rotation; 0- No rotation Note: This field may return null, indicating that a valid value cannot be obtained.
func (GetSecretsSecretListOutput) SecretName ¶
func (o GetSecretsSecretListOutput) SecretName() pulumi.StringOutput
Secret name used to filter result.
func (GetSecretsSecretListOutput) SecretType ¶ added in v0.1.8
func (o GetSecretsSecretListOutput) SecretType() pulumi.IntOutput
0- represents user-defined credentials, defaults to 0. 1- represents the user's cloud product credentials. 2- represents SSH key pair credentials. 3- represents cloud API key pair credentials.
func (GetSecretsSecretListOutput) Status ¶
func (o GetSecretsSecretListOutput) Status() pulumi.StringOutput
Status of secret.
func (GetSecretsSecretListOutput) TargetUin ¶ added in v0.1.8
func (o GetSecretsSecretListOutput) TargetUin() pulumi.IntOutput
When the credential type is a cloud API key pair credential, this field is valid and is used to represent the user UIN to which the cloud API key pair belongs.
func (GetSecretsSecretListOutput) ToGetSecretsSecretListOutput ¶
func (o GetSecretsSecretListOutput) ToGetSecretsSecretListOutput() GetSecretsSecretListOutput
func (GetSecretsSecretListOutput) ToGetSecretsSecretListOutputWithContext ¶
func (o GetSecretsSecretListOutput) ToGetSecretsSecretListOutputWithContext(ctx context.Context) GetSecretsSecretListOutput
type GetServiceStatusArgs ¶ added in v0.1.8
type GetServiceStatusArgs struct { // Used to save results. ResultOutputFile *string `pulumi:"resultOutputFile"` }
A collection of arguments for invoking getServiceStatus.
type GetServiceStatusOutputArgs ¶ added in v0.1.8
type GetServiceStatusOutputArgs struct { // Used to save results. ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"` }
A collection of arguments for invoking getServiceStatus.
func (GetServiceStatusOutputArgs) ElementType ¶ added in v0.1.8
func (GetServiceStatusOutputArgs) ElementType() reflect.Type
type GetServiceStatusResult ¶ added in v0.1.8
type GetServiceStatusResult struct { // True means that the user can already use the key safe hosting function, false means that the user cannot use the key safe hosting function temporarily. AccessKeyEscrowEnabled bool `pulumi:"accessKeyEscrowEnabled"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // Service unavailability type: 0-Not purchased, 1-Normal, 2-Service suspended due to arrears, 3-Resource release. InvalidType int `pulumi:"invalidType"` ResultOutputFile *string `pulumi:"resultOutputFile"` // True means the service has been activated, false means the service has not been activated yet. ServiceEnabled bool `pulumi:"serviceEnabled"` }
A collection of values returned by getServiceStatus.
func GetServiceStatus ¶ added in v0.1.8
func GetServiceStatus(ctx *pulumi.Context, args *GetServiceStatusArgs, opts ...pulumi.InvokeOption) (*GetServiceStatusResult, error)
Use this data source to query detailed information of ssm serviceStatus
## 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.GetServiceStatus(ctx, nil, nil) if err != nil { return err } return nil }) }
```
type GetServiceStatusResultOutput ¶ added in v0.1.8
type GetServiceStatusResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getServiceStatus.
func GetServiceStatusOutput ¶ added in v0.1.8
func GetServiceStatusOutput(ctx *pulumi.Context, args GetServiceStatusOutputArgs, opts ...pulumi.InvokeOption) GetServiceStatusResultOutput
func (GetServiceStatusResultOutput) AccessKeyEscrowEnabled ¶ added in v0.1.8
func (o GetServiceStatusResultOutput) AccessKeyEscrowEnabled() pulumi.BoolOutput
True means that the user can already use the key safe hosting function, false means that the user cannot use the key safe hosting function temporarily.
func (GetServiceStatusResultOutput) ElementType ¶ added in v0.1.8
func (GetServiceStatusResultOutput) ElementType() reflect.Type
func (GetServiceStatusResultOutput) Id ¶ added in v0.1.8
func (o GetServiceStatusResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetServiceStatusResultOutput) InvalidType ¶ added in v0.1.8
func (o GetServiceStatusResultOutput) InvalidType() pulumi.IntOutput
Service unavailability type: 0-Not purchased, 1-Normal, 2-Service suspended due to arrears, 3-Resource release.
func (GetServiceStatusResultOutput) ResultOutputFile ¶ added in v0.1.8
func (o GetServiceStatusResultOutput) ResultOutputFile() pulumi.StringPtrOutput
func (GetServiceStatusResultOutput) ServiceEnabled ¶ added in v0.1.8
func (o GetServiceStatusResultOutput) ServiceEnabled() pulumi.BoolOutput
True means the service has been activated, false means the service has not been activated yet.
func (GetServiceStatusResultOutput) ToGetServiceStatusResultOutput ¶ added in v0.1.8
func (o GetServiceStatusResultOutput) ToGetServiceStatusResultOutput() GetServiceStatusResultOutput
func (GetServiceStatusResultOutput) ToGetServiceStatusResultOutputWithContext ¶ added in v0.1.8
func (o GetServiceStatusResultOutput) ToGetServiceStatusResultOutputWithContext(ctx context.Context) GetServiceStatusResultOutput
type GetSshKeyPairValueArgs ¶ added in v0.1.8
type GetSshKeyPairValueArgs struct { // Used to save results. ResultOutputFile *string `pulumi:"resultOutputFile"` // Secret name. SecretName *string `pulumi:"secretName"` // The key pair ID is the unique identifier of the key pair in the cloud server. SshKeyId *string `pulumi:"sshKeyId"` }
A collection of arguments for invoking getSshKeyPairValue.
type GetSshKeyPairValueOutputArgs ¶ added in v0.1.8
type GetSshKeyPairValueOutputArgs struct { // Used to save results. ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"` // Secret name. SecretName pulumi.StringPtrInput `pulumi:"secretName"` // The key pair ID is the unique identifier of the key pair in the cloud server. SshKeyId pulumi.StringPtrInput `pulumi:"sshKeyId"` }
A collection of arguments for invoking getSshKeyPairValue.
func (GetSshKeyPairValueOutputArgs) ElementType ¶ added in v0.1.8
func (GetSshKeyPairValueOutputArgs) ElementType() reflect.Type
type GetSshKeyPairValueResult ¶ added in v0.1.8
type GetSshKeyPairValueResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // Private key plain text, encoded using base64. PrivateKey string `pulumi:"privateKey"` // The project ID to which this key pair belongs. ProjectId int `pulumi:"projectId"` // Public key plain text, encoded using base64. PublicKey string `pulumi:"publicKey"` ResultOutputFile *string `pulumi:"resultOutputFile"` SecretName string `pulumi:"secretName"` // Description of the SSH key pair. Users can modify the description information of the key pair in the CVM console. SshKeyDescription string `pulumi:"sshKeyDescription"` SshKeyId string `pulumi:"sshKeyId"` // SSH key name. SshKeyName string `pulumi:"sshKeyName"` }
A collection of values returned by getSshKeyPairValue.
func GetSshKeyPairValue ¶ added in v0.1.8
func GetSshKeyPairValue(ctx *pulumi.Context, args *GetSshKeyPairValueArgs, opts ...pulumi.InvokeOption) (*GetSshKeyPairValueResult, error)
Use this data source to query detailed information of ssm sshKeyPairValue
> **NOTE:** Must set at least one of `secretName` or `sshKeyId`.
## 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.GetSshKeyPairValue(ctx, &ssm.GetSshKeyPairValueArgs{ SecretName: pulumi.StringRef("keep_terraform"), SshKeyId: pulumi.StringRef("skey-2ae2snwd"), }, nil) if err != nil { return err } return nil }) }
``` ### Or
```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.GetSshKeyPairValue(ctx, &ssm.GetSshKeyPairValueArgs{ SecretName: pulumi.StringRef("keep_terraform"), }, nil) if err != nil { return err } return nil }) }
``` ### Or
```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.GetSshKeyPairValue(ctx, &ssm.GetSshKeyPairValueArgs{ SshKeyId: pulumi.StringRef("skey-2ae2snwd"), }, nil) if err != nil { return err } return nil }) }
```
type GetSshKeyPairValueResultOutput ¶ added in v0.1.8
type GetSshKeyPairValueResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getSshKeyPairValue.
func GetSshKeyPairValueOutput ¶ added in v0.1.8
func GetSshKeyPairValueOutput(ctx *pulumi.Context, args GetSshKeyPairValueOutputArgs, opts ...pulumi.InvokeOption) GetSshKeyPairValueResultOutput
func (GetSshKeyPairValueResultOutput) ElementType ¶ added in v0.1.8
func (GetSshKeyPairValueResultOutput) ElementType() reflect.Type
func (GetSshKeyPairValueResultOutput) Id ¶ added in v0.1.8
func (o GetSshKeyPairValueResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetSshKeyPairValueResultOutput) PrivateKey ¶ added in v0.1.8
func (o GetSshKeyPairValueResultOutput) PrivateKey() pulumi.StringOutput
Private key plain text, encoded using base64.
func (GetSshKeyPairValueResultOutput) ProjectId ¶ added in v0.1.8
func (o GetSshKeyPairValueResultOutput) ProjectId() pulumi.IntOutput
The project ID to which this key pair belongs.
func (GetSshKeyPairValueResultOutput) PublicKey ¶ added in v0.1.8
func (o GetSshKeyPairValueResultOutput) PublicKey() pulumi.StringOutput
Public key plain text, encoded using base64.
func (GetSshKeyPairValueResultOutput) ResultOutputFile ¶ added in v0.1.8
func (o GetSshKeyPairValueResultOutput) ResultOutputFile() pulumi.StringPtrOutput
func (GetSshKeyPairValueResultOutput) SecretName ¶ added in v0.1.8
func (o GetSshKeyPairValueResultOutput) SecretName() pulumi.StringOutput
func (GetSshKeyPairValueResultOutput) SshKeyDescription ¶ added in v0.1.8
func (o GetSshKeyPairValueResultOutput) SshKeyDescription() pulumi.StringOutput
Description of the SSH key pair. Users can modify the description information of the key pair in the CVM console.
func (GetSshKeyPairValueResultOutput) SshKeyId ¶ added in v0.1.8
func (o GetSshKeyPairValueResultOutput) SshKeyId() pulumi.StringOutput
func (GetSshKeyPairValueResultOutput) SshKeyName ¶ added in v0.1.8
func (o GetSshKeyPairValueResultOutput) SshKeyName() pulumi.StringOutput
SSH key name.
func (GetSshKeyPairValueResultOutput) ToGetSshKeyPairValueResultOutput ¶ added in v0.1.8
func (o GetSshKeyPairValueResultOutput) ToGetSshKeyPairValueResultOutput() GetSshKeyPairValueResultOutput
func (GetSshKeyPairValueResultOutput) ToGetSshKeyPairValueResultOutputWithContext ¶ added in v0.1.8
func (o GetSshKeyPairValueResultOutput) ToGetSshKeyPairValueResultOutputWithContext(ctx context.Context) GetSshKeyPairValueResultOutput
type ProductSecret ¶ added in v0.1.8
type ProductSecret struct { pulumi.CustomResourceState // Credential creation time in UNIX timestamp format. CreateTime pulumi.IntOutput `pulumi:"createTime"` // Description, which is used to describe the purpose in detail and can contain up to 2,048 bytes. Description pulumi.StringPtrOutput `pulumi:"description"` // Domain name of the account in the form of IP. You can enter `%`. Domains pulumi.StringArrayOutput `pulumi:"domains"` // Specifies whether to enable rotation, when secret status is `Disabled`, rotation will be disabled. `True` - enable, `False` - do not enable. If this parameter is not specified, `False` will be used by default. EnableRotation pulumi.BoolOutput `pulumi:"enableRotation"` // Tencent Cloud service instance ID. InstanceId pulumi.StringOutput `pulumi:"instanceId"` // Specifies the KMS CMK that encrypts the credential. 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"` // List of permissions that need to be granted when the credential is bound to a Tencent Cloud service. PrivilegesLists ProductSecretPrivilegesListArrayOutput `pulumi:"privilegesLists"` // Name of the Tencent Cloud service bound to the credential, such as `Mysql`, `Tdsql-mysql`, `Tdsql_C_Mysql`. you can use dataSource `Ssm.getProducts` to query supported products. ProductName pulumi.StringOutput `pulumi:"productName"` // User-Defined rotation start time in the format of 2006-01-02 15:04:05.When `EnableRotation` is `True`, this parameter is required. RotationBeginTime pulumi.StringOutput `pulumi:"rotationBeginTime"` // Rotation frequency in days. Default value: 1 day. RotationFrequency pulumi.IntOutput `pulumi:"rotationFrequency"` // Credential 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"` // Enable or Disable Secret. Valid values is `Enabled` or `Disabled`. Default is `Enabled`. Status pulumi.StringOutput `pulumi:"status"` // Tags of secret. Tags pulumi.MapOutput `pulumi:"tags"` // Prefix of the user account name, which is specified by you and can contain up to 8 characters.Supported character sets include:Digits: [0, 9].Lowercase letters: [a, z].Uppercase letters: [A, Z].Special symbols: underscore.The prefix must begin with a letter. UserNamePrefix pulumi.StringOutput `pulumi:"userNamePrefix"` }
Provides a resource to create a ssm productSecret
## Example Usage ### Ssm secret for mysql
```go package main
import (
"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Availability" "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/Availability" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Kms" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Mysql" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Security" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Ssm" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Subnet" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { zones, err := Availability.GetZonesByProduct(ctx, &availability.GetZonesByProductArgs{ Product: "cdb", }, nil) if err != nil { return err } vpc, err := Vpc.NewInstance(ctx, "vpc", &Vpc.InstanceArgs{ CidrBlock: pulumi.String("10.0.0.0/16"), }) if err != nil { return err } subnet, err := Subnet.NewInstance(ctx, "subnet", &Subnet.InstanceArgs{ AvailabilityZone: pulumi.String(zones.Zones[0].Name), VpcId: vpc.ID(), CidrBlock: pulumi.String("10.0.0.0/16"), IsMulticast: pulumi.Bool(false), }) if err != nil { return err } securityGroup, err := Security.NewGroup(ctx, "securityGroup", &Security.GroupArgs{ Description: pulumi.String("desc."), }) if err != nil { return err } exampleInstance, err := Mysql.NewInstance(ctx, "exampleInstance", &Mysql.InstanceArgs{ InternetService: pulumi.Int(1), EngineVersion: pulumi.String("5.7"), ChargeType: pulumi.String("POSTPAID"), RootPassword: pulumi.String("PassWord123"), SlaveDeployMode: pulumi.Int(0), AvailabilityZone: pulumi.String(zones.Zones[0].Name), SlaveSyncMode: pulumi.Int(1), InstanceName: pulumi.String("tf-example"), MemSize: pulumi.Int(4000), VolumeSize: pulumi.Int(200), VpcId: vpc.ID(), SubnetId: subnet.ID(), IntranetPort: pulumi.Int(3306), SecurityGroups: pulumi.StringArray{ securityGroup.ID(), }, Tags: pulumi.AnyMap{ "createBy": pulumi.Any("terraform"), }, Parameters: pulumi.AnyMap{ "character_set_server": pulumi.Any("utf8"), "max_connections": pulumi.Any("1000"), }, }) if err != nil { return err } exampleKey, err := Kms.NewKey(ctx, "exampleKey", &Kms.KeyArgs{ Alias: pulumi.String("tf-example-kms-key"), Description: pulumi.String("example of kms key"), KeyRotationEnabled: pulumi.Bool(false), IsEnabled: pulumi.Bool(true), Tags: pulumi.AnyMap{ "createdBy": pulumi.Any("terraform"), }, }) if err != nil { return err } _, err = Ssm.NewProductSecret(ctx, "exampleProductSecret", &Ssm.ProductSecretArgs{ SecretName: pulumi.String("tf-example"), UserNamePrefix: pulumi.String("prefix"), ProductName: pulumi.String("Mysql"), InstanceId: exampleInstance.ID(), Domains: pulumi.StringArray{ pulumi.String("10.0.0.0"), }, PrivilegesLists: ssm.ProductSecretPrivilegesListArray{ &ssm.ProductSecretPrivilegesListArgs{ PrivilegeName: pulumi.String("GlobalPrivileges"), Privileges: pulumi.StringArray{ pulumi.String("ALTER ROUTINE"), }, }, }, Description: pulumi.String("for ssm product test"), KmsKeyId: exampleKey.ID(), Status: pulumi.String("Enabled"), EnableRotation: pulumi.Bool(true), RotationBeginTime: pulumi.String("2023-08-05 20:54:33"), RotationFrequency: pulumi.Int(30), Tags: pulumi.AnyMap{ "createdBy": pulumi.Any("terraform"), }, }) if err != nil { return err } return nil }) }
``` ### Ssm secret for tdsql-c-mysql
```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.NewProductSecret(ctx, "example", &Ssm.ProductSecretArgs{ SecretName: pulumi.String("tf-tdsql-c-example"), UserNamePrefix: pulumi.String("prefix"), ProductName: pulumi.String("Tdsql_C_Mysql"), InstanceId: pulumi.String("cynosdbmysql-xxxxxx"), Domains: pulumi.StringArray{ pulumi.String("%"), }, PrivilegesLists: ssm.ProductSecretPrivilegesListArray{ &ssm.ProductSecretPrivilegesListArgs{ PrivilegeName: pulumi.String("GlobalPrivileges"), Privileges: pulumi.StringArray{ pulumi.String("ALTER"), pulumi.String("CREATE"), pulumi.String("DELETE"), }, }, &ssm.ProductSecretPrivilegesListArgs{ PrivilegeName: pulumi.String("DatabasePrivileges"), Database: pulumi.String("test"), Privileges: pulumi.StringArray{ pulumi.String("ALTER"), pulumi.String("CREATE"), pulumi.String("DELETE"), pulumi.String("SELECT"), }, }, }, Description: pulumi.String("test tdsql-c"), KmsKeyId: nil, Status: pulumi.String("Enabled"), EnableRotation: pulumi.Bool(false), RotationBeginTime: pulumi.String("2023-08-05 20:54:33"), RotationFrequency: pulumi.Int(30), Tags: pulumi.AnyMap{ "createdBy": pulumi.Any("terraform"), }, }) if err != nil { return err } return nil }) }
```
func GetProductSecret ¶ added in v0.1.8
func GetProductSecret(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ProductSecretState, opts ...pulumi.ResourceOption) (*ProductSecret, error)
GetProductSecret gets an existing ProductSecret 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 NewProductSecret ¶ added in v0.1.8
func NewProductSecret(ctx *pulumi.Context, name string, args *ProductSecretArgs, opts ...pulumi.ResourceOption) (*ProductSecret, error)
NewProductSecret registers a new resource with the given unique name, arguments, and options.
func (*ProductSecret) ElementType ¶ added in v0.1.8
func (*ProductSecret) ElementType() reflect.Type
func (*ProductSecret) ToProductSecretOutput ¶ added in v0.1.8
func (i *ProductSecret) ToProductSecretOutput() ProductSecretOutput
func (*ProductSecret) ToProductSecretOutputWithContext ¶ added in v0.1.8
func (i *ProductSecret) ToProductSecretOutputWithContext(ctx context.Context) ProductSecretOutput
type ProductSecretArgs ¶ added in v0.1.8
type ProductSecretArgs struct { // Description, which is used to describe the purpose in detail and can contain up to 2,048 bytes. Description pulumi.StringPtrInput // Domain name of the account in the form of IP. You can enter `%`. Domains pulumi.StringArrayInput // Specifies whether to enable rotation, when secret status is `Disabled`, rotation will be disabled. `True` - enable, `False` - do not enable. If this parameter is not specified, `False` will be used by default. EnableRotation pulumi.BoolPtrInput // Tencent Cloud service instance ID. InstanceId pulumi.StringInput // Specifies the KMS CMK that encrypts the credential. 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 // List of permissions that need to be granted when the credential is bound to a Tencent Cloud service. PrivilegesLists ProductSecretPrivilegesListArrayInput // Name of the Tencent Cloud service bound to the credential, such as `Mysql`, `Tdsql-mysql`, `Tdsql_C_Mysql`. you can use dataSource `Ssm.getProducts` to query supported products. ProductName pulumi.StringInput // User-Defined rotation start time in the format of 2006-01-02 15:04:05.When `EnableRotation` is `True`, this parameter is required. RotationBeginTime pulumi.StringPtrInput // Rotation frequency in days. Default value: 1 day. RotationFrequency pulumi.IntPtrInput // Credential 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 // Enable or Disable Secret. Valid values is `Enabled` or `Disabled`. Default is `Enabled`. Status pulumi.StringPtrInput // Tags of secret. Tags pulumi.MapInput // Prefix of the user account name, which is specified by you and can contain up to 8 characters.Supported character sets include:Digits: [0, 9].Lowercase letters: [a, z].Uppercase letters: [A, Z].Special symbols: underscore.The prefix must begin with a letter. UserNamePrefix pulumi.StringInput }
The set of arguments for constructing a ProductSecret resource.
func (ProductSecretArgs) ElementType ¶ added in v0.1.8
func (ProductSecretArgs) ElementType() reflect.Type
type ProductSecretArray ¶ added in v0.1.8
type ProductSecretArray []ProductSecretInput
func (ProductSecretArray) ElementType ¶ added in v0.1.8
func (ProductSecretArray) ElementType() reflect.Type
func (ProductSecretArray) ToProductSecretArrayOutput ¶ added in v0.1.8
func (i ProductSecretArray) ToProductSecretArrayOutput() ProductSecretArrayOutput
func (ProductSecretArray) ToProductSecretArrayOutputWithContext ¶ added in v0.1.8
func (i ProductSecretArray) ToProductSecretArrayOutputWithContext(ctx context.Context) ProductSecretArrayOutput
type ProductSecretArrayInput ¶ added in v0.1.8
type ProductSecretArrayInput interface { pulumi.Input ToProductSecretArrayOutput() ProductSecretArrayOutput ToProductSecretArrayOutputWithContext(context.Context) ProductSecretArrayOutput }
ProductSecretArrayInput is an input type that accepts ProductSecretArray and ProductSecretArrayOutput values. You can construct a concrete instance of `ProductSecretArrayInput` via:
ProductSecretArray{ ProductSecretArgs{...} }
type ProductSecretArrayOutput ¶ added in v0.1.8
type ProductSecretArrayOutput struct{ *pulumi.OutputState }
func (ProductSecretArrayOutput) ElementType ¶ added in v0.1.8
func (ProductSecretArrayOutput) ElementType() reflect.Type
func (ProductSecretArrayOutput) Index ¶ added in v0.1.8
func (o ProductSecretArrayOutput) Index(i pulumi.IntInput) ProductSecretOutput
func (ProductSecretArrayOutput) ToProductSecretArrayOutput ¶ added in v0.1.8
func (o ProductSecretArrayOutput) ToProductSecretArrayOutput() ProductSecretArrayOutput
func (ProductSecretArrayOutput) ToProductSecretArrayOutputWithContext ¶ added in v0.1.8
func (o ProductSecretArrayOutput) ToProductSecretArrayOutputWithContext(ctx context.Context) ProductSecretArrayOutput
type ProductSecretInput ¶ added in v0.1.8
type ProductSecretInput interface { pulumi.Input ToProductSecretOutput() ProductSecretOutput ToProductSecretOutputWithContext(ctx context.Context) ProductSecretOutput }
type ProductSecretMap ¶ added in v0.1.8
type ProductSecretMap map[string]ProductSecretInput
func (ProductSecretMap) ElementType ¶ added in v0.1.8
func (ProductSecretMap) ElementType() reflect.Type
func (ProductSecretMap) ToProductSecretMapOutput ¶ added in v0.1.8
func (i ProductSecretMap) ToProductSecretMapOutput() ProductSecretMapOutput
func (ProductSecretMap) ToProductSecretMapOutputWithContext ¶ added in v0.1.8
func (i ProductSecretMap) ToProductSecretMapOutputWithContext(ctx context.Context) ProductSecretMapOutput
type ProductSecretMapInput ¶ added in v0.1.8
type ProductSecretMapInput interface { pulumi.Input ToProductSecretMapOutput() ProductSecretMapOutput ToProductSecretMapOutputWithContext(context.Context) ProductSecretMapOutput }
ProductSecretMapInput is an input type that accepts ProductSecretMap and ProductSecretMapOutput values. You can construct a concrete instance of `ProductSecretMapInput` via:
ProductSecretMap{ "key": ProductSecretArgs{...} }
type ProductSecretMapOutput ¶ added in v0.1.8
type ProductSecretMapOutput struct{ *pulumi.OutputState }
func (ProductSecretMapOutput) ElementType ¶ added in v0.1.8
func (ProductSecretMapOutput) ElementType() reflect.Type
func (ProductSecretMapOutput) MapIndex ¶ added in v0.1.8
func (o ProductSecretMapOutput) MapIndex(k pulumi.StringInput) ProductSecretOutput
func (ProductSecretMapOutput) ToProductSecretMapOutput ¶ added in v0.1.8
func (o ProductSecretMapOutput) ToProductSecretMapOutput() ProductSecretMapOutput
func (ProductSecretMapOutput) ToProductSecretMapOutputWithContext ¶ added in v0.1.8
func (o ProductSecretMapOutput) ToProductSecretMapOutputWithContext(ctx context.Context) ProductSecretMapOutput
type ProductSecretOutput ¶ added in v0.1.8
type ProductSecretOutput struct{ *pulumi.OutputState }
func (ProductSecretOutput) CreateTime ¶ added in v0.1.8
func (o ProductSecretOutput) CreateTime() pulumi.IntOutput
Credential creation time in UNIX timestamp format.
func (ProductSecretOutput) Description ¶ added in v0.1.8
func (o ProductSecretOutput) Description() pulumi.StringPtrOutput
Description, which is used to describe the purpose in detail and can contain up to 2,048 bytes.
func (ProductSecretOutput) Domains ¶ added in v0.1.8
func (o ProductSecretOutput) Domains() pulumi.StringArrayOutput
Domain name of the account in the form of IP. You can enter `%`.
func (ProductSecretOutput) ElementType ¶ added in v0.1.8
func (ProductSecretOutput) ElementType() reflect.Type
func (ProductSecretOutput) EnableRotation ¶ added in v0.1.8
func (o ProductSecretOutput) EnableRotation() pulumi.BoolOutput
Specifies whether to enable rotation, when secret status is `Disabled`, rotation will be disabled. `True` - enable, `False` - do not enable. If this parameter is not specified, `False` will be used by default.
func (ProductSecretOutput) InstanceId ¶ added in v0.1.8
func (o ProductSecretOutput) InstanceId() pulumi.StringOutput
Tencent Cloud service instance ID.
func (ProductSecretOutput) KmsKeyId ¶ added in v0.1.8
func (o ProductSecretOutput) KmsKeyId() pulumi.StringPtrOutput
Specifies the KMS CMK that encrypts the credential. 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 (ProductSecretOutput) PrivilegesLists ¶ added in v0.1.8
func (o ProductSecretOutput) PrivilegesLists() ProductSecretPrivilegesListArrayOutput
List of permissions that need to be granted when the credential is bound to a Tencent Cloud service.
func (ProductSecretOutput) ProductName ¶ added in v0.1.8
func (o ProductSecretOutput) ProductName() pulumi.StringOutput
Name of the Tencent Cloud service bound to the credential, such as `Mysql`, `Tdsql-mysql`, `Tdsql_C_Mysql`. you can use dataSource `Ssm.getProducts` to query supported products.
func (ProductSecretOutput) RotationBeginTime ¶ added in v0.1.8
func (o ProductSecretOutput) RotationBeginTime() pulumi.StringOutput
User-Defined rotation start time in the format of 2006-01-02 15:04:05.When `EnableRotation` is `True`, this parameter is required.
func (ProductSecretOutput) RotationFrequency ¶ added in v0.1.8
func (o ProductSecretOutput) RotationFrequency() pulumi.IntOutput
Rotation frequency in days. Default value: 1 day.
func (ProductSecretOutput) SecretName ¶ added in v0.1.8
func (o ProductSecretOutput) SecretName() pulumi.StringOutput
Credential 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 (ProductSecretOutput) SecretType ¶ added in v0.1.8
func (o ProductSecretOutput) 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 (ProductSecretOutput) Status ¶ added in v0.1.8
func (o ProductSecretOutput) Status() pulumi.StringOutput
Enable or Disable Secret. Valid values is `Enabled` or `Disabled`. Default is `Enabled`.
func (ProductSecretOutput) Tags ¶ added in v0.1.8
func (o ProductSecretOutput) Tags() pulumi.MapOutput
Tags of secret.
func (ProductSecretOutput) ToProductSecretOutput ¶ added in v0.1.8
func (o ProductSecretOutput) ToProductSecretOutput() ProductSecretOutput
func (ProductSecretOutput) ToProductSecretOutputWithContext ¶ added in v0.1.8
func (o ProductSecretOutput) ToProductSecretOutputWithContext(ctx context.Context) ProductSecretOutput
func (ProductSecretOutput) UserNamePrefix ¶ added in v0.1.8
func (o ProductSecretOutput) UserNamePrefix() pulumi.StringOutput
Prefix of the user account name, which is specified by you and can contain up to 8 characters.Supported character sets include:Digits: [0, 9].Lowercase letters: [a, z].Uppercase letters: [A, Z].Special symbols: underscore.The prefix must begin with a letter.
type ProductSecretPrivilegesList ¶ added in v0.1.8
type ProductSecretPrivilegesList struct { // This value takes effect only when `PrivilegeName` is `ColumnPrivileges`, and the following parameters are required in this case:Database: explicitly indicate the database instance.TableName: explicitly indicate the table. ColumnName *string `pulumi:"columnName"` // This value takes effect only when `PrivilegeName` is `DatabasePrivileges`. Database *string `pulumi:"database"` // Permission name. Valid values: `GlobalPrivileges`, `DatabasePrivileges`, `TablePrivileges`, `ColumnPrivileges`. When the permission is `DatabasePrivileges`, the database name must be specified by the `Database` parameter; When the permission is `TablePrivileges`, the database name and the table name in the database must be specified by the `Database` and `TableName` parameters; When the permission is `ColumnPrivileges`, the database name, table name in the database, and column name in the table must be specified by the `Database`, `TableName`, and `ColumnName` parameters. PrivilegeName string `pulumi:"privilegeName"` // Permission list. For the `Mysql` service, optional permission values are: 1. Valid values of `GlobalPrivileges`: SELECT,INSERT,UPDATE,DELETE,CREATE, PROCESS, DROP,REFERENCES,INDEX,ALTER,SHOW DATABASES,CREATE TEMPORARY TABLES,LOCK TABLES,EXECUTE,CREATE VIEW,SHOW VIEW,CREATE ROUTINE,ALTER ROUTINE,EVENT,TRIGGER. Note: if this parameter is not passed in, it means to clear the permission. 2. Valid values of `DatabasePrivileges`: SELECT,INSERT,UPDATE,DELETE,CREATE, DROP,REFERENCES,INDEX,ALTER,CREATE TEMPORARY TABLES,LOCK TABLES,EXECUTE,CREATE VIEW,SHOW VIEW,CREATE ROUTINE,ALTER ROUTINE,EVENT,TRIGGER. Note: if this parameter is not passed in, it means to clear the permission. 3. Valid values of `TablePrivileges`: SELECT,INSERT,UPDATE,DELETE,CREATE, DROP,REFERENCES,INDEX,ALTER,CREATE VIEW,SHOW VIEW, TRIGGER. Note: if this parameter is not passed in, it means to clear the permission. 4. Valid values of `ColumnPrivileges`: SELECT,INSERT,UPDATE,REFERENCES.Note: if this parameter is not passed in, it means to clear the permission. Privileges []string `pulumi:"privileges"` // This value takes effect only when `PrivilegeName` is `TablePrivileges`, and the `Database` parameter is required in this case to explicitly indicate the database instance. TableName *string `pulumi:"tableName"` }
type ProductSecretPrivilegesListArgs ¶ added in v0.1.8
type ProductSecretPrivilegesListArgs struct { // This value takes effect only when `PrivilegeName` is `ColumnPrivileges`, and the following parameters are required in this case:Database: explicitly indicate the database instance.TableName: explicitly indicate the table. ColumnName pulumi.StringPtrInput `pulumi:"columnName"` // This value takes effect only when `PrivilegeName` is `DatabasePrivileges`. Database pulumi.StringPtrInput `pulumi:"database"` // Permission name. Valid values: `GlobalPrivileges`, `DatabasePrivileges`, `TablePrivileges`, `ColumnPrivileges`. When the permission is `DatabasePrivileges`, the database name must be specified by the `Database` parameter; When the permission is `TablePrivileges`, the database name and the table name in the database must be specified by the `Database` and `TableName` parameters; When the permission is `ColumnPrivileges`, the database name, table name in the database, and column name in the table must be specified by the `Database`, `TableName`, and `ColumnName` parameters. PrivilegeName pulumi.StringInput `pulumi:"privilegeName"` // Permission list. For the `Mysql` service, optional permission values are: 1. Valid values of `GlobalPrivileges`: SELECT,INSERT,UPDATE,DELETE,CREATE, PROCESS, DROP,REFERENCES,INDEX,ALTER,SHOW DATABASES,CREATE TEMPORARY TABLES,LOCK TABLES,EXECUTE,CREATE VIEW,SHOW VIEW,CREATE ROUTINE,ALTER ROUTINE,EVENT,TRIGGER. Note: if this parameter is not passed in, it means to clear the permission. 2. Valid values of `DatabasePrivileges`: SELECT,INSERT,UPDATE,DELETE,CREATE, DROP,REFERENCES,INDEX,ALTER,CREATE TEMPORARY TABLES,LOCK TABLES,EXECUTE,CREATE VIEW,SHOW VIEW,CREATE ROUTINE,ALTER ROUTINE,EVENT,TRIGGER. Note: if this parameter is not passed in, it means to clear the permission. 3. Valid values of `TablePrivileges`: SELECT,INSERT,UPDATE,DELETE,CREATE, DROP,REFERENCES,INDEX,ALTER,CREATE VIEW,SHOW VIEW, TRIGGER. Note: if this parameter is not passed in, it means to clear the permission. 4. Valid values of `ColumnPrivileges`: SELECT,INSERT,UPDATE,REFERENCES.Note: if this parameter is not passed in, it means to clear the permission. Privileges pulumi.StringArrayInput `pulumi:"privileges"` // This value takes effect only when `PrivilegeName` is `TablePrivileges`, and the `Database` parameter is required in this case to explicitly indicate the database instance. TableName pulumi.StringPtrInput `pulumi:"tableName"` }
func (ProductSecretPrivilegesListArgs) ElementType ¶ added in v0.1.8
func (ProductSecretPrivilegesListArgs) ElementType() reflect.Type
func (ProductSecretPrivilegesListArgs) ToProductSecretPrivilegesListOutput ¶ added in v0.1.8
func (i ProductSecretPrivilegesListArgs) ToProductSecretPrivilegesListOutput() ProductSecretPrivilegesListOutput
func (ProductSecretPrivilegesListArgs) ToProductSecretPrivilegesListOutputWithContext ¶ added in v0.1.8
func (i ProductSecretPrivilegesListArgs) ToProductSecretPrivilegesListOutputWithContext(ctx context.Context) ProductSecretPrivilegesListOutput
type ProductSecretPrivilegesListArray ¶ added in v0.1.8
type ProductSecretPrivilegesListArray []ProductSecretPrivilegesListInput
func (ProductSecretPrivilegesListArray) ElementType ¶ added in v0.1.8
func (ProductSecretPrivilegesListArray) ElementType() reflect.Type
func (ProductSecretPrivilegesListArray) ToProductSecretPrivilegesListArrayOutput ¶ added in v0.1.8
func (i ProductSecretPrivilegesListArray) ToProductSecretPrivilegesListArrayOutput() ProductSecretPrivilegesListArrayOutput
func (ProductSecretPrivilegesListArray) ToProductSecretPrivilegesListArrayOutputWithContext ¶ added in v0.1.8
func (i ProductSecretPrivilegesListArray) ToProductSecretPrivilegesListArrayOutputWithContext(ctx context.Context) ProductSecretPrivilegesListArrayOutput
type ProductSecretPrivilegesListArrayInput ¶ added in v0.1.8
type ProductSecretPrivilegesListArrayInput interface { pulumi.Input ToProductSecretPrivilegesListArrayOutput() ProductSecretPrivilegesListArrayOutput ToProductSecretPrivilegesListArrayOutputWithContext(context.Context) ProductSecretPrivilegesListArrayOutput }
ProductSecretPrivilegesListArrayInput is an input type that accepts ProductSecretPrivilegesListArray and ProductSecretPrivilegesListArrayOutput values. You can construct a concrete instance of `ProductSecretPrivilegesListArrayInput` via:
ProductSecretPrivilegesListArray{ ProductSecretPrivilegesListArgs{...} }
type ProductSecretPrivilegesListArrayOutput ¶ added in v0.1.8
type ProductSecretPrivilegesListArrayOutput struct{ *pulumi.OutputState }
func (ProductSecretPrivilegesListArrayOutput) ElementType ¶ added in v0.1.8
func (ProductSecretPrivilegesListArrayOutput) ElementType() reflect.Type
func (ProductSecretPrivilegesListArrayOutput) ToProductSecretPrivilegesListArrayOutput ¶ added in v0.1.8
func (o ProductSecretPrivilegesListArrayOutput) ToProductSecretPrivilegesListArrayOutput() ProductSecretPrivilegesListArrayOutput
func (ProductSecretPrivilegesListArrayOutput) ToProductSecretPrivilegesListArrayOutputWithContext ¶ added in v0.1.8
func (o ProductSecretPrivilegesListArrayOutput) ToProductSecretPrivilegesListArrayOutputWithContext(ctx context.Context) ProductSecretPrivilegesListArrayOutput
type ProductSecretPrivilegesListInput ¶ added in v0.1.8
type ProductSecretPrivilegesListInput interface { pulumi.Input ToProductSecretPrivilegesListOutput() ProductSecretPrivilegesListOutput ToProductSecretPrivilegesListOutputWithContext(context.Context) ProductSecretPrivilegesListOutput }
ProductSecretPrivilegesListInput is an input type that accepts ProductSecretPrivilegesListArgs and ProductSecretPrivilegesListOutput values. You can construct a concrete instance of `ProductSecretPrivilegesListInput` via:
ProductSecretPrivilegesListArgs{...}
type ProductSecretPrivilegesListOutput ¶ added in v0.1.8
type ProductSecretPrivilegesListOutput struct{ *pulumi.OutputState }
func (ProductSecretPrivilegesListOutput) ColumnName ¶ added in v0.1.8
func (o ProductSecretPrivilegesListOutput) ColumnName() pulumi.StringPtrOutput
This value takes effect only when `PrivilegeName` is `ColumnPrivileges`, and the following parameters are required in this case:Database: explicitly indicate the database instance.TableName: explicitly indicate the table.
func (ProductSecretPrivilegesListOutput) Database ¶ added in v0.1.8
func (o ProductSecretPrivilegesListOutput) Database() pulumi.StringPtrOutput
This value takes effect only when `PrivilegeName` is `DatabasePrivileges`.
func (ProductSecretPrivilegesListOutput) ElementType ¶ added in v0.1.8
func (ProductSecretPrivilegesListOutput) ElementType() reflect.Type
func (ProductSecretPrivilegesListOutput) PrivilegeName ¶ added in v0.1.8
func (o ProductSecretPrivilegesListOutput) PrivilegeName() pulumi.StringOutput
Permission name. Valid values: `GlobalPrivileges`, `DatabasePrivileges`, `TablePrivileges`, `ColumnPrivileges`. When the permission is `DatabasePrivileges`, the database name must be specified by the `Database` parameter; When the permission is `TablePrivileges`, the database name and the table name in the database must be specified by the `Database` and `TableName` parameters; When the permission is `ColumnPrivileges`, the database name, table name in the database, and column name in the table must be specified by the `Database`, `TableName`, and `ColumnName` parameters.
func (ProductSecretPrivilegesListOutput) Privileges ¶ added in v0.1.8
func (o ProductSecretPrivilegesListOutput) Privileges() pulumi.StringArrayOutput
Permission list. For the `Mysql` service, optional permission values are: 1. Valid values of `GlobalPrivileges`: SELECT,INSERT,UPDATE,DELETE,CREATE, PROCESS, DROP,REFERENCES,INDEX,ALTER,SHOW DATABASES,CREATE TEMPORARY TABLES,LOCK TABLES,EXECUTE,CREATE VIEW,SHOW VIEW,CREATE ROUTINE,ALTER ROUTINE,EVENT,TRIGGER. Note: if this parameter is not passed in, it means to clear the permission. 2. Valid values of `DatabasePrivileges`: SELECT,INSERT,UPDATE,DELETE,CREATE, DROP,REFERENCES,INDEX,ALTER,CREATE TEMPORARY TABLES,LOCK TABLES,EXECUTE,CREATE VIEW,SHOW VIEW,CREATE ROUTINE,ALTER ROUTINE,EVENT,TRIGGER. Note: if this parameter is not passed in, it means to clear the permission. 3. Valid values of `TablePrivileges`: SELECT,INSERT,UPDATE,DELETE,CREATE, DROP,REFERENCES,INDEX,ALTER,CREATE VIEW,SHOW VIEW, TRIGGER. Note: if this parameter is not passed in, it means to clear the permission. 4. Valid values of `ColumnPrivileges`: SELECT,INSERT,UPDATE,REFERENCES.Note: if this parameter is not passed in, it means to clear the permission.
func (ProductSecretPrivilegesListOutput) TableName ¶ added in v0.1.8
func (o ProductSecretPrivilegesListOutput) TableName() pulumi.StringPtrOutput
This value takes effect only when `PrivilegeName` is `TablePrivileges`, and the `Database` parameter is required in this case to explicitly indicate the database instance.
func (ProductSecretPrivilegesListOutput) ToProductSecretPrivilegesListOutput ¶ added in v0.1.8
func (o ProductSecretPrivilegesListOutput) ToProductSecretPrivilegesListOutput() ProductSecretPrivilegesListOutput
func (ProductSecretPrivilegesListOutput) ToProductSecretPrivilegesListOutputWithContext ¶ added in v0.1.8
func (o ProductSecretPrivilegesListOutput) ToProductSecretPrivilegesListOutputWithContext(ctx context.Context) ProductSecretPrivilegesListOutput
type ProductSecretState ¶ added in v0.1.8
type ProductSecretState struct { // Credential creation time in UNIX timestamp format. CreateTime pulumi.IntPtrInput // Description, which is used to describe the purpose in detail and can contain up to 2,048 bytes. Description pulumi.StringPtrInput // Domain name of the account in the form of IP. You can enter `%`. Domains pulumi.StringArrayInput // Specifies whether to enable rotation, when secret status is `Disabled`, rotation will be disabled. `True` - enable, `False` - do not enable. If this parameter is not specified, `False` will be used by default. EnableRotation pulumi.BoolPtrInput // Tencent Cloud service instance ID. InstanceId pulumi.StringPtrInput // Specifies the KMS CMK that encrypts the credential. 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 // List of permissions that need to be granted when the credential is bound to a Tencent Cloud service. PrivilegesLists ProductSecretPrivilegesListArrayInput // Name of the Tencent Cloud service bound to the credential, such as `Mysql`, `Tdsql-mysql`, `Tdsql_C_Mysql`. you can use dataSource `Ssm.getProducts` to query supported products. ProductName pulumi.StringPtrInput // User-Defined rotation start time in the format of 2006-01-02 15:04:05.When `EnableRotation` is `True`, this parameter is required. RotationBeginTime pulumi.StringPtrInput // Rotation frequency in days. Default value: 1 day. RotationFrequency pulumi.IntPtrInput // Credential 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 // Enable or Disable Secret. Valid values is `Enabled` or `Disabled`. Default is `Enabled`. Status pulumi.StringPtrInput // Tags of secret. Tags pulumi.MapInput // Prefix of the user account name, which is specified by you and can contain up to 8 characters.Supported character sets include:Digits: [0, 9].Lowercase letters: [a, z].Uppercase letters: [A, Z].Special symbols: underscore.The prefix must begin with a letter. UserNamePrefix pulumi.StringPtrInput }
func (ProductSecretState) ElementType ¶ added in v0.1.8
func (ProductSecretState) ElementType() reflect.Type
type RotateProductSecret ¶ added in v0.1.8
type RotateProductSecret struct { pulumi.CustomResourceState // Secret name. SecretName pulumi.StringOutput `pulumi:"secretName"` }
Provides a resource to create a ssm rotateProductSecret
## 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 { _, err := Ssm.NewRotateProductSecret(ctx, "example", &Ssm.RotateProductSecretArgs{ SecretName: pulumi.String("tf_example"), }) if err != nil { return err } return nil }) }
```
func GetRotateProductSecret ¶ added in v0.1.8
func GetRotateProductSecret(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RotateProductSecretState, opts ...pulumi.ResourceOption) (*RotateProductSecret, error)
GetRotateProductSecret gets an existing RotateProductSecret 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 NewRotateProductSecret ¶ added in v0.1.8
func NewRotateProductSecret(ctx *pulumi.Context, name string, args *RotateProductSecretArgs, opts ...pulumi.ResourceOption) (*RotateProductSecret, error)
NewRotateProductSecret registers a new resource with the given unique name, arguments, and options.
func (*RotateProductSecret) ElementType ¶ added in v0.1.8
func (*RotateProductSecret) ElementType() reflect.Type
func (*RotateProductSecret) ToRotateProductSecretOutput ¶ added in v0.1.8
func (i *RotateProductSecret) ToRotateProductSecretOutput() RotateProductSecretOutput
func (*RotateProductSecret) ToRotateProductSecretOutputWithContext ¶ added in v0.1.8
func (i *RotateProductSecret) ToRotateProductSecretOutputWithContext(ctx context.Context) RotateProductSecretOutput
type RotateProductSecretArgs ¶ added in v0.1.8
type RotateProductSecretArgs struct { // Secret name. SecretName pulumi.StringInput }
The set of arguments for constructing a RotateProductSecret resource.
func (RotateProductSecretArgs) ElementType ¶ added in v0.1.8
func (RotateProductSecretArgs) ElementType() reflect.Type
type RotateProductSecretArray ¶ added in v0.1.8
type RotateProductSecretArray []RotateProductSecretInput
func (RotateProductSecretArray) ElementType ¶ added in v0.1.8
func (RotateProductSecretArray) ElementType() reflect.Type
func (RotateProductSecretArray) ToRotateProductSecretArrayOutput ¶ added in v0.1.8
func (i RotateProductSecretArray) ToRotateProductSecretArrayOutput() RotateProductSecretArrayOutput
func (RotateProductSecretArray) ToRotateProductSecretArrayOutputWithContext ¶ added in v0.1.8
func (i RotateProductSecretArray) ToRotateProductSecretArrayOutputWithContext(ctx context.Context) RotateProductSecretArrayOutput
type RotateProductSecretArrayInput ¶ added in v0.1.8
type RotateProductSecretArrayInput interface { pulumi.Input ToRotateProductSecretArrayOutput() RotateProductSecretArrayOutput ToRotateProductSecretArrayOutputWithContext(context.Context) RotateProductSecretArrayOutput }
RotateProductSecretArrayInput is an input type that accepts RotateProductSecretArray and RotateProductSecretArrayOutput values. You can construct a concrete instance of `RotateProductSecretArrayInput` via:
RotateProductSecretArray{ RotateProductSecretArgs{...} }
type RotateProductSecretArrayOutput ¶ added in v0.1.8
type RotateProductSecretArrayOutput struct{ *pulumi.OutputState }
func (RotateProductSecretArrayOutput) ElementType ¶ added in v0.1.8
func (RotateProductSecretArrayOutput) ElementType() reflect.Type
func (RotateProductSecretArrayOutput) Index ¶ added in v0.1.8
func (o RotateProductSecretArrayOutput) Index(i pulumi.IntInput) RotateProductSecretOutput
func (RotateProductSecretArrayOutput) ToRotateProductSecretArrayOutput ¶ added in v0.1.8
func (o RotateProductSecretArrayOutput) ToRotateProductSecretArrayOutput() RotateProductSecretArrayOutput
func (RotateProductSecretArrayOutput) ToRotateProductSecretArrayOutputWithContext ¶ added in v0.1.8
func (o RotateProductSecretArrayOutput) ToRotateProductSecretArrayOutputWithContext(ctx context.Context) RotateProductSecretArrayOutput
type RotateProductSecretInput ¶ added in v0.1.8
type RotateProductSecretInput interface { pulumi.Input ToRotateProductSecretOutput() RotateProductSecretOutput ToRotateProductSecretOutputWithContext(ctx context.Context) RotateProductSecretOutput }
type RotateProductSecretMap ¶ added in v0.1.8
type RotateProductSecretMap map[string]RotateProductSecretInput
func (RotateProductSecretMap) ElementType ¶ added in v0.1.8
func (RotateProductSecretMap) ElementType() reflect.Type
func (RotateProductSecretMap) ToRotateProductSecretMapOutput ¶ added in v0.1.8
func (i RotateProductSecretMap) ToRotateProductSecretMapOutput() RotateProductSecretMapOutput
func (RotateProductSecretMap) ToRotateProductSecretMapOutputWithContext ¶ added in v0.1.8
func (i RotateProductSecretMap) ToRotateProductSecretMapOutputWithContext(ctx context.Context) RotateProductSecretMapOutput
type RotateProductSecretMapInput ¶ added in v0.1.8
type RotateProductSecretMapInput interface { pulumi.Input ToRotateProductSecretMapOutput() RotateProductSecretMapOutput ToRotateProductSecretMapOutputWithContext(context.Context) RotateProductSecretMapOutput }
RotateProductSecretMapInput is an input type that accepts RotateProductSecretMap and RotateProductSecretMapOutput values. You can construct a concrete instance of `RotateProductSecretMapInput` via:
RotateProductSecretMap{ "key": RotateProductSecretArgs{...} }
type RotateProductSecretMapOutput ¶ added in v0.1.8
type RotateProductSecretMapOutput struct{ *pulumi.OutputState }
func (RotateProductSecretMapOutput) ElementType ¶ added in v0.1.8
func (RotateProductSecretMapOutput) ElementType() reflect.Type
func (RotateProductSecretMapOutput) MapIndex ¶ added in v0.1.8
func (o RotateProductSecretMapOutput) MapIndex(k pulumi.StringInput) RotateProductSecretOutput
func (RotateProductSecretMapOutput) ToRotateProductSecretMapOutput ¶ added in v0.1.8
func (o RotateProductSecretMapOutput) ToRotateProductSecretMapOutput() RotateProductSecretMapOutput
func (RotateProductSecretMapOutput) ToRotateProductSecretMapOutputWithContext ¶ added in v0.1.8
func (o RotateProductSecretMapOutput) ToRotateProductSecretMapOutputWithContext(ctx context.Context) RotateProductSecretMapOutput
type RotateProductSecretOutput ¶ added in v0.1.8
type RotateProductSecretOutput struct{ *pulumi.OutputState }
func (RotateProductSecretOutput) ElementType ¶ added in v0.1.8
func (RotateProductSecretOutput) ElementType() reflect.Type
func (RotateProductSecretOutput) SecretName ¶ added in v0.1.8
func (o RotateProductSecretOutput) SecretName() pulumi.StringOutput
Secret name.
func (RotateProductSecretOutput) ToRotateProductSecretOutput ¶ added in v0.1.8
func (o RotateProductSecretOutput) ToRotateProductSecretOutput() RotateProductSecretOutput
func (RotateProductSecretOutput) ToRotateProductSecretOutputWithContext ¶ added in v0.1.8
func (o RotateProductSecretOutput) ToRotateProductSecretOutputWithContext(ctx context.Context) RotateProductSecretOutput
type RotateProductSecretState ¶ added in v0.1.8
type RotateProductSecretState struct { // Secret name. SecretName pulumi.StringPtrInput }
func (RotateProductSecretState) ElementType ¶ added in v0.1.8
func (RotateProductSecretState) ElementType() reflect.Type
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. Default is `0`. 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, "example", &Ssm.SecretArgs{ Description: pulumi.String("desc."), IsEnabled: pulumi.Bool(true), RecoveryWindowInDays: pulumi.Int(0), SecretName: pulumi.String("tf-example"), Tags: pulumi.AnyMap{ "createBy": pulumi.Any("terraform"), }, }) 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" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Subnet" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { zone, err := Redis.GetZoneConfig(ctx, &redis.GetZoneConfigArgs{ TypeId: pulumi.IntRef(8), }, nil) if err != nil { return err } vpc, err := Vpc.NewInstance(ctx, "vpc", &Vpc.InstanceArgs{ CidrBlock: pulumi.String("10.0.0.0/16"), }) if err != nil { return err } subnet, err := Subnet.NewInstance(ctx, "subnet", &Subnet.InstanceArgs{ VpcId: vpc.ID(), AvailabilityZone: pulumi.String(zone.Lists[3].Zone), CidrBlock: pulumi.String("10.0.0.0/16"), }) if err != nil { return err } exampleInstance, err := Redis.NewInstance(ctx, "exampleInstance", &Redis.InstanceArgs{ AvailabilityZone: pulumi.String(zone.Lists[3].Zone), TypeId: pulumi.Int(zone.Lists[3].TypeId), Password: pulumi.String("Qwer@234"), MemSize: pulumi.Int(zone.Lists[3].MemSizes[0]), RedisShardNum: pulumi.Int(zone.Lists[3].RedisShardNums[0]), RedisReplicasNum: pulumi.Int(zone.Lists[3].RedisReplicasNums[0]), Port: pulumi.Int(6379), VpcId: vpc.ID(), SubnetId: subnet.ID(), }) if err != nil { return err } _, err = Ssm.NewSecret(ctx, "exampleSecret", &Ssm.SecretArgs{ SecretName: pulumi.String("tf-example"), Description: pulumi.String("redis desc."), IsEnabled: pulumi.Bool(true), SecretType: pulumi.Int(4), AdditionalConfig: exampleInstance.ID().ApplyT(func(id string) (pulumi.String, error) { var _zero pulumi.String tmpJSON0, err := json.Marshal(map[string]interface{}{ "Region": "ap-guangzhou", "Privilege": "r", "InstanceId": id, "ReadonlyPolicy": []string{ "master", }, "Remark": "for tf test", }) if err != nil { return _zero, err } json0 := string(tmpJSON0) return json0, nil }).(pulumi.StringOutput), Tags: pulumi.AnyMap{ "createdBy": pulumi.Any("terraform"), }, 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. Default is `0`. 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. Default is `0`.
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. Default is `0`. 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.
> **Note:** A maximum of 10 versions can be supported under one credential. Only new versions can be added to credentials in the enabled and disabled states.
## Example Usage ### Text type credential information plaintext
```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 { example, err := Ssm.NewSecret(ctx, "example", &Ssm.SecretArgs{ SecretName: pulumi.String("tf-example"), Description: pulumi.String("desc."), RecoveryWindowInDays: pulumi.Int(0), IsEnabled: pulumi.Bool(true), Tags: pulumi.AnyMap{ "createdBy": pulumi.Any("terraform"), }, }) if err != nil { return err } _, err = Ssm.NewSecretVersion(ctx, "v1", &Ssm.SecretVersionArgs{ SecretName: example.SecretName, VersionId: pulumi.String("v1"), SecretString: pulumi.String("this is secret string"), }) if err != nil { return err } return nil }) }
``` ### Binary credential information, encoded using base64
```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.NewSecretVersion(ctx, "v2", &Ssm.SecretVersionArgs{ SecretName: pulumi.Any(tencentcloud_ssm_secret.Example.Secret_name), VersionId: pulumi.String("v2"), 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.StringOutput `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.StringOutput `pulumi:"sshKeyName"` // Enable or Disable Secret. Valid values is `Enabled` or `Disabled`. Default is `Enabled`. Status pulumi.StringOutput `pulumi:"status"` // Tags of secret. Tags pulumi.MapOutput `pulumi:"tags"` }
Provides a resource to create a ssm ssh key pair secret
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Kms" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Ssm"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleKey, err := Kms.NewKey(ctx, "exampleKey", &Kms.KeyArgs{ Alias: pulumi.String("tf-example-kms-key"), Description: pulumi.String("example of kms key"), KeyRotationEnabled: pulumi.Bool(false), IsEnabled: pulumi.Bool(true), Tags: pulumi.AnyMap{ "createdBy": pulumi.Any("terraform"), }, }) if err != nil { return err } _, err = Ssm.NewSshKeyPairSecret(ctx, "exampleSshKeyPairSecret", &Ssm.SshKeyPairSecretArgs{ SecretName: pulumi.String("tf-example"), ProjectId: pulumi.Int(0), Description: pulumi.String("desc."), KmsKeyId: exampleKey.ID(), SshKeyName: pulumi.String("tf_example_ssh"), Status: pulumi.String("Enabled"), CleanSshKey: pulumi.Bool(true), Tags: pulumi.AnyMap{ "createdBy": pulumi.Any("terraform"), }, }) if err != nil { return err } return nil }) }
```
## 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 // Tags of secret. Tags pulumi.MapInput }
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.StringOutput
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.StringOutput
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) Tags ¶ added in v0.1.8
func (o SshKeyPairSecretOutput) Tags() pulumi.MapOutput
Tags of secret.
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 // Tags of secret. Tags pulumi.MapInput }
func (SshKeyPairSecretState) ElementType ¶ added in v0.1.5
func (SshKeyPairSecretState) ElementType() reflect.Type