Help us shape the future of Go! Take the 2026 Go Developer Survey

ssm

package
v1.83.39 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SSM_STATUS_ENABLED       = "Enabled"
	SSM_STATUS_DISABLED      = "Disabled"
	SSM_STATUS_PENDINGDELETE = "PendingDelete"
)
View Source
const (
	SSMResourceNotFound = "ResourceNotFound"
)
View Source
const (
	SSM_PAGE_LIMIT = 200
)

Variables

This section is empty.

Functions

func DataSourceTencentCloudSsmProducts

func DataSourceTencentCloudSsmProducts() *schema.Resource

func DataSourceTencentCloudSsmRotationDetail

func DataSourceTencentCloudSsmRotationDetail() *schema.Resource

func DataSourceTencentCloudSsmRotationHistory

func DataSourceTencentCloudSsmRotationHistory() *schema.Resource

func DataSourceTencentCloudSsmSecretVersions

func DataSourceTencentCloudSsmSecretVersions() *schema.Resource

func DataSourceTencentCloudSsmSecrets

func DataSourceTencentCloudSsmSecrets() *schema.Resource

func DataSourceTencentCloudSsmServiceStatus

func DataSourceTencentCloudSsmServiceStatus() *schema.Resource

func DataSourceTencentCloudSsmSshKeyPairValue

func DataSourceTencentCloudSsmSshKeyPairValue() *schema.Resource

func NewSsmSecretVersionEphemeralResource added in v1.83.7

func NewSsmSecretVersionEphemeralResource() ephemeral.EphemeralResource

NewSsmSecretVersionEphemeralResource is the factory referenced by tencentcloud/framework/registry.go to register this ephemeral resource.

func NewSsmSecretVersionV2Resource added in v1.83.7

func NewSsmSecretVersionV2Resource() resource.Resource

NewSsmSecretVersionV2Resource is the factory referenced by tencentcloud/framework/registry.go to register this resource.

func ResourceTencentCloudSsmProductSecret

func ResourceTencentCloudSsmProductSecret() *schema.Resource

func ResourceTencentCloudSsmRotateProductSecret

func ResourceTencentCloudSsmRotateProductSecret() *schema.Resource

func ResourceTencentCloudSsmSecret

func ResourceTencentCloudSsmSecret() *schema.Resource

func ResourceTencentCloudSsmSecretVersion

func ResourceTencentCloudSsmSecretVersion() *schema.Resource

func ResourceTencentCloudSsmSshKeyPairSecret

func ResourceTencentCloudSsmSshKeyPairSecret() *schema.Resource

Types

type SecretInfo

type SecretInfo struct {
	// contains filtered or unexported fields
}

func (SecretInfo) Status

func (info SecretInfo) Status() string

type SecretVersionInfo

type SecretVersionInfo struct {
	// contains filtered or unexported fields
}

type SsmSecretVersionEphemeralResource added in v1.83.7

type SsmSecretVersionEphemeralResource struct {
	fw.EphemeralResourceWithConfigure
}

SsmSecretVersionEphemeralResource implements ephemeral.EphemeralResource for tencentcloud_ssm_secret_version.

func (*SsmSecretVersionEphemeralResource) Metadata added in v1.83.7

func (*SsmSecretVersionEphemeralResource) Open added in v1.83.7

Open is invoked once per plan/apply. It reads the secret value via the SSM API and writes it back to resp.Result.

func (*SsmSecretVersionEphemeralResource) Schema added in v1.83.7

type SsmSecretVersionEphemeralResourceModel added in v1.83.7

type SsmSecretVersionEphemeralResourceModel struct {
	SecretName   types.String `tfsdk:"secret_name"`
	VersionId    types.String `tfsdk:"version_id"`
	SecretBinary types.String `tfsdk:"secret_binary"`
	SecretString types.String `tfsdk:"secret_string"`
}

SsmSecretVersionEphemeralResourceModel maps the schema attributes.

type SsmSecretVersionV2Resource added in v1.83.7

type SsmSecretVersionV2Resource struct {
	fw.ResourceWithConfigure
}

SsmSecretVersionV2Resource implements resource.Resource for tencentcloud_ssm_secret_version_v2.

func (*SsmSecretVersionV2Resource) Create added in v1.83.7

Create handles `terraform apply` for new resources.

func (*SsmSecretVersionV2Resource) Delete added in v1.83.7

Delete handles `terraform destroy`.

func (*SsmSecretVersionV2Resource) ImportState added in v1.83.7

ImportState supports `terraform import` using the `<secret_name>#<version_id>` form.

func (*SsmSecretVersionV2Resource) Metadata added in v1.83.7

func (*SsmSecretVersionV2Resource) Read added in v1.83.7

Read handles `terraform refresh` and post-apply state refresh.

func (*SsmSecretVersionV2Resource) Schema added in v1.83.7

func (*SsmSecretVersionV2Resource) Update added in v1.83.7

Update handles in-place modifications.

type SsmSecretVersionV2ResourceModel added in v1.83.7

type SsmSecretVersionV2ResourceModel struct {
	Id             types.String `tfsdk:"id"`
	SecretName     types.String `tfsdk:"secret_name"`
	VersionId      types.String `tfsdk:"version_id"`
	SecretBinary   types.String `tfsdk:"secret_binary"`
	SecretString   types.String `tfsdk:"secret_string"`
	SecretStringWo types.String `tfsdk:"secret_string_wo"`
}

SsmSecretVersionV2ResourceModel maps the schema attributes.

SecretStringWo is the write-only counterpart of SecretString. Terraform never persists a write-only attribute in plan or state, so this field only carries data during a single Create/Update operation read from req.Config and is always types.StringNull() in plan/state.

type SsmService

type SsmService struct {
	// contains filtered or unexported fields
}

func NewSsmService

func NewSsmService(client *connectivity.TencentCloudClient) SsmService

func (*SsmService) CreateSecret

func (me *SsmService) CreateSecret(ctx context.Context, param map[string]interface{}) (secretName string, errRet error)

func (*SsmService) DeleteSecret

func (me *SsmService) DeleteSecret(ctx context.Context, secretName string, recoveryWindowInDays uint64) (errRet error)

func (*SsmService) DeleteSecretVersion

func (me *SsmService) DeleteSecretVersion(ctx context.Context, secretName, versionId string) (errRet error)

func (*SsmService) DeleteSsmProductSecretById

func (me *SsmService) DeleteSsmProductSecretById(ctx context.Context, secretName string) (errRet error)

func (*SsmService) DeleteSsmSshKeyPairSecretById

func (me *SsmService) DeleteSsmSshKeyPairSecretById(ctx context.Context, secretName string, cleanSSHKey *bool) (errRet error)

func (*SsmService) DescribeAsyncRequestInfo

func (me *SsmService) DescribeAsyncRequestInfo(ctx context.Context, flowID int64) (taskStatus int64, errRet error)

func (*SsmService) DescribeSecretById

func (me *SsmService) DescribeSecretById(ctx context.Context, secretName string, serviceType uint64) (sshKeyPairSecret *ssm.SecretMetadata, errRet error)

func (*SsmService) DescribeSecretByName

func (me *SsmService) DescribeSecretByName(ctx context.Context, secretName string) (secret *SecretInfo, errRet error)

func (*SsmService) DescribeSecretVersion

func (me *SsmService) DescribeSecretVersion(ctx context.Context, secretName, versionId string) (secretVersion *SecretVersionInfo, errRet error)

func (*SsmService) DescribeSecretVersionIdsByName

func (me *SsmService) DescribeSecretVersionIdsByName(ctx context.Context, secretName string) (versionIds []string, errRet error)

func (*SsmService) DescribeSecretsByFilter

func (me *SsmService) DescribeSecretsByFilter(ctx context.Context, param map[string]interface{}) (secrets []*ssm.SecretMetadata, errRet error)

func (*SsmService) DescribeSshKeyPairSecretValueBySecretName added in v1.83.8

func (me *SsmService) DescribeSshKeyPairSecretValueBySecretName(ctx context.Context, secretName string) (sshKeyId string, errRet error)

func (*SsmService) DescribeSsmProductsByFilter

func (me *SsmService) DescribeSsmProductsByFilter(ctx context.Context) (products []*string, errRet error)

func (*SsmService) DescribeSsmRotationDetailByFilter

func (me *SsmService) DescribeSsmRotationDetailByFilter(ctx context.Context, param map[string]interface{}) (rotationDetail *ssm.DescribeRotationDetailResponseParams, errRet error)

func (*SsmService) DescribeSsmRotationHistoryByFilter

func (me *SsmService) DescribeSsmRotationHistoryByFilter(ctx context.Context, param map[string]interface{}) (rotationHistory []*string, errRet error)

func (*SsmService) DescribeSsmServiceStatusByFilter

func (me *SsmService) DescribeSsmServiceStatusByFilter(ctx context.Context) (ServiceStatus *ssm.GetServiceStatusResponseParams, errRet error)

func (*SsmService) DescribeSsmSshKeyPairValueByFilter

func (me *SsmService) DescribeSsmSshKeyPairValueByFilter(ctx context.Context, param map[string]interface{}) (sshKeyPairValue *ssm.GetSSHKeyPairValueResponseParams, errRet error)

func (*SsmService) DisableSecret

func (me *SsmService) DisableSecret(ctx context.Context, secretName string) (errRet error)

func (*SsmService) EnableSecret

func (me *SsmService) EnableSecret(ctx context.Context, secretName string) (errRet error)

func (*SsmService) PutSecretValue

func (me *SsmService) PutSecretValue(ctx context.Context, param map[string]interface{}) (secretName, versionId string, errRet error)

func (*SsmService) SsmProductSecretStateRefreshFunc

func (me *SsmService) SsmProductSecretStateRefreshFunc(flowId int64, failStates []string) resource.StateRefreshFunc

func (*SsmService) UpdateSecret

func (me *SsmService) UpdateSecret(ctx context.Context, param map[string]interface{}) (errRet error)

func (*SsmService) UpdateSecretDescription

func (me *SsmService) UpdateSecretDescription(ctx context.Context, secretName, description string) (errRet error)

Jump to

Keyboard shortcuts

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