Package: kms
Overview
Package kms provides the API client, operations, and parameter types for AWS Key Management Service.
Key Management Service
Key Management Service (KMS) is an encryption and key management web service. This guide describes the KMS operations that you can call programmatically. For general information about KMS, see the Key Management Service Developer Guide.
KMS has replaced the term customer master key (CMK) with KMS key and KMS key. The concept has not changed. To prevent breaking changes, KMS is keeping some variations of this term.
Amazon Web Services provides SDKs that consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .Net, macOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to KMS and other Amazon Web Services services. For example, the SDKs take care of tasks such as signing requests (see below), managing errors, and retrying requests automatically. For more information about the Amazon Web Services SDKs, including how to download and install them, see Tools for Amazon Web Services.
We recommend that you use the Amazon Web Services SDKs to make programmatic API calls to KMS.
If you need to use FIPS 140-2 validated cryptographic modules when communicating with Amazon Web Services, use the FIPS endpoint in your preferred Amazon Web Services Region. For more information about the available FIPS endpoints, see endpoints[https://docs.aws.amazon.com/general/latest/gr/kms.html#kms_region]in the Key Management Service topic of the Amazon Web Services General Reference.
All KMS API calls must be signed and be transmitted using Transport Layer Security (TLS). KMS recommends you always use the latest supported TLS version. Clients must also support cipher suites with Perfect Forward Secrecy (PFS) such as Ephemeral Diffie-Hellman (DHE) or Elliptic Curve Ephemeral Diffie-Hellman (ECDHE). Most modern systems such as Java 7 and later support these modes.
Signing Requests
Requests must be signed using an access key ID and a secret access key. We strongly recommend that you do not use your Amazon Web Services account root access key ID and secret access key for everyday work. You can use the access key ID and secret access key for an IAM user or you can use the Security Token Service (STS) to generate temporary security credentials and use those to sign requests.
All KMS requests must be signed with Signature Version 4.
Logging API Requests
KMS supports CloudTrail, a service that logs Amazon Web Services API calls and related events for your Amazon Web Services account and delivers them to an Amazon S3 bucket that you specify. By using the information collected by CloudTrail, you can determine what requests were made to KMS, who made the request, when it was made, and so on. To learn more about CloudTrail, including how to turn it on and find your log files, see the CloudTrail User Guide.
Additional Resources
For more information about credentials and request signing, see the following:
Amazon Web Services Security Credentials - - This topic provides general information about the types of credentials used to access Amazon Web Services.
Temporary Security Credentials - - This section of the IAM User Guide describes how to create and use temporary security credentials.
Signature Version 4 Signing Process - - This set of topics walks you through the process of signing a request using an access key ID and a secret access key.
Commonly Used API Operations
Of the API operations discussed in this guide, the following will prove the most useful for most applications. You will likely perform operations other than these, such as creating keys and assigning policies, by using the console.
Encrypt
Decrypt
GenerateDataKey
GenerateDataKeyWithoutPlaintext
Constants
-
const ServiceID = readonly
-
Value:
"KMS" -
const ServiceAPIVersion = readonly
-
Value:
"2014-11-01"
Variables
-
var _ DescribeCustomKeyStoresAPIClient = writable
-
Value:
(*Client)(nil)
Type Summary collapse
-
AuthResolverParameters
struct
AuthResolverParameters contains the set of inputs necessary for auth scheme resolution.
- CancelKeyDeletionInput struct
- CancelKeyDeletionOutput struct
-
Client
struct
Returns a unique asymmetric data key pair for use outside of KMS.
- ConnectCustomKeyStoreInput struct
- ConnectCustomKeyStoreOutput struct
- CreateAliasInput struct
- CreateAliasOutput struct
- CreateCustomKeyStoreInput struct
- CreateCustomKeyStoreOutput struct
- CreateGrantInput struct
- CreateGrantOutput struct
- CreateKeyInput struct
- CreateKeyOutput struct
- DecryptInput struct
- DecryptOutput struct
- DeleteAliasInput struct
- DeleteAliasOutput struct
- DeleteCustomKeyStoreInput struct
- DeleteCustomKeyStoreOutput struct
- DeleteImportedKeyMaterialInput struct
- DeleteImportedKeyMaterialOutput struct
- DeriveSharedSecretInput struct
- DeriveSharedSecretOutput struct
- DescribeCustomKeyStoresInput struct
- DescribeCustomKeyStoresOutput struct
-
DescribeCustomKeyStoresPaginator
struct
DescribeCustomKeyStoresPaginator is a paginator for DescribeCustomKeyStores.
-
DescribeCustomKeyStoresPaginatorOptions
struct
DescribeCustomKeyStoresPaginatorOptions is the paginator options for DescribeCustomKeyStores.
- DescribeKeyInput struct
- DescribeKeyOutput struct
- DisableKeyInput struct
- DisableKeyOutput struct
- DisableKeyRotationInput struct
- DisableKeyRotationOutput struct
- DisconnectCustomKeyStoreInput struct
- DisconnectCustomKeyStoreOutput struct
- EnableKeyInput struct
- EnableKeyOutput struct
- EnableKeyRotationInput struct
- EnableKeyRotationOutput struct
- EncryptInput struct
- EncryptOutput struct
-
EndpointParameters
struct
EndpointParameters provides the parameters that influence how endpoints are resolved.
- EndpointResolverFunc struct
- GenerateDataKeyInput struct
- GenerateDataKeyOutput struct
- GenerateDataKeyPairInput struct
- GenerateDataKeyPairOutput struct
- GenerateDataKeyPairWithoutPlaintextInput struct
- GenerateDataKeyPairWithoutPlaintextOutput struct
- GenerateDataKeyWithoutPlaintextInput struct
- GenerateDataKeyWithoutPlaintextOutput struct
- GenerateMacInput struct
- GenerateMacOutput struct
- GenerateRandomInput struct
- GenerateRandomOutput struct
- GetKeyPolicyInput struct
- GetKeyPolicyOutput struct
- GetKeyRotationStatusInput struct
- GetKeyRotationStatusOutput struct
- GetParametersForImportInput struct
- GetParametersForImportOutput struct
- GetPublicKeyInput struct
- GetPublicKeyOutput struct
- ImportKeyMaterialInput struct
- ImportKeyMaterialOutput struct
- ListAliasesInput struct
- ListAliasesOutput struct
-
ListAliasesPaginator
struct
ListAliasesPaginator is a paginator for ListAliases.
-
ListAliasesPaginatorOptions
struct
ListAliasesPaginatorOptions is the paginator options for ListAliases.
- ListGrantsInput struct
- ListGrantsOutput struct
-
ListGrantsPaginator
struct
ListGrantsPaginator is a paginator for ListGrants.
-
ListGrantsPaginatorOptions
struct
ListGrantsPaginatorOptions is the paginator options for ListGrants.
- ListKeyPoliciesInput struct
- ListKeyPoliciesOutput struct
-
ListKeyPoliciesPaginator
struct
ListKeyPoliciesPaginator is a paginator for ListKeyPolicies.
-
ListKeyPoliciesPaginatorOptions
struct
ListKeyPoliciesPaginatorOptions is the paginator options for ListKeyPolicies.
- ListKeyRotationsInput struct
- ListKeyRotationsOutput struct
-
ListKeyRotationsPaginator
struct
ListKeyRotationsPaginator is a paginator for ListKeyRotations.
-
ListKeyRotationsPaginatorOptions
struct
ListKeyRotationsPaginatorOptions is the paginator options for ListKeyRotations.
- ListKeysInput struct
- ListKeysOutput struct
-
ListKeysPaginator
struct
ListKeysPaginator is a paginator for ListKeys.
-
ListKeysPaginatorOptions
struct
ListKeysPaginatorOptions is the paginator options for ListKeys.
- ListResourceTagsInput struct
- ListResourceTagsOutput struct
-
ListResourceTagsPaginator
struct
ListResourceTagsPaginator is a paginator for ListResourceTags.
-
ListResourceTagsPaginatorOptions
struct
ListResourceTagsPaginatorOptions is the paginator options for ListResourceTags.
- ListRetirableGrantsInput struct
- ListRetirableGrantsOutput struct
-
ListRetirableGrantsPaginator
struct
ListRetirableGrantsPaginator is a paginator for ListRetirableGrants.
-
ListRetirableGrantsPaginatorOptions
struct
ListRetirableGrantsPaginatorOptions is the paginator options for ListRetirableGrants.
- Options struct
- PutKeyPolicyInput struct
- PutKeyPolicyOutput struct
- ReEncryptInput struct
- ReEncryptOutput struct
- ReplicateKeyInput struct
- ReplicateKeyOutput struct
- ResolveEndpoint struct
- RetireGrantInput struct
- RetireGrantOutput struct
- RevokeGrantInput struct
- RevokeGrantOutput struct
- RotateKeyOnDemandInput struct
- RotateKeyOnDemandOutput struct
- ScheduleKeyDeletionInput struct
- ScheduleKeyDeletionOutput struct
- SignInput struct
- SignOutput struct
- TagResourceInput struct
- TagResourceOutput struct
- UntagResourceInput struct
- UntagResourceOutput struct
- UpdateAliasInput struct
- UpdateAliasOutput struct
- UpdateCustomKeyStoreInput struct
- UpdateCustomKeyStoreOutput struct
- UpdateKeyDescriptionInput struct
- UpdateKeyDescriptionOutput struct
- UpdatePrimaryRegionInput struct
- UpdatePrimaryRegionOutput struct
- VerifyInput struct
- VerifyMacInput struct
- VerifyMacOutput struct
- VerifyOutput struct
Interface Summary collapse
-
AuthSchemeResolver
interface
AuthSchemeResolver returns a set of possible authentication options for an operation.
-
DescribeCustomKeyStoresAPIClient
interface
DescribeCustomKeyStoresAPIClient is a client that implements the DescribeCustomKeyStores operation.
-
EndpointResolver
interface
EndpointResolver interface for resolving service endpoints.
-
EndpointResolverV2
interface
EndpointResolverV2 provides the interface for resolving service endpoints.
- HTTPClient interface
- HTTPSignerV4 interface
-
ListAliasesAPIClient
interface
ListAliasesAPIClient is a client that implements the ListAliases operation.
-
ListGrantsAPIClient
interface
ListGrantsAPIClient is a client that implements the ListGrants operation.
-
ListKeyPoliciesAPIClient
interface
ListKeyPoliciesAPIClient is a client that implements the ListKeyPolicies operation.
-
ListKeyRotationsAPIClient
interface
ListKeyRotationsAPIClient is a client that implements the ListKeyRotations operation.
-
ListKeysAPIClient
interface
ListKeysAPIClient is a client that implements the ListKeys operation.
-
ListResourceTagsAPIClient
interface
ListResourceTagsAPIClient is a client that implements the ListResourceTags operation.
-
ListRetirableGrantsAPIClient
interface
ListRetirableGrantsAPIClient is a client that implements the ListRetirableGrants operation.
Function Summary collapse
-
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver
EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url.
-
func New(options Options, optFns ...func(*Options)) *Client
New returns an initialized Client based on the functional options.
-
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver.
- func NewDefaultEndpointResolverV2() EndpointResolverV2
-
func NewDescribeCustomKeyStoresPaginator(client DescribeCustomKeyStoresAPIClient, params *DescribeCustomKeyStoresInput, optFns ...func(*DescribeCustomKeyStoresPaginatorOptions)) *DescribeCustomKeyStoresPaginator
NewDescribeCustomKeyStoresPaginator returns a new DescribeCustomKeyStoresPaginator.
-
func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client
NewFromConfig returns a new client from the provided config.
-
func NewListAliasesPaginator(client ListAliasesAPIClient, params *ListAliasesInput, optFns ...func(*ListAliasesPaginatorOptions)) *ListAliasesPaginator
NewListAliasesPaginator returns a new ListAliasesPaginator.
-
func NewListGrantsPaginator(client ListGrantsAPIClient, params *ListGrantsInput, optFns ...func(*ListGrantsPaginatorOptions)) *ListGrantsPaginator
NewListGrantsPaginator returns a new ListGrantsPaginator.
-
func NewListKeyPoliciesPaginator(client ListKeyPoliciesAPIClient, params *ListKeyPoliciesInput, optFns ...func(*ListKeyPoliciesPaginatorOptions)) *ListKeyPoliciesPaginator
NewListKeyPoliciesPaginator returns a new ListKeyPoliciesPaginator.
-
func NewListKeyRotationsPaginator(client ListKeyRotationsAPIClient, params *ListKeyRotationsInput, optFns ...func(*ListKeyRotationsPaginatorOptions)) *ListKeyRotationsPaginator
NewListKeyRotationsPaginator returns a new ListKeyRotationsPaginator.
-
func NewListKeysPaginator(client ListKeysAPIClient, params *ListKeysInput, optFns ...func(*ListKeysPaginatorOptions)) *ListKeysPaginator
NewListKeysPaginator returns a new ListKeysPaginator.
-
func NewListResourceTagsPaginator(client ListResourceTagsAPIClient, params *ListResourceTagsInput, optFns ...func(*ListResourceTagsPaginatorOptions)) *ListResourceTagsPaginator
NewListResourceTagsPaginator returns a new ListResourceTagsPaginator.
-
func NewListRetirableGrantsPaginator(client ListRetirableGrantsAPIClient, params *ListRetirableGrantsInput, optFns ...func(*ListRetirableGrantsPaginatorOptions)) *ListRetirableGrantsPaginator
NewListRetirableGrantsPaginator returns a new ListRetirableGrantsPaginator.
-
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
WithAPIOptions returns a functional option for setting the Client’s APIOptions option.
-
func WithEndpointResolver(v EndpointResolver) func(*Options)
Deprecated: EndpointResolver and WithEndpointResolver.
-
func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
WithEndpointResolverV2 returns a functional option for setting the Client’s EndpointResolverV2 option.
-
func WithSigV4SigningName(name string) func(*Options)
WithSigV4SigningName applies an override to the authentication workflow to use the given signing name for SigV4-authenticated operations.
-
func WithSigV4SigningRegion(region string) func(*Options)
WithSigV4SigningRegion applies an override to the authentication workflow to use the given signing region for SigV4-authenticated operations.
Type Details
AuthResolverParameters struct
AuthResolverParameters contains the set of inputs necessary for auth scheme resolution.
CancelKeyDeletionInput struct
CancelKeyDeletionOutput struct
ConnectCustomKeyStoreInput struct
ConnectCustomKeyStoreOutput struct
CreateAliasInput struct
CreateAliasOutput struct
CreateCustomKeyStoreInput struct
CreateCustomKeyStoreOutput struct
CreateGrantInput struct
CreateGrantOutput struct
CreateKeyInput struct
CreateKeyOutput struct
DecryptInput struct
DecryptOutput struct
DeleteAliasInput struct
DeleteAliasOutput struct
DeleteCustomKeyStoreInput struct
DeleteCustomKeyStoreOutput struct
DeleteImportedKeyMaterialInput struct
DeleteImportedKeyMaterialOutput struct
DeriveSharedSecretInput struct
DeriveSharedSecretOutput struct
DescribeCustomKeyStoresInput struct
DescribeCustomKeyStoresOutput struct
DescribeCustomKeyStoresPaginatorOptions struct
DescribeCustomKeyStoresPaginatorOptions is the paginator options for DescribeCustomKeyStores
DescribeKeyInput struct
DescribeKeyOutput struct
DisableKeyInput struct
DisableKeyOutput struct
DisableKeyRotationInput struct
DisableKeyRotationOutput struct
DisconnectCustomKeyStoreInput struct
DisconnectCustomKeyStoreOutput struct
EnableKeyInput struct
EnableKeyOutput struct
EnableKeyRotationInput struct
EnableKeyRotationOutput struct
EncryptInput struct
EncryptOutput struct
GenerateDataKeyInput struct
GenerateDataKeyOutput struct
GenerateDataKeyPairInput struct
GenerateDataKeyPairOutput struct
GenerateDataKeyPairWithoutPlaintextInput struct
GenerateDataKeyPairWithoutPlaintextOutput struct
GenerateDataKeyWithoutPlaintextInput struct
GenerateDataKeyWithoutPlaintextOutput struct
GenerateMacInput struct
GenerateMacOutput struct
GenerateRandomInput struct
GenerateRandomOutput struct
GetKeyPolicyInput struct
GetKeyPolicyOutput struct
GetKeyRotationStatusInput struct
GetKeyRotationStatusOutput struct
GetParametersForImportInput struct
GetParametersForImportOutput struct
GetPublicKeyInput struct
GetPublicKeyOutput struct
ImportKeyMaterialInput struct
ImportKeyMaterialOutput struct
ListAliasesInput struct
ListAliasesOutput struct
ListAliasesPaginatorOptions struct
ListAliasesPaginatorOptions is the paginator options for ListAliases
ListGrantsInput struct
ListGrantsOutput struct
ListGrantsPaginatorOptions struct
ListGrantsPaginatorOptions is the paginator options for ListGrants
ListKeyPoliciesInput struct
ListKeyPoliciesOutput struct
ListKeyPoliciesPaginatorOptions struct
ListKeyPoliciesPaginatorOptions is the paginator options for ListKeyPolicies
ListKeyRotationsInput struct
ListKeyRotationsOutput struct
ListKeyRotationsPaginatorOptions struct
ListKeyRotationsPaginatorOptions is the paginator options for ListKeyRotations
ListKeysInput struct
ListKeysOutput struct
ListKeysPaginatorOptions struct
ListKeysPaginatorOptions is the paginator options for ListKeys
ListResourceTagsInput struct
ListResourceTagsOutput struct
ListResourceTagsPaginatorOptions struct
ListResourceTagsPaginatorOptions is the paginator options for ListResourceTags
ListRetirableGrantsInput struct
ListRetirableGrantsOutput struct
ListRetirableGrantsPaginatorOptions struct
ListRetirableGrantsPaginatorOptions is the paginator options for ListRetirableGrants
PutKeyPolicyInput struct
PutKeyPolicyOutput struct
ReEncryptInput struct
ReEncryptOutput struct
ReplicateKeyInput struct
ReplicateKeyOutput struct
ResolveEndpoint struct
RetireGrantInput struct
RetireGrantOutput struct
RevokeGrantInput struct
RevokeGrantOutput struct
RotateKeyOnDemandInput struct
RotateKeyOnDemandOutput struct
ScheduleKeyDeletionInput struct
ScheduleKeyDeletionOutput struct
SignInput struct
SignOutput struct
TagResourceInput struct
TagResourceOutput struct
UntagResourceInput struct
UntagResourceOutput struct
UpdateAliasInput struct
UpdateAliasOutput struct
UpdateCustomKeyStoreInput struct
UpdateCustomKeyStoreOutput struct
UpdateKeyDescriptionInput struct
UpdateKeyDescriptionOutput struct
UpdatePrimaryRegionInput struct
UpdatePrimaryRegionOutput struct
VerifyInput struct
VerifyMacInput struct
VerifyMacOutput struct
VerifyOutput struct
Function Details
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.
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
// File 'service/kms/endpoints.go', line 55
|
func New(options Options, optFns ...func(*Options)) *Client
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.
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 |
// File 'service/kms/api_client.go', line 174
|
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
37 38 39 |
// File 'service/kms/endpoints.go', line 37
|
func NewDefaultEndpointResolverV2() EndpointResolverV2
314 315 316 |
// File 'service/kms/endpoints.go', line 314
|
func NewDescribeCustomKeyStoresPaginator(client DescribeCustomKeyStoresAPIClient, params *DescribeCustomKeyStoresInput, optFns ...func(*DescribeCustomKeyStoresPaginatorOptions)) *DescribeCustomKeyStoresPaginator
NewDescribeCustomKeyStoresPaginator returns a new DescribeCustomKeyStoresPaginator
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 |
// File 'service/kms/api_op_DescribeCustomKeyStores.go', line 261
|
func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client
NewFromConfig returns a new client from the provided config.
420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 |
// File 'service/kms/api_client.go', line 420
|
func NewListAliasesPaginator(client ListAliasesAPIClient, params *ListAliasesInput, optFns ...func(*ListAliasesPaginatorOptions)) *ListAliasesPaginator
NewListAliasesPaginator returns a new ListAliasesPaginator
250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 |
// File 'service/kms/api_op_ListAliases.go', line 250
|
func NewListGrantsPaginator(client ListGrantsAPIClient, params *ListGrantsInput, optFns ...func(*ListGrantsPaginatorOptions)) *ListGrantsPaginator
NewListGrantsPaginator returns a new ListGrantsPaginator
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 |
// File 'service/kms/api_op_ListGrants.go', line 259
|
func NewListKeyPoliciesPaginator(client ListKeyPoliciesAPIClient, params *ListKeyPoliciesInput, optFns ...func(*ListKeyPoliciesPaginatorOptions)) *ListKeyPoliciesPaginator
NewListKeyPoliciesPaginator returns a new ListKeyPoliciesPaginator
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 |
// File 'service/kms/api_op_ListKeyPolicies.go', line 235
|
func NewListKeyRotationsPaginator(client ListKeyRotationsAPIClient, params *ListKeyRotationsInput, optFns ...func(*ListKeyRotationsPaginatorOptions)) *ListKeyRotationsPaginator
NewListKeyRotationsPaginator returns a new ListKeyRotationsPaginator
241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 |
// File 'service/kms/api_op_ListKeyRotations.go', line 241
|
func NewListKeysPaginator(client ListKeysAPIClient, params *ListKeysInput, optFns ...func(*ListKeysPaginatorOptions)) *ListKeysPaginator
NewListKeysPaginator returns a new ListKeysPaginator
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
// File 'service/kms/api_op_ListKeys.go', line 215
|
func NewListResourceTagsPaginator(client ListResourceTagsAPIClient, params *ListResourceTagsInput, optFns ...func(*ListResourceTagsPaginatorOptions)) *ListResourceTagsPaginator
NewListResourceTagsPaginator returns a new ListResourceTagsPaginator
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 |
// File 'service/kms/api_op_ListResourceTags.go', line 249
|
func NewListRetirableGrantsPaginator(client ListRetirableGrantsAPIClient, params *ListRetirableGrantsInput, optFns ...func(*ListRetirableGrantsPaginatorOptions)) *ListRetirableGrantsPaginator
NewListRetirableGrantsPaginator returns a new ListRetirableGrantsPaginator
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 |
// File 'service/kms/api_op_ListRetirableGrants.go', line 255
|
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
WithAPIOptions returns a functional option for setting the Client’s APIOptions option.
150 151 152 153 154 |
// File 'service/kms/options.go', line 150
|
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.
162 163 164 165 166 |
// File 'service/kms/options.go', line 162
|
func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
WithEndpointResolverV2 returns a functional option for setting the Client’s EndpointResolverV2 option.
170 171 172 173 174 |
// File 'service/kms/options.go', line 170
|
func WithSigV4SigningName(name string) func(*Options)
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.
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 |
// File 'service/kms/options.go', line 189
|
func WithSigV4SigningRegion(region string) func(*Options)
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.
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 |
// File 'service/kms/options.go', line 211
|