Documentation
¶
Index ¶
- Constants
- func DataSourceTencentCloudSsmProducts() *schema.Resource
- func DataSourceTencentCloudSsmRotationDetail() *schema.Resource
- func DataSourceTencentCloudSsmRotationHistory() *schema.Resource
- func DataSourceTencentCloudSsmSecretVersions() *schema.Resource
- func DataSourceTencentCloudSsmSecrets() *schema.Resource
- func DataSourceTencentCloudSsmServiceStatus() *schema.Resource
- func DataSourceTencentCloudSsmSshKeyPairValue() *schema.Resource
- func NewSsmSecretVersionEphemeralResource() ephemeral.EphemeralResource
- func NewSsmSecretVersionV2Resource() resource.Resource
- func NewSsmServiceAction() action.Action
- func ResourceTencentCloudSsmProductSecret() *schema.Resource
- func ResourceTencentCloudSsmRotateProductSecret() *schema.Resource
- func ResourceTencentCloudSsmSecret() *schema.Resource
- func ResourceTencentCloudSsmSecretVersion() *schema.Resource
- func ResourceTencentCloudSsmSshKeyPairSecret() *schema.Resource
- type SecretInfo
- type SecretVersionInfo
- type SsmSecretVersionEphemeralResource
- func (e *SsmSecretVersionEphemeralResource) Metadata(_ context.Context, _ ephemeral.MetadataRequest, ...)
- func (e *SsmSecretVersionEphemeralResource) Open(ctx context.Context, req ephemeral.OpenRequest, resp *ephemeral.OpenResponse)
- func (e *SsmSecretVersionEphemeralResource) Schema(_ context.Context, _ ephemeral.SchemaRequest, resp *ephemeral.SchemaResponse)
- type SsmSecretVersionEphemeralResourceModel
- type SsmSecretVersionV2Resource
- func (r *SsmSecretVersionV2Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *SsmSecretVersionV2Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *SsmSecretVersionV2Resource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *SsmSecretVersionV2Resource) Metadata(_ context.Context, _ resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r *SsmSecretVersionV2Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *SsmSecretVersionV2Resource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *SsmSecretVersionV2Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type SsmSecretVersionV2ResourceModel
- type SsmService
- func (me *SsmService) CreateSecret(ctx context.Context, param map[string]interface{}) (secretName string, errRet error)
- func (me *SsmService) CreateService(ctx context.Context, payMode, clientToken string) (response *ssm.CreateServiceResponse, errRet error)
- func (me *SsmService) DeleteSecret(ctx context.Context, secretName string, recoveryWindowInDays uint64) (errRet error)
- func (me *SsmService) DeleteSecretVersion(ctx context.Context, secretName, versionId string) (errRet error)
- func (me *SsmService) DeleteSsmProductSecretById(ctx context.Context, secretName string) (errRet error)
- func (me *SsmService) DeleteSsmSshKeyPairSecretById(ctx context.Context, secretName string, cleanSSHKey *bool) (errRet error)
- func (me *SsmService) DescribeAsyncRequestInfo(ctx context.Context, flowID int64) (taskStatus int64, errRet error)
- func (me *SsmService) DescribeSecretById(ctx context.Context, secretName string, serviceType uint64) (sshKeyPairSecret *ssm.SecretMetadata, errRet error)
- func (me *SsmService) DescribeSecretByName(ctx context.Context, secretName string) (secret *SecretInfo, errRet error)
- func (me *SsmService) DescribeSecretVersion(ctx context.Context, secretName, versionId string) (secretVersion *SecretVersionInfo, errRet error)
- func (me *SsmService) DescribeSecretVersionIdsByName(ctx context.Context, secretName string) (versionIds []string, errRet error)
- func (me *SsmService) DescribeSecretsByFilter(ctx context.Context, param map[string]interface{}) (secrets []*ssm.SecretMetadata, errRet error)
- func (me *SsmService) DescribeSshKeyPairSecretValueBySecretName(ctx context.Context, secretName string) (sshKeyId string, errRet error)
- func (me *SsmService) DescribeSsmProductsByFilter(ctx context.Context) (products []*string, errRet error)
- func (me *SsmService) DescribeSsmRotationDetailByFilter(ctx context.Context, param map[string]interface{}) (rotationDetail *ssm.DescribeRotationDetailResponseParams, errRet error)
- func (me *SsmService) DescribeSsmRotationHistoryByFilter(ctx context.Context, param map[string]interface{}) (rotationHistory []*string, errRet error)
- func (me *SsmService) DescribeSsmServiceStatusByFilter(ctx context.Context) (ServiceStatus *ssm.GetServiceStatusResponseParams, errRet error)
- func (me *SsmService) DescribeSsmSshKeyPairValueByFilter(ctx context.Context, param map[string]interface{}) (sshKeyPairValue *ssm.GetSSHKeyPairValueResponseParams, errRet error)
- func (me *SsmService) DisableSecret(ctx context.Context, secretName string) (errRet error)
- func (me *SsmService) EnableSecret(ctx context.Context, secretName string) (errRet error)
- func (me *SsmService) GetServiceStatus(ctx context.Context) (response *ssm.GetServiceStatusResponseParams, errRet error)
- func (me *SsmService) PutSecretValue(ctx context.Context, param map[string]interface{}) (secretName, versionId string, errRet error)
- func (me *SsmService) SsmProductSecretStateRefreshFunc(flowId int64, failStates []string) resource.StateRefreshFunc
- func (me *SsmService) UpdateSecret(ctx context.Context, param map[string]interface{}) (errRet error)
- func (me *SsmService) UpdateSecretDescription(ctx context.Context, secretName, description string) (errRet error)
- type SsmServiceAction
- func (a *SsmServiceAction) Invoke(ctx context.Context, req action.InvokeRequest, resp *action.InvokeResponse)
- func (a *SsmServiceAction) Metadata(_ context.Context, _ action.MetadataRequest, resp *action.MetadataResponse)
- func (a *SsmServiceAction) Schema(_ context.Context, _ action.SchemaRequest, resp *action.SchemaResponse)
- type SsmServiceActionModel
Constants ¶
const ( SSM_STATUS_ENABLED = "Enabled" SSM_STATUS_DISABLED = "Disabled" SSM_STATUS_PENDINGDELETE = "PendingDelete" )
const (
SSMResourceNotFound = "ResourceNotFound"
)
const (
SSM_PAGE_LIMIT = 200
)
Variables ¶
This section is empty.
Functions ¶
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
NewSsmSecretVersionV2Resource is the factory referenced by tencentcloud/framework/registry.go to register this resource.
func NewSsmServiceAction ¶ added in v1.83.40
NewSsmServiceAction is the factory referenced by tencentcloud/framework/registry.go to register this action.
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 (e *SsmSecretVersionEphemeralResource) Metadata(_ context.Context, _ ephemeral.MetadataRequest, resp *ephemeral.MetadataResponse)
func (*SsmSecretVersionEphemeralResource) Open ¶ added in v1.83.7
func (e *SsmSecretVersionEphemeralResource) Open(ctx context.Context, req ephemeral.OpenRequest, resp *ephemeral.OpenResponse)
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
func (e *SsmSecretVersionEphemeralResource) Schema(_ context.Context, _ ephemeral.SchemaRequest, resp *ephemeral.SchemaResponse)
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
func (r *SsmSecretVersionV2Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create handles `terraform apply` for new resources.
func (*SsmSecretVersionV2Resource) Delete ¶ added in v1.83.7
func (r *SsmSecretVersionV2Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete handles `terraform destroy`.
func (*SsmSecretVersionV2Resource) ImportState ¶ added in v1.83.7
func (r *SsmSecretVersionV2Resource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState supports `terraform import` using the `<secret_name>#<version_id>` form.
func (*SsmSecretVersionV2Resource) Metadata ¶ added in v1.83.7
func (r *SsmSecretVersionV2Resource) Metadata(_ context.Context, _ resource.MetadataRequest, resp *resource.MetadataResponse)
func (*SsmSecretVersionV2Resource) Read ¶ added in v1.83.7
func (r *SsmSecretVersionV2Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read handles `terraform refresh` and post-apply state refresh.
func (*SsmSecretVersionV2Resource) Schema ¶ added in v1.83.7
func (r *SsmSecretVersionV2Resource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*SsmSecretVersionV2Resource) Update ¶ added in v1.83.7
func (r *SsmSecretVersionV2Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 (*SsmService) CreateService ¶ added in v1.83.40
func (me *SsmService) CreateService(ctx context.Context, payMode, clientToken string) (response *ssm.CreateServiceResponse, errRet error)
CreateService opens the SSM service (PostPay). The CreateService API is asynchronous (the returned resource may still be provisioning), so callers should poll GetServiceStatus afterwards to confirm the service is enabled. The CreateService response (ResourceId / OrderId) is returned so the action can log it for observability.
func (*SsmService) DeleteSecret ¶
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 (*SsmService) DescribeAsyncRequestInfo ¶
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 (*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 (*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 (*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) GetServiceStatus ¶ added in v1.83.40
func (me *SsmService) GetServiceStatus(ctx context.Context) (response *ssm.GetServiceStatusResponseParams, errRet error)
GetServiceStatus returns the current SSM service activation status. It is retry-wrapped with ReadRetryTimeout and is intended for the action's activation polling loop.
func (*SsmService) PutSecretValue ¶
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)
type SsmServiceAction ¶ added in v1.83.40
type SsmServiceAction struct {
fw.ActionWithConfigure
}
SsmServiceAction implements action.Action for tencentcloud_ssm_service.
func (*SsmServiceAction) Invoke ¶ added in v1.83.40
func (a *SsmServiceAction) Invoke(ctx context.Context, req action.InvokeRequest, resp *action.InvokeResponse)
Invoke is called to run the logic of the action.
func (*SsmServiceAction) Metadata ¶ added in v1.83.40
func (a *SsmServiceAction) Metadata(_ context.Context, _ action.MetadataRequest, resp *action.MetadataResponse)
func (*SsmServiceAction) Schema ¶ added in v1.83.40
func (a *SsmServiceAction) Schema(_ context.Context, _ action.SchemaRequest, resp *action.SchemaResponse)
type SsmServiceActionModel ¶ added in v1.83.40
SsmServiceActionModel maps the schema attributes. client_token required by the CreateService API is not part of the schema; it is generated internally via helper.BuildToken().
Source Files
¶
- action_tc_ssm_service.go
- data_source_tc_ssm_products.go
- data_source_tc_ssm_rotation_detail.go
- data_source_tc_ssm_rotation_history.go
- data_source_tc_ssm_secret_versions.go
- data_source_tc_ssm_secrets.go
- data_source_tc_ssm_service_status.go
- data_source_tc_ssm_ssh_key_pair_value.go
- ephemeral_tc_ssm_secret_version.go
- extension_ssm.go
- resource_tc_ssm_product_secret.go
- resource_tc_ssm_rotate_product_secret.go
- resource_tc_ssm_secret.go
- resource_tc_ssm_secret_version.go
- resource_tc_ssm_secret_version_v2.go
- resource_tc_ssm_ssh_key_pair_secret.go
- service_tencentcloud_ssm.go