Documentation ¶
Overview ¶
Package cloudhsmv2 provides the API client, operations, and parameter types for AWS CloudHSM V2.
For more information about CloudHSM, see CloudHSM and the CloudHSM User Guide.
Index ¶
- Constants
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
- func WithEndpointResolver(v EndpointResolver) func(*Options)deprecated
- func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
- func WithSigV4SigningName(name string) func(*Options)
- func WithSigV4SigningRegion(region string) func(*Options)
- type AuthResolverParameters
- type AuthSchemeResolver
- type Client
- func (c *Client) CopyBackupToRegion(ctx context.Context, params *CopyBackupToRegionInput, optFns ...func(*Options)) (*CopyBackupToRegionOutput, error)
- func (c *Client) CreateCluster(ctx context.Context, params *CreateClusterInput, optFns ...func(*Options)) (*CreateClusterOutput, error)
- func (c *Client) CreateHsm(ctx context.Context, params *CreateHsmInput, optFns ...func(*Options)) (*CreateHsmOutput, error)
- func (c *Client) DeleteBackup(ctx context.Context, params *DeleteBackupInput, optFns ...func(*Options)) (*DeleteBackupOutput, error)
- func (c *Client) DeleteCluster(ctx context.Context, params *DeleteClusterInput, optFns ...func(*Options)) (*DeleteClusterOutput, error)
- func (c *Client) DeleteHsm(ctx context.Context, params *DeleteHsmInput, optFns ...func(*Options)) (*DeleteHsmOutput, error)
- func (c *Client) DeleteResourcePolicy(ctx context.Context, params *DeleteResourcePolicyInput, ...) (*DeleteResourcePolicyOutput, error)
- func (c *Client) DescribeBackups(ctx context.Context, params *DescribeBackupsInput, optFns ...func(*Options)) (*DescribeBackupsOutput, error)
- func (c *Client) DescribeClusters(ctx context.Context, params *DescribeClustersInput, optFns ...func(*Options)) (*DescribeClustersOutput, error)
- func (c *Client) GetResourcePolicy(ctx context.Context, params *GetResourcePolicyInput, optFns ...func(*Options)) (*GetResourcePolicyOutput, error)
- func (c *Client) InitializeCluster(ctx context.Context, params *InitializeClusterInput, optFns ...func(*Options)) (*InitializeClusterOutput, error)
- func (c *Client) ListTags(ctx context.Context, params *ListTagsInput, optFns ...func(*Options)) (*ListTagsOutput, error)
- func (c *Client) ModifyBackupAttributes(ctx context.Context, params *ModifyBackupAttributesInput, ...) (*ModifyBackupAttributesOutput, error)
- func (c *Client) ModifyCluster(ctx context.Context, params *ModifyClusterInput, optFns ...func(*Options)) (*ModifyClusterOutput, error)
- func (c *Client) Options() Options
- func (c *Client) PutResourcePolicy(ctx context.Context, params *PutResourcePolicyInput, optFns ...func(*Options)) (*PutResourcePolicyOutput, error)
- func (c *Client) RestoreBackup(ctx context.Context, params *RestoreBackupInput, optFns ...func(*Options)) (*RestoreBackupOutput, error)
- func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
- func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
- type CopyBackupToRegionInput
- type CopyBackupToRegionOutput
- type CreateClusterInput
- type CreateClusterOutput
- type CreateHsmInput
- type CreateHsmOutput
- type DeleteBackupInput
- type DeleteBackupOutput
- type DeleteClusterInput
- type DeleteClusterOutput
- type DeleteHsmInput
- type DeleteHsmOutput
- type DeleteResourcePolicyInput
- type DeleteResourcePolicyOutput
- type DescribeBackupsAPIClient
- type DescribeBackupsInput
- type DescribeBackupsOutput
- type DescribeBackupsPaginator
- type DescribeBackupsPaginatorOptions
- type DescribeClustersAPIClient
- type DescribeClustersInput
- type DescribeClustersOutput
- type DescribeClustersPaginator
- type DescribeClustersPaginatorOptions
- type EndpointParameters
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type EndpointResolverV2
- type GetResourcePolicyInput
- type GetResourcePolicyOutput
- type HTTPClient
- type HTTPSignerV4
- type InitializeClusterInput
- type InitializeClusterOutput
- type ListTagsAPIClient
- type ListTagsInput
- type ListTagsOutput
- type ListTagsPaginator
- type ListTagsPaginatorOptions
- type ModifyBackupAttributesInput
- type ModifyBackupAttributesOutput
- type ModifyClusterInput
- type ModifyClusterOutput
- type Options
- type PutResourcePolicyInput
- type PutResourcePolicyOutput
- type ResolveEndpoint
- type RestoreBackupInput
- type RestoreBackupOutput
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
Constants ¶
const ServiceAPIVersion = "2017-04-28"
const ServiceID = "CloudHSM V2"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func WithAPIOptions ¶ added in v1.0.0
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
WithAPIOptions returns a functional option for setting the Client's APIOptions option.
func WithEndpointResolver
deprecated
func WithEndpointResolver(v EndpointResolver) func(*Options)
Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for this field will likely prevent you from using any endpoint-related service features released after the introduction of EndpointResolverV2 and BaseEndpoint.
To migrate an EndpointResolver implementation that uses a custom endpoint, set the client option BaseEndpoint instead.
func WithEndpointResolverV2 ¶ added in v1.15.0
func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
WithEndpointResolverV2 returns a functional option for setting the Client's EndpointResolverV2 option.
func WithSigV4SigningName ¶ added in v1.18.2
WithSigV4SigningName applies an override to the authentication workflow to use the given signing name for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing name from both auth scheme resolution and endpoint resolution.
func WithSigV4SigningRegion ¶ added in v1.18.2
WithSigV4SigningRegion applies an override to the authentication workflow to use the given signing region for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing region from both auth scheme resolution and endpoint resolution.
Types ¶
type AuthResolverParameters ¶ added in v1.18.2
type AuthResolverParameters struct { // The name of the operation being invoked. Operation string // The region in which the operation is being invoked. Region string }
AuthResolverParameters contains the set of inputs necessary for auth scheme resolution.
type AuthSchemeResolver ¶ added in v1.18.2
type AuthSchemeResolver interface {
ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error)
}
AuthSchemeResolver returns a set of possible authentication options for an operation.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the API client to make operations call for AWS CloudHSM V2.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) CopyBackupToRegion ¶
func (c *Client) CopyBackupToRegion(ctx context.Context, params *CopyBackupToRegionInput, optFns ...func(*Options)) (*CopyBackupToRegionOutput, error)
Copy an CloudHSM cluster backup to a different region.
Cross-account use: No. You cannot perform this operation on an CloudHSM backup in a different Amazon Web Services account.
func (*Client) CreateCluster ¶
func (c *Client) CreateCluster(ctx context.Context, params *CreateClusterInput, optFns ...func(*Options)) (*CreateClusterOutput, error)
Creates a new CloudHSM cluster.
Cross-account use: Yes. To perform this operation with an CloudHSM backup in a different AWS account, specify the full backup ARN in the value of the SourceBackupId parameter.
func (*Client) CreateHsm ¶
func (c *Client) CreateHsm(ctx context.Context, params *CreateHsmInput, optFns ...func(*Options)) (*CreateHsmOutput, error)
Creates a new hardware security module (HSM) in the specified CloudHSM cluster.
Cross-account use: No. You cannot perform this operation on an CloudHSM cluster in a different Amazon Web Service account.
func (*Client) DeleteBackup ¶
func (c *Client) DeleteBackup(ctx context.Context, params *DeleteBackupInput, optFns ...func(*Options)) (*DeleteBackupOutput, error)
Deletes a specified CloudHSM backup. A backup can be restored up to 7 days after the DeleteBackup request is made. For more information on restoring a backup, see RestoreBackup.
Cross-account use: No. You cannot perform this operation on an CloudHSM backup in a different Amazon Web Services account.
func (*Client) DeleteCluster ¶
func (c *Client) DeleteCluster(ctx context.Context, params *DeleteClusterInput, optFns ...func(*Options)) (*DeleteClusterOutput, error)
Deletes the specified CloudHSM cluster. Before you can delete a cluster, you must delete all HSMs in the cluster. To see if the cluster contains any HSMs, use DescribeClusters. To delete an HSM, use DeleteHsm.
Cross-account use: No. You cannot perform this operation on an CloudHSM cluster in a different Amazon Web Services account.
func (*Client) DeleteHsm ¶
func (c *Client) DeleteHsm(ctx context.Context, params *DeleteHsmInput, optFns ...func(*Options)) (*DeleteHsmOutput, error)
Deletes the specified HSM. To specify an HSM, you can use its identifier (ID), the IP address of the HSM's elastic network interface (ENI), or the ID of the HSM's ENI. You need to specify only one of these values. To find these values, use DescribeClusters.
Cross-account use: No. You cannot perform this operation on an CloudHSM hsm in a different Amazon Web Services account.
func (*Client) DeleteResourcePolicy ¶ added in v1.25.0
func (c *Client) DeleteResourcePolicy(ctx context.Context, params *DeleteResourcePolicyInput, optFns ...func(*Options)) (*DeleteResourcePolicyOutput, error)
Deletes an CloudHSM resource policy. Deleting a resource policy will result in
the resource being unshared and removed from any RAM resource shares. Deleting the resource policy attached to a backup will not impact any clusters created from that backup.
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
func (*Client) DescribeBackups ¶
func (c *Client) DescribeBackups(ctx context.Context, params *DescribeBackupsInput, optFns ...func(*Options)) (*DescribeBackupsOutput, error)
Gets information about backups of CloudHSM clusters. Lists either the backups you own or the backups shared with you when the Shared parameter is true.
This is a paginated operation, which means that each response might contain only a subset of all the backups. When the response contains only a subset of backups, it includes a NextToken value. Use this value in a subsequent DescribeBackups request to get more backups. When you receive a response with no NextToken (or an empty or null value), that means there are no more backups to get.
Cross-account use: Yes. Customers can describe backups in other Amazon Web Services accounts that are shared with them.
func (*Client) DescribeClusters ¶
func (c *Client) DescribeClusters(ctx context.Context, params *DescribeClustersInput, optFns ...func(*Options)) (*DescribeClustersOutput, error)
Gets information about CloudHSM clusters.
This is a paginated operation, which means that each response might contain only a subset of all the clusters. When the response contains only a subset of clusters, it includes a NextToken value. Use this value in a subsequent DescribeClusters request to get more clusters. When you receive a response with no NextToken (or an empty or null value), that means there are no more clusters to get.
Cross-account use: No. You cannot perform this operation on CloudHSM clusters in a different Amazon Web Services account.
func (*Client) GetResourcePolicy ¶ added in v1.25.0
func (c *Client) GetResourcePolicy(ctx context.Context, params *GetResourcePolicyInput, optFns ...func(*Options)) (*GetResourcePolicyOutput, error)
Retrieves the resource policy document attached to a given resource.
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
func (*Client) InitializeCluster ¶
func (c *Client) InitializeCluster(ctx context.Context, params *InitializeClusterInput, optFns ...func(*Options)) (*InitializeClusterOutput, error)
Claims an CloudHSM cluster by submitting the cluster certificate issued by your issuing certificate authority (CA) and the CA's root certificate. Before you can claim a cluster, you must sign the cluster's certificate signing request (CSR) with your issuing CA. To get the cluster's CSR, use DescribeClusters.
Cross-account use: No. You cannot perform this operation on an CloudHSM cluster in a different Amazon Web Services account.
func (*Client) ListTags ¶
func (c *Client) ListTags(ctx context.Context, params *ListTagsInput, optFns ...func(*Options)) (*ListTagsOutput, error)
Gets a list of tags for the specified CloudHSM cluster.
This is a paginated operation, which means that each response might contain only a subset of all the tags. When the response contains only a subset of tags, it includes a NextToken value. Use this value in a subsequent ListTags request to get more tags. When you receive a response with no NextToken (or an empty or null value), that means there are no more tags to get.
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
func (*Client) ModifyBackupAttributes ¶ added in v0.30.0
func (c *Client) ModifyBackupAttributes(ctx context.Context, params *ModifyBackupAttributesInput, optFns ...func(*Options)) (*ModifyBackupAttributesOutput, error)
Modifies attributes for CloudHSM backup.
Cross-account use: No. You cannot perform this operation on an CloudHSM backup in a different Amazon Web Services account.
func (*Client) ModifyCluster ¶ added in v0.30.0
func (c *Client) ModifyCluster(ctx context.Context, params *ModifyClusterInput, optFns ...func(*Options)) (*ModifyClusterOutput, error)
Modifies CloudHSM cluster.
Cross-account use: No. You cannot perform this operation on an CloudHSM cluster in a different Amazon Web Services account.
func (*Client) Options ¶ added in v1.19.0
Options returns a copy of the client configuration.
Callers SHOULD NOT perform mutations on any inner structures within client config. Config overrides should instead be made on a per-operation basis through functional options.
func (*Client) PutResourcePolicy ¶ added in v1.25.0
func (c *Client) PutResourcePolicy(ctx context.Context, params *PutResourcePolicyInput, optFns ...func(*Options)) (*PutResourcePolicyOutput, error)
Creates or updates an CloudHSM resource policy. A resource policy helps you to define the IAM entity (for example, an Amazon Web Services account) that can manage your CloudHSM resources. The following resources support CloudHSM resource policies:
- Backup - The resource policy allows you to describe the backup and restore a cluster from the backup in another Amazon Web Services account.
In order to share a backup, it must be in a 'READY' state and you must own it.
While you can share a backup using the CloudHSM PutResourcePolicy operation, we recommend using Resource Access Manager (RAM) instead. Using RAM provides multiple benefits as it creates the policy for you, allows multiple resources to be shared at one time, and increases the discoverability of shared resources. If you use PutResourcePolicy and want consumers to be able to describe the backups you share with them, you must promote the backup to a standard RAM Resource Share using the RAM PromoteResourceShareCreatedFromPolicy API operation.
For more information, see Working with shared backups in the CloudHSM User Guide
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
func (*Client) RestoreBackup ¶
func (c *Client) RestoreBackup(ctx context.Context, params *RestoreBackupInput, optFns ...func(*Options)) (*RestoreBackupOutput, error)
Restores a specified CloudHSM backup that is in the PENDING_DELETION state. For more information on deleting a backup, see DeleteBackup.
Cross-account use: No. You cannot perform this operation on an CloudHSM backup in a different Amazon Web Services account.
func (*Client) TagResource ¶
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
Adds or overwrites one or more tags for the specified CloudHSM cluster.
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
func (*Client) UntagResource ¶
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Removes the specified tag or tags from the specified CloudHSM cluster.
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
type CopyBackupToRegionInput ¶
type CopyBackupToRegionInput struct { // The ID of the backup that will be copied to the destination region. // // This member is required. BackupId *string // The AWS region that will contain your copied CloudHSM cluster backup. // // This member is required. DestinationRegion *string // Tags to apply to the destination backup during creation. If you specify tags, // only these tags will be applied to the destination backup. If you do not specify // tags, the service copies tags from the source backup to the destination backup. TagList []types.Tag // contains filtered or unexported fields }
type CopyBackupToRegionOutput ¶
type CopyBackupToRegionOutput struct { // Information on the backup that will be copied to the destination region, // including CreateTimestamp, SourceBackup, SourceCluster, and Source Region. // CreateTimestamp of the destination backup will be the same as that of the source // backup. // // You will need to use the sourceBackupID returned in this operation to use the DescribeBackups // operation on the backup that will be copied to the destination region. DestinationBackup *types.DestinationBackup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateClusterInput ¶
type CreateClusterInput struct { // The type of HSM to use in the cluster. The allowed values are hsm1.medium and // hsm2m.medium . // // This member is required. HsmType *string // The identifiers (IDs) of the subnets where you are creating the cluster. You // must specify at least one subnet. If you specify multiple subnets, they must // meet the following criteria: // // - All subnets must be in the same virtual private cloud (VPC). // // - You can specify only one subnet per Availability Zone. // // This member is required. SubnetIds []string // A policy that defines how the service retains backups. BackupRetentionPolicy *types.BackupRetentionPolicy // The mode to use in the cluster. The allowed values are FIPS and NON_FIPS . Mode types.ClusterMode // The NetworkType to create a cluster with. The allowed values are IPV4 and // DUALSTACK . NetworkType types.NetworkType // The identifier (ID) or the Amazon Resource Name (ARN) of the cluster backup to // restore. Use this value to restore the cluster from a backup instead of creating // a new cluster. To find the backup ID or ARN, use DescribeBackups. If using a backup in another // account, the full ARN must be supplied. SourceBackupId *string // Tags to apply to the CloudHSM cluster during creation. TagList []types.Tag // contains filtered or unexported fields }
type CreateClusterOutput ¶
type CreateClusterOutput struct { // Information about the cluster that was created. Cluster *types.Cluster // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateHsmInput ¶
type CreateHsmInput struct { // The Availability Zone where you are creating the HSM. To find the cluster's // Availability Zones, use DescribeClusters. // // This member is required. AvailabilityZone *string // The identifier (ID) of the HSM's cluster. To find the cluster ID, use DescribeClusters. // // This member is required. ClusterId *string // The HSM's IP address. If you specify an IP address, use an available address // from the subnet that maps to the Availability Zone where you are creating the // HSM. If you don't specify an IP address, one is chosen for you from that subnet. IpAddress *string // contains filtered or unexported fields }
type CreateHsmOutput ¶
type CreateHsmOutput struct { // Information about the HSM that was created. Hsm *types.Hsm // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteBackupInput ¶
type DeleteBackupInput struct { // The ID of the backup to be deleted. To find the ID of a backup, use the DescribeBackups // operation. // // This member is required. BackupId *string // contains filtered or unexported fields }
type DeleteBackupOutput ¶
type DeleteBackupOutput struct { // Information on the Backup object deleted. Backup *types.Backup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteClusterInput ¶
type DeleteClusterInput struct { // The identifier (ID) of the cluster that you are deleting. To find the cluster // ID, use DescribeClusters. // // This member is required. ClusterId *string // contains filtered or unexported fields }
type DeleteClusterOutput ¶
type DeleteClusterOutput struct { // Information about the cluster that was deleted. Cluster *types.Cluster // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteHsmInput ¶
type DeleteHsmInput struct { // The identifier (ID) of the cluster that contains the HSM that you are deleting. // // This member is required. ClusterId *string // The identifier (ID) of the elastic network interface (ENI) of the HSM that you // are deleting. EniId *string // The IP address of the elastic network interface (ENI) of the HSM that you are // deleting. EniIp *string // The identifier (ID) of the HSM that you are deleting. HsmId *string // contains filtered or unexported fields }
type DeleteHsmOutput ¶
type DeleteHsmOutput struct { // The identifier (ID) of the HSM that was deleted. HsmId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteResourcePolicyInput ¶ added in v1.25.0
type DeleteResourcePolicyInput struct { // Amazon Resource Name (ARN) of the resource from which the policy will be // removed. ResourceArn *string // contains filtered or unexported fields }
type DeleteResourcePolicyOutput ¶ added in v1.25.0
type DeleteResourcePolicyOutput struct { // The policy previously attached to the resource. Policy *string // Amazon Resource Name (ARN) of the resource from which the policy was deleted. ResourceArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeBackupsAPIClient ¶ added in v0.30.0
type DescribeBackupsAPIClient interface {
DescribeBackups(context.Context, *DescribeBackupsInput, ...func(*Options)) (*DescribeBackupsOutput, error)
}
DescribeBackupsAPIClient is a client that implements the DescribeBackups operation.
type DescribeBackupsInput ¶
type DescribeBackupsInput struct { // One or more filters to limit the items returned in the response. // // Use the backupIds filter to return only the specified backups. Specify backups // by their backup identifier (ID). // // Use the sourceBackupIds filter to return only the backups created from a source // backup. The sourceBackupID of a source backup is returned by the CopyBackupToRegion operation. // // Use the clusterIds filter to return only the backups for the specified // clusters. Specify clusters by their cluster identifier (ID). // // Use the states filter to return only backups that match the specified state. // // Use the neverExpires filter to return backups filtered by the value in the // neverExpires parameter. True returns all backups exempt from the backup // retention policy. False returns all backups with a backup retention policy // defined at the cluster. Filters map[string][]string // The maximum number of backups to return in the response. When there are more // backups than the number you specify, the response contains a NextToken value. MaxResults *int32 // The NextToken value that you received in the previous response. Use this value // to get more backups. NextToken *string // // By default when using this option, the command returns backups that have been // shared using a standard Resource Access Manager resource share. In order for a // backup that was shared using the PutResourcePolicy command to be returned, the // share must be promoted to a standard resource share using the RAM [PromoteResourceShareCreatedFromPolicy]API // operation. // // For more information about sharing backups, see [Working with shared backups] in the CloudHSM User Guide. // // [Working with shared backups]: https://docs.aws.amazon.com/cloudhsm/latest/userguide/sharing.html // [PromoteResourceShareCreatedFromPolicy]: https://docs.aws.amazon.com/cli/latest/reference/ram/promote-resource-share-created-from-policy.html Shared *bool // Designates whether or not to sort the return backups by ascending chronological // order of generation. SortAscending *bool // contains filtered or unexported fields }
type DescribeBackupsOutput ¶
type DescribeBackupsOutput struct { // A list of backups. Backups []types.Backup // An opaque string that indicates that the response contains only a subset of // backups. Use this value in a subsequent DescribeBackups request to get more // backups. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeBackupsPaginator ¶ added in v0.30.0
type DescribeBackupsPaginator struct {
// contains filtered or unexported fields
}
DescribeBackupsPaginator is a paginator for DescribeBackups
func NewDescribeBackupsPaginator ¶ added in v0.30.0
func NewDescribeBackupsPaginator(client DescribeBackupsAPIClient, params *DescribeBackupsInput, optFns ...func(*DescribeBackupsPaginatorOptions)) *DescribeBackupsPaginator
NewDescribeBackupsPaginator returns a new DescribeBackupsPaginator
func (*DescribeBackupsPaginator) HasMorePages ¶ added in v0.30.0
func (p *DescribeBackupsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*DescribeBackupsPaginator) NextPage ¶ added in v0.30.0
func (p *DescribeBackupsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeBackupsOutput, error)
NextPage retrieves the next DescribeBackups page.
type DescribeBackupsPaginatorOptions ¶ added in v0.30.0
type DescribeBackupsPaginatorOptions struct { // The maximum number of backups to return in the response. When there are more // backups than the number you specify, the response contains a NextToken value. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
DescribeBackupsPaginatorOptions is the paginator options for DescribeBackups
type DescribeClustersAPIClient ¶ added in v0.30.0
type DescribeClustersAPIClient interface {
DescribeClusters(context.Context, *DescribeClustersInput, ...func(*Options)) (*DescribeClustersOutput, error)
}
DescribeClustersAPIClient is a client that implements the DescribeClusters operation.
type DescribeClustersInput ¶
type DescribeClustersInput struct { // One or more filters to limit the items returned in the response. // // Use the clusterIds filter to return only the specified clusters. Specify // clusters by their cluster identifier (ID). // // Use the vpcIds filter to return only the clusters in the specified virtual // private clouds (VPCs). Specify VPCs by their VPC identifier (ID). // // Use the states filter to return only clusters that match the specified state. Filters map[string][]string // The maximum number of clusters to return in the response. When there are more // clusters than the number you specify, the response contains a NextToken value. MaxResults *int32 // The NextToken value that you received in the previous response. Use this value // to get more clusters. NextToken *string // contains filtered or unexported fields }
type DescribeClustersOutput ¶
type DescribeClustersOutput struct { // A list of clusters. Clusters []types.Cluster // An opaque string that indicates that the response contains only a subset of // clusters. Use this value in a subsequent DescribeClusters request to get more // clusters. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeClustersPaginator ¶ added in v0.30.0
type DescribeClustersPaginator struct {
// contains filtered or unexported fields
}
DescribeClustersPaginator is a paginator for DescribeClusters
func NewDescribeClustersPaginator ¶ added in v0.30.0
func NewDescribeClustersPaginator(client DescribeClustersAPIClient, params *DescribeClustersInput, optFns ...func(*DescribeClustersPaginatorOptions)) *DescribeClustersPaginator
NewDescribeClustersPaginator returns a new DescribeClustersPaginator
func (*DescribeClustersPaginator) HasMorePages ¶ added in v0.30.0
func (p *DescribeClustersPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*DescribeClustersPaginator) NextPage ¶ added in v0.30.0
func (p *DescribeClustersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeClustersOutput, error)
NextPage retrieves the next DescribeClusters page.
type DescribeClustersPaginatorOptions ¶ added in v0.30.0
type DescribeClustersPaginatorOptions struct { // The maximum number of clusters to return in the response. When there are more // clusters than the number you specify, the response contains a NextToken value. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
DescribeClustersPaginatorOptions is the paginator options for DescribeClusters
type EndpointParameters ¶ added in v1.15.0
type EndpointParameters struct { // The AWS region used to dispatch the request. // // Parameter is // required. // // AWS::Region Region *string // When true, use the dual-stack endpoint. If the configured endpoint does not // support dual-stack, dispatching the request MAY return an error. // // Defaults to // false if no value is provided. // // AWS::UseDualStack UseDualStack *bool // When true, send this request to the FIPS-compliant regional endpoint. If the // configured endpoint does not have a FIPS compliant endpoint, dispatching the // request will return an error. // // Defaults to false if no value is // provided. // // AWS::UseFIPS UseFIPS *bool // Override the endpoint used to send this request // // Parameter is // required. // // SDK::Endpoint Endpoint *string }
EndpointParameters provides the parameters that influence how endpoints are resolved.
func (EndpointParameters) ValidateRequired ¶ added in v1.15.0
func (p EndpointParameters) ValidateRequired() error
ValidateRequired validates required parameters are set.
func (EndpointParameters) WithDefaults ¶ added in v1.15.0
func (p EndpointParameters) WithDefaults() EndpointParameters
WithDefaults returns a shallow copy of EndpointParameterswith default values applied to members where applicable.
type EndpointResolver ¶
type EndpointResolver interface {
ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}
EndpointResolver interface for resolving service endpoints.
func EndpointResolverFromURL ¶ added in v1.1.0
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver
EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url. By default, the resolved endpoint resolver uses the client region as signing region, and the endpoint source is set to EndpointSourceCustom.You can provide functional options to configure endpoint values for the resolved endpoint.
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)
type EndpointResolverOptions ¶ added in v0.29.0
type EndpointResolverOptions = internalendpoints.Options
EndpointResolverOptions is the service endpoint resolver options
type EndpointResolverV2 ¶ added in v1.15.0
type EndpointResolverV2 interface { // ResolveEndpoint attempts to resolve the endpoint with the provided options, // returning the endpoint if found. Otherwise an error is returned. ResolveEndpoint(ctx context.Context, params EndpointParameters) ( smithyendpoints.Endpoint, error, ) }
EndpointResolverV2 provides the interface for resolving service endpoints.
func NewDefaultEndpointResolverV2 ¶ added in v1.15.0
func NewDefaultEndpointResolverV2() EndpointResolverV2
type GetResourcePolicyInput ¶ added in v1.25.0
type GetResourcePolicyInput struct { // Amazon Resource Name (ARN) of the resource to which a policy is attached. ResourceArn *string // contains filtered or unexported fields }
type GetResourcePolicyOutput ¶ added in v1.25.0
type GetResourcePolicyOutput struct { // The policy attached to a resource. Policy *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type HTTPSignerV4 ¶
type InitializeClusterInput ¶
type InitializeClusterInput struct { // The identifier (ID) of the cluster that you are claiming. To find the cluster // ID, use DescribeClusters. // // This member is required. ClusterId *string // The cluster certificate issued (signed) by your issuing certificate authority // (CA). The certificate must be in PEM format and can contain a maximum of 5000 // characters. // // This member is required. SignedCert *string // The issuing certificate of the issuing certificate authority (CA) that issued // (signed) the cluster certificate. You must use a self-signed certificate. The // certificate used to sign the HSM CSR must be directly available, and thus must // be the root certificate. The certificate must be in PEM format and can contain a // maximum of 5000 characters. // // This member is required. TrustAnchor *string // contains filtered or unexported fields }
type InitializeClusterOutput ¶
type InitializeClusterOutput struct { // The cluster's state. State types.ClusterState // A description of the cluster's state. StateMessage *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListTagsAPIClient ¶ added in v0.30.0
type ListTagsAPIClient interface {
ListTags(context.Context, *ListTagsInput, ...func(*Options)) (*ListTagsOutput, error)
}
ListTagsAPIClient is a client that implements the ListTags operation.
type ListTagsInput ¶
type ListTagsInput struct { // The cluster identifier (ID) for the cluster whose tags you are getting. To find // the cluster ID, use DescribeClusters. // // This member is required. ResourceId *string // The maximum number of tags to return in the response. When there are more tags // than the number you specify, the response contains a NextToken value. MaxResults *int32 // The NextToken value that you received in the previous response. Use this value // to get more tags. NextToken *string // contains filtered or unexported fields }
type ListTagsOutput ¶
type ListTagsOutput struct { // A list of tags. // // This member is required. TagList []types.Tag // An opaque string that indicates that the response contains only a subset of // tags. Use this value in a subsequent ListTags request to get more tags. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListTagsPaginator ¶ added in v0.30.0
type ListTagsPaginator struct {
// contains filtered or unexported fields
}
ListTagsPaginator is a paginator for ListTags
func NewListTagsPaginator ¶ added in v0.30.0
func NewListTagsPaginator(client ListTagsAPIClient, params *ListTagsInput, optFns ...func(*ListTagsPaginatorOptions)) *ListTagsPaginator
NewListTagsPaginator returns a new ListTagsPaginator
func (*ListTagsPaginator) HasMorePages ¶ added in v0.30.0
func (p *ListTagsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListTagsPaginator) NextPage ¶ added in v0.30.0
func (p *ListTagsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTagsOutput, error)
NextPage retrieves the next ListTags page.
type ListTagsPaginatorOptions ¶ added in v0.30.0
type ListTagsPaginatorOptions struct { // The maximum number of tags to return in the response. When there are more tags // than the number you specify, the response contains a NextToken value. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListTagsPaginatorOptions is the paginator options for ListTags
type ModifyBackupAttributesInput ¶ added in v0.30.0
type ModifyBackupAttributesInput struct { // The identifier (ID) of the backup to modify. To find the ID of a backup, use // the DescribeBackupsoperation. // // This member is required. BackupId *string // Specifies whether the service should exempt a backup from the retention policy // for the cluster. True exempts a backup from the retention policy. False means // the service applies the backup retention policy defined at the cluster. // // This member is required. NeverExpires *bool // contains filtered or unexported fields }
type ModifyBackupAttributesOutput ¶ added in v0.30.0
type ModifyBackupAttributesOutput struct { // Contains information about a backup of an CloudHSM cluster. All backup objects // contain the BackupId , BackupState , ClusterId , and CreateTimestamp // parameters. Backups that were copied into a destination region additionally // contain the CopyTimestamp , SourceBackup , SourceCluster , and SourceRegion // parameters. A backup that is pending deletion will include the DeleteTimestamp // parameter. Backup *types.Backup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ModifyClusterInput ¶ added in v0.30.0
type ModifyClusterInput struct { // The identifier (ID) of the cluster that you want to modify. To find the cluster // ID, use DescribeClusters. // // This member is required. ClusterId *string // A policy that defines how the service retains backups. BackupRetentionPolicy *types.BackupRetentionPolicy // The desired HSM type of the cluster. HsmType *string // contains filtered or unexported fields }
type ModifyClusterOutput ¶ added in v0.30.0
type ModifyClusterOutput struct { // Contains information about an CloudHSM cluster. Cluster *types.Cluster // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // The optional application specific identifier appended to the User-Agent header. AppID string // This endpoint will be given as input to an EndpointResolverV2. It is used for // providing a custom base endpoint that is subject to modifications by the // processing EndpointResolverV2. BaseEndpoint *string // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The configuration DefaultsMode that the SDK should use when constructing the // clients initial default settings. DefaultsMode aws.DefaultsMode // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions EndpointResolverOptions // The service endpoint resolver. // // Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a // value for this field will likely prevent you from using any endpoint-related // service features released after the introduction of EndpointResolverV2 and // BaseEndpoint. // // To migrate an EndpointResolver implementation that uses a custom endpoint, set // the client option BaseEndpoint instead. EndpointResolver EndpointResolver // Resolves the endpoint used for a particular service operation. This should be // used over the deprecated EndpointResolver. EndpointResolverV2 EndpointResolverV2 // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The logger writer interface to write logging messages to. Logger logging.Logger // The client meter provider. MeterProvider metrics.MeterProvider // The region to send requests to. (Required) Region string // RetryMaxAttempts specifies the maximum number attempts an API client will call // an operation that fails with a retryable error. A value of 0 is ignored, and // will not be used to configure the API client created default retryer, or modify // per operation call's retry max attempts. // // If specified in an operation call's functional options with a value that is // different than the constructed client's Options, the Client's Retryer will be // wrapped to use the operation's specific RetryMaxAttempts value. RetryMaxAttempts int // RetryMode specifies the retry mode the API client will be created with, if // Retryer option is not also specified. // // When creating a new API Clients this member will only be used if the Retryer // Options member is nil. This value will be ignored if Retryer is not nil. // // Currently does not support per operation call overrides, may in the future. RetryMode aws.RetryMode // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. The kind of // default retry created by the API client can be changed with the RetryMode // option. Retryer aws.Retryer // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You // should not populate this structure programmatically, or rely on the values here // within your applications. RuntimeEnvironment aws.RuntimeEnvironment // The client tracer provider. TracerProvider tracing.TracerProvider // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient // The auth scheme resolver which determines how to authenticate for each // operation. AuthSchemeResolver AuthSchemeResolver // The list of auth schemes supported by the client. AuthSchemes []smithyhttp.AuthScheme // contains filtered or unexported fields }
func (Options) GetIdentityResolver ¶ added in v1.18.2
func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver
type PutResourcePolicyInput ¶ added in v1.25.0
type PutResourcePolicyInput struct { // The policy you want to associate with a resource. // // For an example policy, see [Working with shared backups] in the CloudHSM User Guide // // [Working with shared backups]: https://docs.aws.amazon.com/cloudhsm/latest/userguide/sharing.html Policy *string // Amazon Resource Name (ARN) of the resource to which you want to attach a // policy. ResourceArn *string // contains filtered or unexported fields }
type PutResourcePolicyOutput ¶ added in v1.25.0
type PutResourcePolicyOutput struct { // The policy attached to a resource. Policy *string // Amazon Resource Name (ARN) of the resource to which a policy is attached. ResourceArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type RestoreBackupInput ¶
type RestoreBackupInput struct { // The ID of the backup to be restored. To find the ID of a backup, use the DescribeBackups // operation. // // This member is required. BackupId *string // contains filtered or unexported fields }
type RestoreBackupOutput ¶
type RestoreBackupOutput struct { // Information on the Backup object created. Backup *types.Backup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type TagResourceInput ¶
type TagResourceInput struct { // The cluster identifier (ID) for the cluster that you are tagging. To find the // cluster ID, use DescribeClusters. // // This member is required. ResourceId *string // A list of one or more tags. // // This member is required. TagList []types.Tag // contains filtered or unexported fields }
type TagResourceOutput ¶
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UntagResourceInput ¶
type UntagResourceInput struct { // The cluster identifier (ID) for the cluster whose tags you are removing. To // find the cluster ID, use DescribeClusters. // // This member is required. ResourceId *string // A list of one or more tag keys for the tags that you are removing. Specify only // the tag keys, not the tag values. // // This member is required. TagKeyList []string // contains filtered or unexported fields }
type UntagResourceOutput ¶
type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Source Files ¶
- api_client.go
- api_op_CopyBackupToRegion.go
- api_op_CreateCluster.go
- api_op_CreateHsm.go
- api_op_DeleteBackup.go
- api_op_DeleteCluster.go
- api_op_DeleteHsm.go
- api_op_DeleteResourcePolicy.go
- api_op_DescribeBackups.go
- api_op_DescribeClusters.go
- api_op_GetResourcePolicy.go
- api_op_InitializeCluster.go
- api_op_ListTags.go
- api_op_ModifyBackupAttributes.go
- api_op_ModifyCluster.go
- api_op_PutResourcePolicy.go
- api_op_RestoreBackup.go
- api_op_TagResource.go
- api_op_UntagResource.go
- auth.go
- deserializers.go
- doc.go
- endpoints.go
- go_module_metadata.go
- options.go
- serializers.go
- validators.go