From 70e0e6afe0d0422169f3c0a346c7de61969f37e9 Mon Sep 17 00:00:00 2001 From: AWS SDK for Ruby Date: Tue, 19 Apr 2022 18:06:52 +0000 Subject: [PATCH] Updated API models and rebuilt service gems. --- apis/autoscaling/2011-01-01/api-2.json | 10 +- apis/autoscaling/2011-01-01/docs-2.json | 44 +- apis/kendra/2019-02-03/api-2.json | 42 +- apis/kendra/2019-02-03/docs-2.json | 36 +- apis/kms/2014-11-01/api-2.json | 125 +- apis/kms/2014-11-01/docs-2.json | 217 ++- apis/kms/2014-11-01/examples-1.json | 248 ++- apis/personalize/2018-05-22/api-2.json | 56 + apis/personalize/2018-05-22/docs-2.json | 28 +- apis/polly/2016-06-10/api-2.json | 6 +- apis/redshift/2012-12-01/api-2.json | 24 +- apis/redshift/2012-12-01/docs-2.json | 19 +- apis/ssm/2014-11-06/api-2.json | 41 +- apis/ssm/2014-11-06/docs-2.json | 19 +- apis/textract/2018-06-27/api-2.json | 57 +- apis/textract/2018-06-27/docs-2.json | 53 +- apis/transfer/2018-11-05/docs-2.json | 16 +- apis/worklink/2018-09-25/api-2.json | 132 +- gems/aws-partitions/CHANGELOG.md | 5 + gems/aws-partitions/VERSION | 2 +- gems/aws-partitions/partitions.json | 24 +- gems/aws-sdk-autoscaling/CHANGELOG.md | 5 + gems/aws-sdk-autoscaling/VERSION | 2 +- .../lib/aws-sdk-autoscaling.rb | 2 +- .../aws-sdk-autoscaling/auto_scaling_group.rb | 101 +- .../lib/aws-sdk-autoscaling/client.rb | 162 +- .../lib/aws-sdk-autoscaling/client_api.rb | 4 + .../launch_configuration.rb | 24 +- .../lib/aws-sdk-autoscaling/lifecycle_hook.rb | 7 +- .../lib/aws-sdk-autoscaling/resource.rb | 79 +- .../lib/aws-sdk-autoscaling/types.rb | 263 ++- gems/aws-sdk-kendra/CHANGELOG.md | 5 + gems/aws-sdk-kendra/VERSION | 2 +- gems/aws-sdk-kendra/lib/aws-sdk-kendra.rb | 2 +- .../lib/aws-sdk-kendra/client.rb | 105 +- .../lib/aws-sdk-kendra/client_api.rb | 21 + .../lib/aws-sdk-kendra/types.rb | 253 ++- gems/aws-sdk-kms/CHANGELOG.md | 5 + gems/aws-sdk-kms/VERSION | 2 +- gems/aws-sdk-kms/lib/aws-sdk-kms.rb | 2 +- gems/aws-sdk-kms/lib/aws-sdk-kms/client.rb | 1569 +++++++++++------ .../aws-sdk-kms/lib/aws-sdk-kms/client_api.rb | 67 + gems/aws-sdk-kms/lib/aws-sdk-kms/errors.rb | 16 + gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb | 654 +++++-- gems/aws-sdk-personalize/CHANGELOG.md | 5 + gems/aws-sdk-personalize/VERSION | 2 +- .../lib/aws-sdk-personalize.rb | 2 +- .../lib/aws-sdk-personalize/client.rb | 67 +- .../lib/aws-sdk-personalize/client_api.rb | 38 + .../lib/aws-sdk-personalize/types.rb | 62 + gems/aws-sdk-polly/CHANGELOG.md | 5 + gems/aws-sdk-polly/VERSION | 2 +- gems/aws-sdk-polly/lib/aws-sdk-polly.rb | 2 +- .../aws-sdk-polly/lib/aws-sdk-polly/client.rb | 34 +- gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb | 10 +- gems/aws-sdk-redshift/CHANGELOG.md | 5 + gems/aws-sdk-redshift/VERSION | 2 +- gems/aws-sdk-redshift/lib/aws-sdk-redshift.rb | 2 +- .../lib/aws-sdk-redshift/client.rb | 38 +- .../lib/aws-sdk-redshift/client_api.rb | 10 +- .../lib/aws-sdk-redshift/types.rb | 41 +- gems/aws-sdk-ssm/CHANGELOG.md | 5 + gems/aws-sdk-ssm/VERSION | 2 +- gems/aws-sdk-ssm/lib/aws-sdk-ssm.rb | 2 +- gems/aws-sdk-ssm/lib/aws-sdk-ssm/client.rb | 75 +- .../aws-sdk-ssm/lib/aws-sdk-ssm/client_api.rb | 7 + gems/aws-sdk-ssm/lib/aws-sdk-ssm/types.rb | 88 +- gems/aws-sdk-textract/CHANGELOG.md | 5 + gems/aws-sdk-textract/VERSION | 2 +- gems/aws-sdk-textract/lib/aws-sdk-textract.rb | 2 +- .../lib/aws-sdk-textract/client.rb | 84 +- .../lib/aws-sdk-textract/client_api.rb | 21 + .../lib/aws-sdk-textract/types.rb | 131 +- gems/aws-sdk-transfer/CHANGELOG.md | 5 + gems/aws-sdk-transfer/VERSION | 2 +- gems/aws-sdk-transfer/lib/aws-sdk-transfer.rb | 2 +- .../lib/aws-sdk-transfer/client.rb | 18 +- .../lib/aws-sdk-transfer/types.rb | 34 +- gems/aws-sdk-worklink/CHANGELOG.md | 5 + gems/aws-sdk-worklink/VERSION | 2 +- gems/aws-sdk-worklink/lib/aws-sdk-worklink.rb | 2 +- .../lib/aws-sdk-worklink/client.rb | 2 +- .../lib/aws-sdk-worklink/client_api.rb | 33 + 83 files changed, 4136 insertions(+), 1276 deletions(-) diff --git a/apis/autoscaling/2011-01-01/api-2.json b/apis/autoscaling/2011-01-01/api-2.json index 645c0ef3410..a0c5c5d1840 100644 --- a/apis/autoscaling/2011-01-01/api-2.json +++ b/apis/autoscaling/2011-01-01/api-2.json @@ -1133,7 +1133,8 @@ "WarmPoolConfiguration":{"shape":"WarmPoolConfiguration"}, "WarmPoolSize":{"shape":"WarmPoolSize"}, "Context":{"shape":"Context"}, - "DesiredCapacityType":{"shape":"XmlStringMaxLen255"} + "DesiredCapacityType":{"shape":"XmlStringMaxLen255"}, + "DefaultInstanceWarmup":{"shape":"DefaultInstanceWarmup"} } }, "AutoScalingGroupDesiredCapacity":{"type":"integer"}, @@ -1409,7 +1410,8 @@ "ServiceLinkedRoleARN":{"shape":"ResourceName"}, "MaxInstanceLifetime":{"shape":"MaxInstanceLifetime"}, "Context":{"shape":"Context"}, - "DesiredCapacityType":{"shape":"XmlStringMaxLen255"} + "DesiredCapacityType":{"shape":"XmlStringMaxLen255"}, + "DefaultInstanceWarmup":{"shape":"DefaultInstanceWarmup"} } }, "CreateLaunchConfigurationType":{ @@ -1459,6 +1461,7 @@ "Unit":{"shape":"MetricUnit"} } }, + "DefaultInstanceWarmup":{"type":"integer"}, "DeleteAutoScalingGroupType":{ "type":"structure", "required":["AutoScalingGroupName"], @@ -3251,7 +3254,8 @@ "MaxInstanceLifetime":{"shape":"MaxInstanceLifetime"}, "CapacityRebalance":{"shape":"CapacityRebalanceEnabled"}, "Context":{"shape":"Context"}, - "DesiredCapacityType":{"shape":"XmlStringMaxLen255"} + "DesiredCapacityType":{"shape":"XmlStringMaxLen255"}, + "DefaultInstanceWarmup":{"shape":"DefaultInstanceWarmup"} } }, "VCpuCountRequest":{ diff --git a/apis/autoscaling/2011-01-01/docs-2.json b/apis/autoscaling/2011-01-01/docs-2.json index 84164dc2847..b7b97924c6b 100644 --- a/apis/autoscaling/2011-01-01/docs-2.json +++ b/apis/autoscaling/2011-01-01/docs-2.json @@ -458,8 +458,8 @@ "ClassicLinkVPCSecurityGroups": { "base": null, "refs": { - "CreateLaunchConfigurationType$ClassicLinkVPCSecurityGroups": "

The IDs of one or more security groups for the specified ClassicLink-enabled VPC. For more information, see ClassicLink in the Amazon EC2 User Guide for Linux Instances and Linking EC2-Classic instances to a VPC in the Amazon EC2 Auto Scaling User Guide.

If you specify the ClassicLinkVPCId parameter, you must specify this parameter.

", - "LaunchConfiguration$ClassicLinkVPCSecurityGroups": "

The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId.

For more information, see ClassicLink in the Amazon EC2 User Guide for Linux Instances and Linking EC2-Classic instances to a VPC in the Amazon EC2 Auto Scaling User Guide.

" + "CreateLaunchConfigurationType$ClassicLinkVPCSecurityGroups": "

EC2-Classic retires on August 15, 2022. This parameter is not supported after that date.

The IDs of one or more security groups for the specified ClassicLink-enabled VPC. For more information, see ClassicLink in the Amazon EC2 User Guide for Linux Instances.

If you specify the ClassicLinkVPCId parameter, you must specify this parameter.

", + "LaunchConfiguration$ClassicLinkVPCSecurityGroups": "

EC2-Classic retires on August 15, 2022. This parameter is not supported after that date.

The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId.

" } }, "CompleteLifecycleActionAnswer": { @@ -484,10 +484,10 @@ "base": null, "refs": { "AutoScalingGroup$DefaultCooldown": "

The duration of the default cooldown period, in seconds.

", - "CreateAutoScalingGroupType$DefaultCooldown": "

The amount of time, in seconds, after a scaling activity completes before another scaling activity can start. The default value is 300. This setting applies when using simple scaling policies, but not when using other scaling policies or scheduled scaling. For more information, see Scaling cooldowns for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.

", - "PutScalingPolicyType$Cooldown": "

The duration of the policy's cooldown period, in seconds. When a cooldown period is specified here, it overrides the default cooldown period defined for the Auto Scaling group.

Valid only if the policy type is SimpleScaling. For more information, see Scaling cooldowns for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.

", + "CreateAutoScalingGroupType$DefaultCooldown": "

Only needed if you use simple scaling policies.

The amount of time, in seconds, between one scaling activity ending and another one starting due to simple scaling policies. For more information, see Scaling cooldowns for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.

Default: 300 seconds

", + "PutScalingPolicyType$Cooldown": "

A cooldown period, in seconds, that applies to a specific simple scaling policy. When a cooldown period is specified here, it overrides the default cooldown.

Valid only if the policy type is SimpleScaling. For more information, see Scaling cooldowns for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.

Default: None

", "ScalingPolicy$Cooldown": "

The duration of the policy's cooldown period, in seconds.

", - "UpdateAutoScalingGroupType$DefaultCooldown": "

The amount of time, in seconds, after a scaling activity completes before another scaling activity can start. The default value is 300. This setting applies when using simple scaling policies, but not when using other scaling policies or scheduled scaling. For more information, see Scaling cooldowns for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.

" + "UpdateAutoScalingGroupType$DefaultCooldown": "

Only needed if you use simple scaling policies.

The amount of time, in seconds, between one scaling activity ending and another one starting due to simple scaling policies. For more information, see Scaling cooldowns for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.

" } }, "CpuManufacturer": { @@ -523,6 +523,14 @@ "TargetTrackingConfiguration$CustomizedMetricSpecification": "

A customized metric. You must specify either a predefined metric or a customized metric.

" } }, + "DefaultInstanceWarmup": { + "base": null, + "refs": { + "AutoScalingGroup$DefaultInstanceWarmup": "

The duration of the default instance warmup, in seconds.

", + "CreateAutoScalingGroupType$DefaultInstanceWarmup": "

The amount of time, in seconds, until a newly launched instance can contribute to the Amazon CloudWatch metrics. This delay lets an instance finish initializing before Amazon EC2 Auto Scaling aggregates instance metrics, resulting in more reliable usage data. Set this value equal to the amount of time that it takes for resource consumption to become stable after an instance reaches the InService state. For more information, see Set the default instance warmup for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.

To manage your warm-up settings at the group level, we recommend that you set the default instance warmup, even if its value is set to 0 seconds. This also optimizes the performance of scaling policies that scale continuously, such as target tracking and step scaling policies.

If you need to remove a value that you previously set, include the property but specify -1 for the value. However, we strongly recommend keeping the default instance warmup enabled by specifying a minimum value of 0.

Default: None

", + "UpdateAutoScalingGroupType$DefaultInstanceWarmup": "

The amount of time, in seconds, until a newly launched instance can contribute to the Amazon CloudWatch metrics. This delay lets an instance finish initializing before Amazon EC2 Auto Scaling aggregates instance metrics, resulting in more reliable usage data. Set this value equal to the amount of time that it takes for resource consumption to become stable after an instance reaches the InService state. For more information, see Set the default instance warmup for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.

To manage your warm-up settings at the group level, we recommend that you set the default instance warmup, even if its value is set to 0 seconds. This also optimizes the performance of scaling policies that scale continuously, such as target tracking and step scaling policies.

If you need to remove a value that you previously set, include the property but specify -1 for the value. However, we strongly recommend keeping the default instance warmup enabled by specifying a minimum value of 0.

" + } + }, "DeleteAutoScalingGroupType": { "base": null, "refs": { @@ -774,7 +782,7 @@ "EstimatedInstanceWarmup": { "base": null, "refs": { - "PutScalingPolicyType$EstimatedInstanceWarmup": "

The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics. If not provided, the default is to use the value from the default cooldown period for the Auto Scaling group.

Valid only if the policy type is TargetTrackingScaling or StepScaling.

", + "PutScalingPolicyType$EstimatedInstanceWarmup": "

Not needed if the default instance warmup is defined for the group.

The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics. This warm-up period applies to instances launched due to a specific target tracking or step scaling policy. When a warm-up period is specified here, it overrides the default instance warmup.

Valid only if the policy type is TargetTrackingScaling or StepScaling.

The default is to use the value for the default instance warmup defined for the group. If default instance warmup is null, then EstimatedInstanceWarmup falls back to the value of default cooldown.

", "ScalingPolicy$EstimatedInstanceWarmup": "

The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.

" } }, @@ -851,15 +859,15 @@ "GlobalTimeout": { "base": null, "refs": { - "LifecycleHook$GlobalTimeout": "

The maximum time, in seconds, that an instance can remain in a Pending:Wait or Terminating:Wait state. The maximum is 172800 seconds (48 hours) or 100 times HeartbeatTimeout, whichever is smaller.

" + "LifecycleHook$GlobalTimeout": "

The maximum time, in seconds, that an instance can remain in a wait state. The maximum is 172800 seconds (48 hours) or 100 times HeartbeatTimeout, whichever is smaller.

" } }, "HealthCheckGracePeriod": { "base": null, "refs": { - "AutoScalingGroup$HealthCheckGracePeriod": "

The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2 instance that has come into service and marking it unhealthy due to a failed health check.

", - "CreateAutoScalingGroupType$HealthCheckGracePeriod": "

The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2 instance that has come into service and marking it unhealthy due to a failed health check. The default value is 0. For more information, see Health check grace period in the Amazon EC2 Auto Scaling User Guide.

Required if you are adding an ELB health check.

", - "UpdateAutoScalingGroupType$HealthCheckGracePeriod": "

The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2 instance that has come into service and marking it unhealthy due to a failed health check. The default value is 0. For more information, see Health check grace period in the Amazon EC2 Auto Scaling User Guide.

Required if you are adding an ELB health check.

" + "AutoScalingGroup$HealthCheckGracePeriod": "

The duration of the health check grace period, in seconds.

", + "CreateAutoScalingGroupType$HealthCheckGracePeriod": "

The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2 instance that has come into service and marking it unhealthy due to a failed Elastic Load Balancing or custom health check. This is useful if your instances do not immediately pass these health checks after they enter the InService state. For more information, see Health check grace period in the Amazon EC2 Auto Scaling User Guide.

Default: 0 seconds

", + "UpdateAutoScalingGroupType$HealthCheckGracePeriod": "

The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2 instance that has come into service and marking it unhealthy due to a failed Elastic Load Balancing or custom health check. This is useful if your instances do not immediately pass these health checks after they enter the InService state. For more information, see Health check grace period in the Amazon EC2 Auto Scaling User Guide.

" } }, "HeartbeatTimeout": { @@ -1041,7 +1049,7 @@ "InstanceRefresh$PercentageComplete": "

The percentage of the instance refresh that is complete. For each instance replacement, Amazon EC2 Auto Scaling tracks the instance's health status and warm-up time. When the instance's health status changes to healthy and the specified warm-up time passes, the instance is considered updated and is added to the percentage complete.

", "InstanceRefreshLivePoolProgress$PercentageComplete": "

The percentage of instances in the Auto Scaling group that have been replaced. For each instance replacement, Amazon EC2 Auto Scaling tracks the instance's health status and warm-up time. When the instance's health status changes to healthy and the specified warm-up time passes, the instance is considered updated and is added to the percentage complete.

", "InstanceRefreshWarmPoolProgress$PercentageComplete": "

The percentage of instances in the warm pool that have been replaced. For each instance replacement, Amazon EC2 Auto Scaling tracks the instance's health status and warm-up time. When the instance's health status changes to healthy and the specified warm-up time passes, the instance is considered updated and is added to the percentage complete.

", - "RefreshPreferences$MinHealthyPercentage": "

The amount of capacity in the Auto Scaling group that must remain healthy during an instance refresh to allow the operation to continue. The value is expressed as a percentage of the desired capacity of the Auto Scaling group (rounded up to the nearest integer). The default is 90.

Setting the minimum healthy percentage to 100 percent limits the rate of replacement to one instance at a time. In contrast, setting it to 0 percent has the effect of replacing all instances at the same time.

" + "RefreshPreferences$MinHealthyPercentage": "

The amount of capacity in the Auto Scaling group that must pass your group's health checks to allow the operation to continue. The value is expressed as a percentage of the desired capacity of the Auto Scaling group (rounded up to the nearest integer). The default is 90.

Setting the minimum healthy percentage to 100 percent limits the rate of replacement to one instance at a time. In contrast, setting it to 0 percent has the effect of replacing all instances at the same time.

" } }, "InvalidNextToken": { @@ -1407,7 +1415,7 @@ "MetricType": { "base": null, "refs": { - "PredefinedMetricSpecification$PredefinedMetricType": "

The metric type. The following predefined metrics are available:

" + "PredefinedMetricSpecification$PredefinedMetricType": "

The metric type. The following predefined metrics are available:

" } }, "MetricUnit": { @@ -1799,7 +1807,7 @@ "RefreshInstanceWarmup": { "base": null, "refs": { - "RefreshPreferences$InstanceWarmup": "

The number of seconds until a newly launched instance is configured and ready to use. During this time, Amazon EC2 Auto Scaling does not immediately move on to the next replacement. The default is to use the value for the health check grace period defined for the group.

" + "RefreshPreferences$InstanceWarmup": "

Not needed if the default instance warmup is defined for the group.

The duration of the instance warmup, in seconds.

The default is to use the value for the default instance warmup defined for the group. If default instance warmup is null, then InstanceWarmup falls back to the value of the health check grace period.

" } }, "RefreshPreferences": { @@ -2289,7 +2297,7 @@ "AutoScalingGroup$LaunchConfigurationName": "

The name of the associated launch configuration.

", "AutoScalingGroup$PlacementGroup": "

The name of the placement group into which to launch your instances, if any.

", "AutoScalingGroup$Status": "

The current state of the group when the DeleteAutoScalingGroup operation is in progress.

", - "AutoScalingGroup$DesiredCapacityType": "

The unit of measurement for the value specified for desired capacity. Amazon EC2 Auto Scaling supports DesiredCapacityType for attribute-based instance type selection only. For more information, see Creating an Auto Scaling group using attribute-based instance type selection in the Amazon EC2 Auto Scaling User Guide.

By default, Amazon EC2 Auto Scaling specifies units, which translates into number of instances.

Valid values: units | vcpu | memory-mib

", + "AutoScalingGroup$DesiredCapacityType": "

The unit of measurement for the value specified for desired capacity. Amazon EC2 Auto Scaling supports DesiredCapacityType for attribute-based instance type selection only.

", "AutoScalingGroupNames$member": null, "AutoScalingInstanceDetails$InstanceType": "

The instance type of the EC2 instance.

", "AutoScalingInstanceDetails$AutoScalingGroupName": "

The name of the Auto Scaling group for the instance.

", @@ -2306,12 +2314,12 @@ "ClassicLinkVPCSecurityGroups$member": null, "CreateAutoScalingGroupType$AutoScalingGroupName": "

The name of the Auto Scaling group. This name must be unique per Region per account.

", "CreateAutoScalingGroupType$LaunchConfigurationName": "

The name of the launch configuration to use to launch instances.

Conditional: You must specify either a launch template (LaunchTemplate or MixedInstancesPolicy) or a launch configuration (LaunchConfigurationName or InstanceId).

", - "CreateAutoScalingGroupType$PlacementGroup": "

The name of an existing placement group into which to launch your instances, if any. A placement group is a logical grouping of instances within a single Availability Zone. You cannot specify multiple Availability Zones and a placement group. For more information, see Placement Groups in the Amazon EC2 User Guide for Linux Instances.

", + "CreateAutoScalingGroupType$PlacementGroup": "

The name of an existing placement group into which to launch your instances. For more information, see Placement groups in the Amazon EC2 User Guide for Linux Instances.

A cluster placement group is a logical grouping of instances within a single Availability Zone. You cannot specify multiple Availability Zones and a cluster placement group.

", "CreateAutoScalingGroupType$DesiredCapacityType": "

The unit of measurement for the value specified for desired capacity. Amazon EC2 Auto Scaling supports DesiredCapacityType for attribute-based instance type selection only. For more information, see Creating an Auto Scaling group using attribute-based instance type selection in the Amazon EC2 Auto Scaling User Guide.

By default, Amazon EC2 Auto Scaling specifies units, which translates into number of instances.

Valid values: units | vcpu | memory-mib

", "CreateLaunchConfigurationType$LaunchConfigurationName": "

The name of the launch configuration. This name must be unique per Region per account.

", "CreateLaunchConfigurationType$ImageId": "

The ID of the Amazon Machine Image (AMI) that was assigned during registration. For more information, see Finding an AMI in the Amazon EC2 User Guide for Linux Instances.

If you do not specify InstanceId, you must specify ImageId.

", "CreateLaunchConfigurationType$KeyName": "

The name of the key pair. For more information, see Amazon EC2 Key Pairs in the Amazon EC2 User Guide for Linux Instances.

", - "CreateLaunchConfigurationType$ClassicLinkVPCId": "

The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. For more information, see ClassicLink in the Amazon EC2 User Guide for Linux Instances and Linking EC2-Classic instances to a VPC in the Amazon EC2 Auto Scaling User Guide.

This parameter can only be used if you are launching EC2-Classic instances.

", + "CreateLaunchConfigurationType$ClassicLinkVPCId": "

EC2-Classic retires on August 15, 2022. This parameter is not supported after that date.

The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. For more information, see ClassicLink in the Amazon EC2 User Guide for Linux Instances.

", "CreateLaunchConfigurationType$InstanceType": "

Specifies the instance type of the EC2 instance.

For information about available instance types, see Available Instance Types in the Amazon EC2 User Guide for Linux Instances.

If you do not specify InstanceId, you must specify InstanceType.

", "CreateLaunchConfigurationType$KernelId": "

The ID of the kernel associated with the AMI.

", "CreateLaunchConfigurationType$RamdiskId": "

The ID of the RAM disk to select.

", @@ -2357,7 +2365,7 @@ "LaunchConfiguration$LaunchConfigurationName": "

The name of the launch configuration.

", "LaunchConfiguration$ImageId": "

The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances. For more information, see Finding an AMI in the Amazon EC2 User Guide for Linux Instances.

", "LaunchConfiguration$KeyName": "

The name of the key pair.

For more information, see Amazon EC2 Key Pairs in the Amazon EC2 User Guide for Linux Instances.

", - "LaunchConfiguration$ClassicLinkVPCId": "

The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. For more information, see ClassicLink in the Amazon EC2 User Guide for Linux Instances and Linking EC2-Classic instances to a VPC in the Amazon EC2 Auto Scaling User Guide.

", + "LaunchConfiguration$ClassicLinkVPCId": "

EC2-Classic retires on August 15, 2022. This parameter is not supported after that date.

The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.

", "LaunchConfiguration$InstanceType": "

The instance type for the instances.

For information about available instance types, see Available Instance Types in the Amazon EC2 User Guide for Linux Instances.

", "LaunchConfiguration$KernelId": "

The ID of the kernel associated with the AMI.

", "LaunchConfiguration$RamdiskId": "

The ID of the RAM disk associated with the AMI.

", @@ -2419,7 +2427,7 @@ "SuspendedProcess$SuspensionReason": "

The reason that the process was suspended.

", "UpdateAutoScalingGroupType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", "UpdateAutoScalingGroupType$LaunchConfigurationName": "

The name of the launch configuration. If you specify LaunchConfigurationName in your update request, you can't specify LaunchTemplate or MixedInstancesPolicy.

", - "UpdateAutoScalingGroupType$PlacementGroup": "

The name of an existing placement group into which to launch your instances, if any. A placement group is a logical grouping of instances within a single Availability Zone. You cannot specify multiple Availability Zones and a placement group. For more information, see Placement Groups in the Amazon EC2 User Guide for Linux Instances.

", + "UpdateAutoScalingGroupType$PlacementGroup": "

The name of an existing placement group into which to launch your instances. For more information, see Placement groups in the Amazon EC2 User Guide for Linux Instances.

A cluster placement group is a logical grouping of instances within a single Availability Zone. You cannot specify multiple Availability Zones and a cluster placement group.

", "UpdateAutoScalingGroupType$DesiredCapacityType": "

The unit of measurement for the value specified for desired capacity. Amazon EC2 Auto Scaling supports DesiredCapacityType for attribute-based instance type selection only. For more information, see Creating an Auto Scaling group using attribute-based instance type selection in the Amazon EC2 Auto Scaling User Guide.

By default, Amazon EC2 Auto Scaling specifies units, which translates into number of instances.

Valid values: units | vcpu | memory-mib

" } }, diff --git a/apis/kendra/2019-02-03/api-2.json b/apis/kendra/2019-02-03/api-2.json index 89176040d86..d333ccf231c 100644 --- a/apis/kendra/2019-02-03/api-2.json +++ b/apis/kendra/2019-02-03/api-2.json @@ -1701,7 +1701,8 @@ "WorkDocsConfiguration":{"shape":"WorkDocsConfiguration"}, "FsxConfiguration":{"shape":"FsxConfiguration"}, "SlackConfiguration":{"shape":"SlackConfiguration"}, - "BoxConfiguration":{"shape":"BoxConfiguration"} + "BoxConfiguration":{"shape":"BoxConfiguration"}, + "QuipConfiguration":{"shape":"QuipConfiguration"} } }, "DataSourceDateFieldFormat":{ @@ -1875,7 +1876,8 @@ "WORKDOCS", "FSX", "SLACK", - "BOX" + "BOX", + "QUIP" ] }, "DataSourceVpcConfiguration":{ @@ -2465,6 +2467,12 @@ "S3Prefix":{"shape":"S3ObjectKey"} } }, + "Domain":{ + "type":"string", + "max":63, + "min":1, + "pattern":"^(?!-)[A-Za-z0-9-].*(?Indicates whether the response is the best response. True if this is the best response; otherwise, false.

", "InlineCustomDocumentEnrichmentConfiguration$DocumentContentDeletion": "

TRUE to delete content if the condition used for the target attribute is met.

", "OneDriveConfiguration$DisableLocalGroups": "

A Boolean value that specifies whether local groups are disabled (True) or enabled (False).

", + "QuipConfiguration$CrawlFileComments": "

Specify whether to crawl file comments in your Quip data source. You can specify one or more of these options.

", + "QuipConfiguration$CrawlChatRooms": "

Specify whether to crawl chat rooms in your Quip data source. You can specify one or more of these options.

", + "QuipConfiguration$CrawlAttachments": "

Specify whether to crawl attachments in your Quip data source. You can specify one or more of these options.

", "SalesforceConfiguration$CrawlAttachments": "

Indicates whether Amazon Kendra should index attachments to Salesforce objects.

", "Search$Facetable": "

Indicates that the field can be used to create search facets, a count of results for each value in the field. The default is false .

", "Search$Searchable": "

Determines whether the field is used in the search. If the Searchable field is true, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default is true for string fields and false for number and date fields.

", @@ -677,6 +680,8 @@ "GoogleDriveConfiguration$ExclusionPatterns": "

A list of regular expression patterns to exclude certain items in your Google Drive, including shared drives and users' My Drives. Items that match the patterns are excluded from the index. Items that don't match the patterns are included in the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.

", "OneDriveConfiguration$InclusionPatterns": "

A list of regular expression patterns to include certain documents in your OneDrive. Documents that match the patterns are included in the index. Documents that don't match the patterns are excluded from the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

The pattern is applied to the file name.

", "OneDriveConfiguration$ExclusionPatterns": "

A list of regular expression patterns to exclude certain documents in your OneDrive. Documents that match the patterns are excluded from the index. Documents that don't match the patterns are included in the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

The pattern is applied to the file name.

", + "QuipConfiguration$InclusionPatterns": "

A list of regular expression patterns to include certain files in your Quip file system. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion pattern and an exclusion pattern, the exclusion pattern takes precedence, and the file isn't included in the index.

", + "QuipConfiguration$ExclusionPatterns": "

A list of regular expression patterns to exclude certain files in your Quip file system. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion pattern and an exclusion pattern, the exclusion pattern takes precedence, and the file isn't included in the index.

", "S3DataSourceConfiguration$InclusionPrefixes": "

A list of S3 prefixes for the documents that should be included in the index.

", "S3DataSourceConfiguration$InclusionPatterns": "

A list of glob patterns for documents that should be indexed. If a document that matches an inclusion pattern also matches an exclusion pattern, the document is not indexed.

Some examples are:

", "S3DataSourceConfiguration$ExclusionPatterns": "

A list of glob patterns for documents that should not be indexed. If a document that matches an inclusion prefix or inclusion pattern also matches an exclusion pattern, the document is not indexed.

Some examples are:

", @@ -784,6 +789,9 @@ "FsxConfiguration$FieldMappings": "

A list of DataSourceToIndexFieldMapping objects that map Amazon FSx data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Amazon FSx fields. For more information, see Mapping data source fields. The Amazon FSx data source field names must exist in your Amazon FSx custom metadata.

", "GoogleDriveConfiguration$FieldMappings": "

Maps Google Drive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Google Drive fields. For more information, see Mapping data source fields. The Google Drive data source field names must exist in your Google Drive custom metadata.

", "OneDriveConfiguration$FieldMappings": "

A list of DataSourceToIndexFieldMapping objects that map OneDrive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to OneDrive fields. For more information, see Mapping data source fields. The OneDrive data source field names must exist in your OneDrive custom metadata.

", + "QuipConfiguration$ThreadFieldMappings": "

A list of field mappings to apply when indexing Quip threads.

", + "QuipConfiguration$MessageFieldMappings": "

A list of field mappings to apply when indexing Quip messages.

", + "QuipConfiguration$AttachmentFieldMappings": "

A list of field mappings to apply when indexing Quip attachments.

", "SalesforceChatterFeedConfiguration$FieldMappings": "

Maps fields from a Salesforce chatter feed into Amazon Kendra index fields.

", "SalesforceCustomKnowledgeArticleTypeConfiguration$FieldMappings": "

Maps attributes or field names of the custom knowledge article to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Salesforce fields. For more information, see Mapping data source fields. The Salesforce data source field names must exist in your Salesforce custom metadata.

", "SalesforceStandardKnowledgeArticleTypeConfiguration$FieldMappings": "

Maps attributes or field names of the knowledge article to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Salesforce fields. For more information, see Mapping data source fields. The Salesforce data source field names must exist in your Salesforce custom metadata.

", @@ -807,10 +815,11 @@ "DataSourceVpcConfiguration": { "base": "

Provides the configuration information to connect to an Amazon VPC.

", "refs": { - "BoxConfiguration$VpcConfiguration": "

Configuration information for an Amazon VPC to connect to your Box. For more information, see Configuring a VPC.

", + "BoxConfiguration$VpcConfiguration": "

Configuration information for an Amazon VPC to connect to your Box. For more information, see Configuring a VPC.

", "ConfluenceConfiguration$VpcConfiguration": "

Configuration information for an Amazon Virtual Private Cloud to connect to your Confluence. For more information, see Configuring a VPC.

", "DatabaseConfiguration$VpcConfiguration": null, "FsxConfiguration$VpcConfiguration": "

Configuration information for an Amazon Virtual Private Cloud to connect to your Amazon FSx. Your Amazon FSx instance must reside inside your VPC.

", + "QuipConfiguration$VpcConfiguration": "

Configuration information for connecting to an Amazon Virtual Private Cloud (VPC) for your Quip. Your Quip instance must reside inside your VPC.

", "SharePointConfiguration$VpcConfiguration": null, "SlackConfiguration$VpcConfiguration": "

Configuration information for an Amazon Virtual Private Cloud to connect to your Slack. For more information, see Configuring a VPC.

" } @@ -1204,6 +1213,12 @@ "S3DataSourceConfiguration$DocumentsMetadataConfiguration": null } }, + "Domain": { + "base": null, + "refs": { + "QuipConfiguration$Domain": "

The configuration information to connect to your Quip data source domain.

" + } + }, "Duration": { "base": null, "refs": { @@ -1524,6 +1539,18 @@ "FsxConfiguration$FileSystemId": "

The identifier of the Amazon FSx file system.

You can find your file system ID on the file system dashboard in the Amazon FSx console. For information on how to create a file system in Amazon FSx console, using Windows File Server as an example, see Amazon FSx Getting started guide.

" } }, + "FolderId": { + "base": null, + "refs": { + "FolderIdList$member": null + } + }, + "FolderIdList": { + "base": null, + "refs": { + "QuipConfiguration$FolderIds": "

The identifier of the Quip folder IDs to index.

" + } + }, "FsxConfiguration": { "base": "

Provides the configuration information to connect to Amazon FSx as your data source.

", "refs": { @@ -2447,6 +2474,12 @@ "QueryRequest$QueryText": "

The text to search for.

" } }, + "QuipConfiguration": { + "base": "

Provides the configuration information to connect to Quip as your data source.

", + "refs": { + "DataSourceConfiguration$QuipConfiguration": "

Provides the configuration information to connect to Quip as your data source.

" + } + }, "ReadAccessType": { "base": null, "refs": { @@ -2699,6 +2732,7 @@ "GoogleDriveConfiguration$SecretArn": "

The Amazon Resource Name (ARN) of a Secrets Managersecret that contains the credentials required to connect to Google Drive. For more information, see Using a Google Workspace Drive data source.

", "OneDriveConfiguration$SecretArn": "

The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the user name and password to connect to OneDrive. The user namd should be the application ID for the OneDrive application, and the password is the application key for the OneDrive application.

", "ProxyConfiguration$Credentials": "

Your secret ARN, which you can create in Secrets Manager

The credentials are optional. You use a secret if web proxy credentials are required to connect to a website host. Amazon Kendra currently support basic authentication to connect to a web proxy server. The secret stores your credentials.

", + "QuipConfiguration$SecretArn": "

The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs that are required to connect to your Quip file system. Windows is currently the only supported type. The secret must contain a JSON structure with the following keys:

", "SalesforceConfiguration$SecretArn": "

The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the key/value pairs required to connect to your Salesforce instance. The secret must contain a JSON structure with the following keys:

", "ServiceNowConfiguration$SecretArn": "

The Amazon Resource Name (ARN) of the Secrets Manager secret that contains the user name and password required to connect to the ServiceNow instance.

", "SharePointConfiguration$SecretArn": "

The Amazon Resource Name (ARN) of credentials stored in Secrets Manager. The credentials should be a user/password pair. If you use SharePoint Server, you also need to provide the sever domain name as part of the credentials. For more information, see Using a Microsoft SharePoint Data Source. For more information about Secrets Manager see What Is Secrets Manager in the Secrets Manager user guide.

", diff --git a/apis/kms/2014-11-01/api-2.json b/apis/kms/2014-11-01/api-2.json index 3ce9f4e3276..7dd0e70b2be 100644 --- a/apis/kms/2014-11-01/api-2.json +++ b/apis/kms/2014-11-01/api-2.json @@ -391,6 +391,24 @@ {"shape":"KMSInvalidStateException"} ] }, + "GenerateMac":{ + "name":"GenerateMac", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GenerateMacRequest"}, + "output":{"shape":"GenerateMacResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"DisabledException"}, + {"shape":"KeyUnavailableException"}, + {"shape":"InvalidKeyUsageException"}, + {"shape":"InvalidGrantTokenException"}, + {"shape":"KMSInternalException"}, + {"shape":"KMSInvalidStateException"} + ] + }, "GenerateRandom":{ "name":"GenerateRandom", "http":{ @@ -836,6 +854,25 @@ {"shape":"KMSInvalidStateException"}, {"shape":"KMSInvalidSignatureException"} ] + }, + "VerifyMac":{ + "name":"VerifyMac", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"VerifyMacRequest"}, + "output":{"shape":"VerifyMacResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"DisabledException"}, + {"shape":"KeyUnavailableException"}, + {"shape":"InvalidKeyUsageException"}, + {"shape":"InvalidGrantTokenException"}, + {"shape":"KMSInternalException"}, + {"shape":"KMSInvalidMacException"}, + {"shape":"KMSInvalidStateException"} + ] } }, "shapes":{ @@ -1122,7 +1159,11 @@ "ECC_NIST_P384", "ECC_NIST_P521", "ECC_SECG_P256K1", - "SYMMETRIC_DEFAULT" + "SYMMETRIC_DEFAULT", + "HMAC_224", + "HMAC_256", + "HMAC_384", + "HMAC_512" ] }, "DataKeyPairSpec":{ @@ -1419,6 +1460,28 @@ "KeyId":{"shape":"KeyIdType"} } }, + "GenerateMacRequest":{ + "type":"structure", + "required":[ + "Message", + "KeyId", + "MacAlgorithm" + ], + "members":{ + "Message":{"shape":"PlaintextType"}, + "KeyId":{"shape":"KeyIdType"}, + "MacAlgorithm":{"shape":"MacAlgorithmSpec"}, + "GrantTokens":{"shape":"GrantTokenList"} + } + }, + "GenerateMacResponse":{ + "type":"structure", + "members":{ + "Mac":{"shape":"CiphertextType"}, + "MacAlgorithm":{"shape":"MacAlgorithmSpec"}, + "KeyId":{"shape":"KeyIdType"} + } + }, "GenerateRandomRequest":{ "type":"structure", "members":{ @@ -1560,7 +1623,9 @@ "RetireGrant", "DescribeKey", "GenerateDataKeyPair", - "GenerateDataKeyPairWithoutPlaintext" + "GenerateDataKeyPairWithoutPlaintext", + "GenerateMac", + "VerifyMac" ] }, "GrantOperationList":{ @@ -1683,6 +1748,13 @@ "exception":true, "fault":true }, + "KMSInvalidMacException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "exception":true + }, "KMSInvalidSignatureException":{ "type":"structure", "members":{ @@ -1749,7 +1821,8 @@ "SigningAlgorithms":{"shape":"SigningAlgorithmSpecList"}, "MultiRegion":{"shape":"NullableBooleanType"}, "MultiRegionConfiguration":{"shape":"MultiRegionConfiguration"}, - "PendingDeletionWindowInDays":{"shape":"PendingWindowInDaysType"} + "PendingDeletionWindowInDays":{"shape":"PendingWindowInDaysType"}, + "MacAlgorithms":{"shape":"MacAlgorithmSpecList"} } }, "KeySpec":{ @@ -1762,7 +1835,11 @@ "ECC_NIST_P384", "ECC_NIST_P521", "ECC_SECG_P256K1", - "SYMMETRIC_DEFAULT" + "SYMMETRIC_DEFAULT", + "HMAC_224", + "HMAC_256", + "HMAC_384", + "HMAC_512" ] }, "KeyState":{ @@ -1796,7 +1873,8 @@ "type":"string", "enum":[ "SIGN_VERIFY", - "ENCRYPT_DECRYPT" + "ENCRYPT_DECRYPT", + "GENERATE_VERIFY_MAC" ] }, "LimitExceededException":{ @@ -1904,6 +1982,19 @@ "RetiringPrincipal":{"shape":"PrincipalIdType"} } }, + "MacAlgorithmSpec":{ + "type":"string", + "enum":[ + "HMAC_SHA_224", + "HMAC_SHA_256", + "HMAC_SHA_384", + "HMAC_SHA_512" + ] + }, + "MacAlgorithmSpecList":{ + "type":"list", + "member":{"shape":"MacAlgorithmSpec"} + }, "MalformedPolicyDocumentException":{ "type":"structure", "members":{ @@ -2274,6 +2365,30 @@ "PrimaryRegion":{"shape":"RegionType"} } }, + "VerifyMacRequest":{ + "type":"structure", + "required":[ + "Message", + "KeyId", + "MacAlgorithm", + "Mac" + ], + "members":{ + "Message":{"shape":"PlaintextType"}, + "KeyId":{"shape":"KeyIdType"}, + "MacAlgorithm":{"shape":"MacAlgorithmSpec"}, + "Mac":{"shape":"CiphertextType"}, + "GrantTokens":{"shape":"GrantTokenList"} + } + }, + "VerifyMacResponse":{ + "type":"structure", + "members":{ + "KeyId":{"shape":"KeyIdType"}, + "MacValid":{"shape":"BooleanType"}, + "MacAlgorithm":{"shape":"MacAlgorithmSpec"} + } + }, "VerifyRequest":{ "type":"structure", "required":[ diff --git a/apis/kms/2014-11-01/docs-2.json b/apis/kms/2014-11-01/docs-2.json index bfcdb2c63f2..9f734cbeec2 100644 --- a/apis/kms/2014-11-01/docs-2.json +++ b/apis/kms/2014-11-01/docs-2.json @@ -1,55 +1,57 @@ { "version": "2.0", - "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 is replacing 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.

Clients must support TLS (Transport Layer Security) 1.0. We recommend TLS 1.2. 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 by 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 key for everyday work with KMS. Instead, use the access key ID and secret access key for an IAM user. You can also use the Amazon Web Services Security Token Service to generate temporary security credentials that you can use to sign requests.

All KMS operations require 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:

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.

", + "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 is replacing 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 Service endpoints in the Key Management Service topic of the Amazon Web Services General Reference.

Clients must support TLS (Transport Layer Security) 1.0. We recommend TLS 1.2. 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 by 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 key for everyday work with KMS. Instead, use the access key ID and secret access key for an IAM user. You can also use the Amazon Web Services Security Token Service to generate temporary security credentials that you can use to sign requests.

All KMS operations require 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:

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.

", "operations": { - "CancelKeyDeletion": "

Cancels the deletion of a KMS key. When this operation succeeds, the key state of the KMS key is Disabled. To enable the KMS key, use EnableKey.

For more information about scheduling and canceling deletion of a KMS key, see Deleting KMS keys in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:CancelKeyDeletion (key policy)

Related operations: ScheduleKeyDeletion

", + "CancelKeyDeletion": "

Cancels the deletion of a KMS key. When this operation succeeds, the key state of the KMS key is Disabled. To enable the KMS key, use EnableKey.

For more information about scheduling and canceling deletion of a KMS key, see Deleting KMS keys in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:CancelKeyDeletion (key policy)

Related operations: ScheduleKeyDeletion

", "ConnectCustomKeyStore": "

Connects or reconnects a custom key store to its associated CloudHSM cluster.

The custom key store must be connected before you can create KMS keys in the key store or use the KMS keys it contains. You can disconnect and reconnect a custom key store at any time.

To connect a custom key store, its associated CloudHSM cluster must have at least one active HSM. To get the number of active HSMs in a cluster, use the DescribeClusters operation. To add HSMs to the cluster, use the CreateHsm operation. Also, the kmsuser crypto user (CU) must not be logged into the cluster. This prevents KMS from using this account to log in.

The connection process can take an extended amount of time to complete; up to 20 minutes. This operation starts the connection process, but it does not wait for it to complete. When it succeeds, this operation quickly returns an HTTP 200 response and a JSON object with no properties. However, this response does not indicate that the custom key store is connected. To get the connection state of the custom key store, use the DescribeCustomKeyStores operation.

During the connection process, KMS finds the CloudHSM cluster that is associated with the custom key store, creates the connection infrastructure, connects to the cluster, logs into the CloudHSM client as the kmsuser CU, and rotates its password.

The ConnectCustomKeyStore operation might fail for various reasons. To find the reason, use the DescribeCustomKeyStores operation and see the ConnectionErrorCode in the response. For help interpreting the ConnectionErrorCode, see CustomKeyStoresListEntry.

To fix the failure, use the DisconnectCustomKeyStore operation to disconnect the custom key store, correct the error, use the UpdateCustomKeyStore operation if necessary, and then use ConnectCustomKeyStore again.

If you are having trouble connecting or disconnecting a custom key store, see Troubleshooting a Custom Key Store in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:ConnectCustomKeyStore (IAM policy)

Related operations

", - "CreateAlias": "

Creates a friendly name for a KMS key.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see Using ABAC in KMS in the Key Management Service Developer Guide.

You can use an alias to identify a KMS key in the KMS console, in the DescribeKey operation and in cryptographic operations, such as Encrypt and GenerateDataKey. You can also change the KMS key that's associated with the alias (UpdateAlias) or delete the alias (DeleteAlias) at any time. These operations don't affect the underlying KMS key.

You can associate the alias with any customer managed key in the same Amazon Web Services Region. Each alias is associated with only one KMS key at a time, but a KMS key can have multiple aliases. A valid KMS key is required. You can't create an alias without a KMS key.

The alias must be unique in the account and Region, but you can have aliases with the same name in different Regions. For detailed information about aliases, see Using aliases in the Key Management Service Developer Guide.

This operation does not return a response. To get the alias that you created, use the ListAliases operation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on an alias in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

", + "CreateAlias": "

Creates a friendly name for a KMS key.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC in KMS in the Key Management Service Developer Guide.

You can use an alias to identify a KMS key in the KMS console, in the DescribeKey operation and in cryptographic operations, such as Encrypt and GenerateDataKey. You can also change the KMS key that's associated with the alias (UpdateAlias) or delete the alias (DeleteAlias) at any time. These operations don't affect the underlying KMS key.

You can associate the alias with any customer managed key in the same Amazon Web Services Region. Each alias is associated with only one KMS key at a time, but a KMS key can have multiple aliases. A valid KMS key is required. You can't create an alias without a KMS key.

The alias must be unique in the account and Region, but you can have aliases with the same name in different Regions. For detailed information about aliases, see Using aliases in the Key Management Service Developer Guide.

This operation does not return a response. To get the alias that you created, use the ListAliases operation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on an alias in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

", "CreateCustomKeyStore": "

Creates a custom key store that is associated with an CloudHSM cluster that you own and manage.

This operation is part of the Custom Key Store feature feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a single-tenant key store.

Before you create the custom key store, you must assemble the required elements, including an CloudHSM cluster that fulfills the requirements for a custom key store. For details about the required elements, see Assemble the Prerequisites in the Key Management Service Developer Guide.

When the operation completes successfully, it returns the ID of the new custom key store. Before you can use your new custom key store, you need to use the ConnectCustomKeyStore operation to connect the new key store to its CloudHSM cluster. Even if you are not going to use your custom key store immediately, you might want to connect it to verify that all settings are correct and then disconnect it until you are ready to use it.

For help with failures, see Troubleshooting a Custom Key Store in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:CreateCustomKeyStore (IAM policy).

Related operations:

", - "CreateGrant": "

Adds a grant to a KMS key.

A grant is a policy instrument that allows Amazon Web Services principals to use KMS keys in cryptographic operations. It also can allow them to view a KMS key (DescribeKey) and create and manage grants. When authorizing access to a KMS key, grants are considered along with key policies and IAM policies. Grants are often used for temporary permissions because you can create one, use its permissions, and delete it without changing your key policies or IAM policies.

For detailed information about grants, including grant terminology, see Using grants in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.

The CreateGrant operation returns a GrantToken and a GrantId.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:CreateGrant (key policy)

Related operations:

", - "CreateKey": "

Creates a unique customer managed KMS key in your Amazon Web Services account and Region.

KMS is replacing 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.

You can use the CreateKey operation to create symmetric or asymmetric KMS keys.

For information about symmetric and asymmetric KMS keys, see Using Symmetric and Asymmetric KMS keys in the Key Management Service Developer Guide.

To create different types of KMS keys, use the following guidance:

Asymmetric KMS keys

To create an asymmetric KMS key, use the KeySpec parameter to specify the type of key material in the KMS key. Then, use the KeyUsage parameter to determine whether the KMS key will be used to encrypt and decrypt or sign and verify. You can't change these properties after the KMS key is created.

Symmetric KMS keys

When creating a symmetric KMS key, you don't need to specify the KeySpec or KeyUsage parameters. The default value for KeySpec, SYMMETRIC_DEFAULT, and the default value for KeyUsage, ENCRYPT_DECRYPT, are the only valid values for symmetric KMS keys.

Multi-Region primary keys
Imported key material

To create a multi-Region primary key in the local Amazon Web Services Region, use the MultiRegion parameter with a value of True. To create a multi-Region replica key, that is, a KMS key with the same key ID and key material as a primary key, but in a different Amazon Web Services Region, use the ReplicateKey operation. To change a replica key to a primary key, and its primary key to a replica key, use the UpdatePrimaryRegion operation.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Using multi-Region keys in the Key Management Service Developer Guide.

You can create symmetric and asymmetric multi-Region keys and multi-Region keys with imported key material. You cannot create multi-Region keys in a custom key store.

To import your own key material, begin by creating a symmetric KMS key with no key material. To do this, use the Origin parameter of CreateKey with a value of EXTERNAL. Next, use GetParametersForImport operation to get a public key and import token, and use the public key to encrypt your key material. Then, use ImportKeyMaterial with your import token to import the key material. For step-by-step instructions, see Importing Key Material in the Key Management Service Developer Guide . You cannot import the key material into an asymmetric KMS key.

To create a multi-Region primary key with imported key material, use the Origin parameter of CreateKey with a value of EXTERNAL and the MultiRegion parameter with a value of True. To create replicas of the multi-Region primary key, use the ReplicateKey operation. For more information about multi-Region keys, see Using multi-Region keys in the Key Management Service Developer Guide.

Custom key store

To create a symmetric KMS key in a custom key store, use the CustomKeyStoreId parameter to specify the custom key store. You must also use the Origin parameter with a value of AWS_CLOUDHSM. The CloudHSM cluster that is associated with the custom key store must have at least two active HSMs in different Availability Zones in the Amazon Web Services Region.

You cannot create an asymmetric KMS key in a custom key store. For information about custom key stores in KMS see Using Custom Key Stores in the Key Management Service Developer Guide .

Cross-account use: No. You cannot use this operation to create a KMS key in a different Amazon Web Services account.

Required permissions: kms:CreateKey (IAM policy). To use the Tags parameter, kms:TagResource (IAM policy). For examples and information about related permissions, see Allow a user to create KMS keys in the Key Management Service Developer Guide.

Related operations:

", - "Decrypt": "

Decrypts ciphertext that was encrypted by a KMS key using any of the following operations:

You can use this operation to decrypt ciphertext that was encrypted under a symmetric or asymmetric KMS key. When the KMS key is asymmetric, you must specify the KMS key and the encryption algorithm that was used to encrypt the ciphertext. For information about symmetric and asymmetric KMS keys, see Using Symmetric and Asymmetric KMS keys in the Key Management Service Developer Guide.

The Decrypt operation also decrypts ciphertext that was encrypted outside of KMS by the public key in an KMS asymmetric KMS key. However, it cannot decrypt ciphertext produced by other libraries, such as the Amazon Web Services Encryption SDK or Amazon S3 client-side encryption. These libraries return a ciphertext format that is incompatible with KMS.

If the ciphertext was encrypted under a symmetric KMS key, the KeyId parameter is optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it was encrypted, even if they've lost track of the key ID. However, specifying the KMS key is always recommended as a best practice. When you use the KeyId parameter to specify a KMS key, KMS only uses the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the Decrypt operation fails. This practice ensures that you use the KMS key that you intend.

Whenever possible, use key policies to give users permission to call the Decrypt operation on a particular KMS key, instead of using IAM policies. Otherwise, you might create an IAM user policy that gives the user Decrypt permission on all KMS keys. This user could decrypt ciphertext that was encrypted by KMS keys in other accounts if the key policy for the cross-account KMS key permits it. If you must use an IAM policy for Decrypt permissions, limit the user to particular KMS keys or particular trusted accounts. For details, see Best practices for IAM policies in the Key Management Service Developer Guide.

Applications in Amazon Web Services Nitro Enclaves can call this operation by using the Amazon Web Services Nitro Enclaves Development Kit. For information about the supporting parameters, see How Amazon Web Services Nitro Enclaves use KMS in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Decrypt (key policy)

Related operations:

", - "DeleteAlias": "

Deletes the specified alias.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see Using ABAC in KMS in the Key Management Service Developer Guide.

Because an alias is not a property of a KMS key, you can delete and change the aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all KMS keys, use the ListAliases operation.

Each KMS key can have multiple aliases. To change the alias of a KMS key, use DeleteAlias to delete the current alias and CreateAlias to create a new alias. To associate an existing alias with a different KMS key, call UpdateAlias.

Cross-account use: No. You cannot perform this operation on an alias in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

", + "CreateGrant": "

Adds a grant to a KMS key.

A grant is a policy instrument that allows Amazon Web Services principals to use KMS keys in cryptographic operations. It also can allow them to view a KMS key (DescribeKey) and create and manage grants. When authorizing access to a KMS key, grants are considered along with key policies and IAM policies. Grants are often used for temporary permissions because you can create one, use its permissions, and delete it without changing your key policies or IAM policies.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.

The CreateGrant operation returns a GrantToken and a GrantId.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:CreateGrant (key policy)

Related operations:

", + "CreateKey": "

Creates a unique customer managed KMS key in your Amazon Web Services account and Region.

In addition to the required parameters, you can use the optional parameters to specify a key policy, description, tags, and other useful elements for any key type.

KMS is replacing 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.

To create different types of KMS keys, use the following guidance:

Symmetric encryption KMS key

To create a symmetric encryption KMS key, you aren't required to specify any parameters. The default value for KeySpec, SYMMETRIC_DEFAULT, and the default value for KeyUsage, ENCRYPT_DECRYPT, create a symmetric encryption KMS key.

If you need a key for basic encryption and decryption or you are creating a KMS key to protect your resources in an Amazon Web Services service, create a symmetric encryption KMS key. The key material in a symmetric encryption key never leaves KMS unencrypted. You can use a symmetric encryption KMS key to encrypt and decrypt data up to 4,096 bytes, but they are typically used to generate data keys and data keys pairs. For details, see GenerateDataKey and GenerateDataKeyPair.

Asymmetric KMS keys

To create an asymmetric KMS key, use the KeySpec parameter to specify the type of key material in the KMS key. Then, use the KeyUsage parameter to determine whether the KMS key will be used to encrypt and decrypt or sign and verify. You can't change these properties after the KMS key is created.

Asymmetric KMS keys contain an RSA key pair or an Elliptic Curve (ECC) key pair. The private key in an asymmetric KMS key never leaves AWS KMS unencrypted. However, you can use the GetPublicKey operation to download the public key so it can be used outside of AWS KMS. KMS keys with RSA key pairs can be used to encrypt or decrypt data or sign and verify messages (but not both). KMS keys with ECC key pairs can be used only to sign and verify messages. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

HMAC KMS key

To create an HMAC KMS key, set the KeySpec parameter to a key spec value for HMAC KMS keys. Then set the KeyUsage parameter to GENERATE_VERIFY_MAC. You must set the key usage even though GENERATE_VERIFY_MAC is the only valid key usage value for HMAC KMS keys. You can't change these properties after the KMS key is created.

HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use HMAC keys to generate (GenerateMac) and verify (VerifyMac) HMAC codes for messages up to 4096 bytes.

HMAC KMS keys are not supported in all Amazon Web Services Regions. If you try to create an HMAC KMS key in an Amazon Web Services Region in which HMAC keys are not supported, the CreateKey operation returns an UnsupportedOperationException. For a list of Regions in which HMAC KMS keys are supported, see HMAC keys in KMS in the Key Management Service Developer Guide.

Multi-Region primary keys
Imported key material

To create a multi-Region primary key in the local Amazon Web Services Region, use the MultiRegion parameter with a value of True. To create a multi-Region replica key, that is, a KMS key with the same key ID and key material as a primary key, but in a different Amazon Web Services Region, use the ReplicateKey operation. To change a replica key to a primary key, and its primary key to a replica key, use the UpdatePrimaryRegion operation.

You can create multi-Region KMS keys for all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't create multi-Region keys in a custom key store.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

To import your own key material, begin by creating a symmetric encryption KMS key with no key material. To do this, use the Origin parameter of CreateKey with a value of EXTERNAL. Next, use GetParametersForImport operation to get a public key and import token, and use the public key to encrypt your key material. Then, use ImportKeyMaterial with your import token to import the key material. For step-by-step instructions, see Importing Key Material in the Key Management Service Developer Guide .

This feature supports only symmetric encryption KMS keys, including multi-Region symmetric encryption KMS keys. You cannot import key material into any other type of KMS key.

To create a multi-Region primary key with imported key material, use the Origin parameter of CreateKey with a value of EXTERNAL and the MultiRegion parameter with a value of True. To create replicas of the multi-Region primary key, use the ReplicateKey operation. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

Custom key store

To create a symmetric encryption KMS key in a custom key store, use the CustomKeyStoreId parameter to specify the custom key store. You must also use the Origin parameter with a value of AWS_CLOUDHSM. The CloudHSM cluster that is associated with the custom key store must have at least two active HSMs in different Availability Zones in the Amazon Web Services Region.

Custom key stores support only symmetric encryption KMS keys. You cannot create an HMAC KMS key or an asymmetric KMS key in a custom key store. For information about custom key stores in KMS see Custom key stores in KMS in the Key Management Service Developer Guide .

Cross-account use: No. You cannot use this operation to create a KMS key in a different Amazon Web Services account.

Required permissions: kms:CreateKey (IAM policy). To use the Tags parameter, kms:TagResource (IAM policy). For examples and information about related permissions, see Allow a user to create KMS keys in the Key Management Service Developer Guide.

Related operations:

", + "Decrypt": "

Decrypts ciphertext that was encrypted by a KMS key using any of the following operations:

You can use this operation to decrypt ciphertext that was encrypted under a symmetric encryption KMS key or an asymmetric encryption KMS key. When the KMS key is asymmetric, you must specify the KMS key and the encryption algorithm that was used to encrypt the ciphertext. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

The Decrypt operation also decrypts ciphertext that was encrypted outside of KMS by the public key in an KMS asymmetric KMS key. However, it cannot decrypt symmetric ciphertext produced by other libraries, such as the Amazon Web Services Encryption SDK or Amazon S3 client-side encryption. These libraries return a ciphertext format that is incompatible with KMS.

If the ciphertext was encrypted under a symmetric encryption KMS key, the KeyId parameter is optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it was encrypted, even if they've lost track of the key ID. However, specifying the KMS key is always recommended as a best practice. When you use the KeyId parameter to specify a KMS key, KMS only uses the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the Decrypt operation fails. This practice ensures that you use the KMS key that you intend.

Whenever possible, use key policies to give users permission to call the Decrypt operation on a particular KMS key, instead of using IAM policies. Otherwise, you might create an IAM user policy that gives the user Decrypt permission on all KMS keys. This user could decrypt ciphertext that was encrypted by KMS keys in other accounts if the key policy for the cross-account KMS key permits it. If you must use an IAM policy for Decrypt permissions, limit the user to particular KMS keys or particular trusted accounts. For details, see Best practices for IAM policies in the Key Management Service Developer Guide.

Applications in Amazon Web Services Nitro Enclaves can call this operation by using the Amazon Web Services Nitro Enclaves Development Kit. For information about the supporting parameters, see How Amazon Web Services Nitro Enclaves use KMS in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Decrypt (key policy)

Related operations:

", + "DeleteAlias": "

Deletes the specified alias.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC in KMS in the Key Management Service Developer Guide.

Because an alias is not a property of a KMS key, you can delete and change the aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all KMS keys, use the ListAliases operation.

Each KMS key can have multiple aliases. To change the alias of a KMS key, use DeleteAlias to delete the current alias and CreateAlias to create a new alias. To associate an existing alias with a different KMS key, call UpdateAlias.

Cross-account use: No. You cannot perform this operation on an alias in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

", "DeleteCustomKeyStore": "

Deletes a custom key store. This operation does not delete the CloudHSM cluster that is associated with the custom key store, or affect any users or keys in the cluster.

The custom key store that you delete cannot contain any KMS KMS keys. Before deleting the key store, verify that you will never need to use any of the KMS keys in the key store for any cryptographic operations. Then, use ScheduleKeyDeletion to delete the KMS keys from the key store. When the scheduled waiting period expires, the ScheduleKeyDeletion operation deletes the KMS keys. Then it makes a best effort to delete the key material from the associated cluster. However, you might need to manually delete the orphaned key material from the cluster and its backups.

After all KMS keys are deleted from KMS, use DisconnectCustomKeyStore to disconnect the key store from KMS. Then, you can delete the custom key store.

Instead of deleting the custom key store, consider using DisconnectCustomKeyStore to disconnect it from KMS. While the key store is disconnected, you cannot create or use the KMS keys in the key store. But, you do not need to delete KMS keys and you can reconnect a disconnected custom key store at any time.

If the operation succeeds, it returns a JSON object with no properties.

This operation is part of the Custom Key Store feature feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a single-tenant key store.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DeleteCustomKeyStore (IAM policy)

Related operations:

", - "DeleteImportedKeyMaterial": "

Deletes key material that you previously imported. This operation makes the specified KMS key unusable. For more information about importing key material into KMS, see Importing Key Material in the Key Management Service Developer Guide.

When the specified KMS key is in the PendingDeletion state, this operation does not change the KMS key's state. Otherwise, it changes the KMS key's state to PendingImport.

After you delete key material, you can use ImportKeyMaterial to reimport the same key material into the KMS key.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DeleteImportedKeyMaterial (key policy)

Related operations:

", + "DeleteImportedKeyMaterial": "

Deletes key material that you previously imported. This operation makes the specified KMS key unusable. For more information about importing key material into KMS, see Importing Key Material in the Key Management Service Developer Guide.

When the specified KMS key is in the PendingDeletion state, this operation does not change the KMS key's state. Otherwise, it changes the KMS key's state to PendingImport.

After you delete key material, you can use ImportKeyMaterial to reimport the same key material into the KMS key.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DeleteImportedKeyMaterial (key policy)

Related operations:

", "DescribeCustomKeyStores": "

Gets information about custom key stores in the account and Region.

This operation is part of the Custom Key Store feature feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a single-tenant key store.

By default, this operation returns information about all custom key stores in the account and Region. To get only information about a particular custom key store, use either the CustomKeyStoreName or CustomKeyStoreId parameter (but not both).

To determine whether the custom key store is connected to its CloudHSM cluster, use the ConnectionState element in the response. If an attempt to connect the custom key store failed, the ConnectionState value is FAILED and the ConnectionErrorCode element in the response indicates the cause of the failure. For help interpreting the ConnectionErrorCode, see CustomKeyStoresListEntry.

Custom key stores have a DISCONNECTED connection state if the key store has never been connected or you use the DisconnectCustomKeyStore operation to disconnect it. If your custom key store state is CONNECTED but you are having trouble using it, make sure that its associated CloudHSM cluster is active and contains the minimum number of HSMs required for the operation, if any.

For help repairing your custom key store, see the Troubleshooting Custom Key Stores topic in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DescribeCustomKeyStores (IAM policy)

Related operations:

", - "DescribeKey": "

Provides detailed information about a KMS key. You can run DescribeKey on a customer managed key or an Amazon Web Services managed key.

This detailed information includes the key ARN, creation date (and deletion date, if applicable), the key state, and the origin and expiration date (if any) of the key material. It includes fields, like KeySpec, that help you distinguish symmetric from asymmetric KMS keys. It also provides information that is particularly important to asymmetric keys, such as the key usage (encryption or signing) and the encryption algorithms or signing algorithms that the KMS key supports. For KMS keys in custom key stores, it includes information about the custom key store, such as the key store ID and the CloudHSM cluster ID. For multi-Region keys, it displays the primary key and all related replica keys.

DescribeKey does not return the following information:

If you call the DescribeKey operation on a predefined Amazon Web Services alias, that is, an Amazon Web Services alias with no key ID, KMS creates an Amazon Web Services managed key. Then, it associates the alias with the new KMS key, and returns the KeyId and Arn of the new KMS key in the response.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:DescribeKey (key policy)

Related operations:

", - "DisableKey": "

Sets the state of a KMS key to disabled. This change temporarily prevents use of the KMS key for cryptographic operations.

For more information about how key state affects the use of a KMS key, see Key state: Effect on your KMS key in the Key Management Service Developer Guide .

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DisableKey (key policy)

Related operations: EnableKey

", - "DisableKeyRotation": "

Disables automatic rotation of the key material for the specified symmetric KMS key.

You cannot enable automatic rotation of asymmetric KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DisableKeyRotation (key policy)

Related operations:

", + "DescribeKey": "

Provides detailed information about a KMS key. You can run DescribeKey on a customer managed key or an Amazon Web Services managed key.

This detailed information includes the key ARN, creation date (and deletion date, if applicable), the key state, and the origin and expiration date (if any) of the key material. It includes fields, like KeySpec, that help you distinguish different types of KMS keys. It also displays the key usage (encryption, signing, or generating and verifying MACs) and the algorithms that the KMS key supports. For KMS keys in custom key stores, it includes information about the custom key store, such as the key store ID and the CloudHSM cluster ID. For multi-Region keys, it displays the primary key and all related replica keys.

DescribeKey does not return the following information:

In general, DescribeKey is a non-mutating operation. It returns data about KMS keys, but doesn't change them. However, Amazon Web Services services use DescribeKey to create Amazon Web Services managed keys from a predefined Amazon Web Services alias with no key ID.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:DescribeKey (key policy)

Related operations:

", + "DisableKey": "

Sets the state of a KMS key to disabled. This change temporarily prevents use of the KMS key for cryptographic operations.

For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide .

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DisableKey (key policy)

Related operations: EnableKey

", + "DisableKeyRotation": "

Disables automatic rotation of the key material for the specified symmetric encryption KMS key.

You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DisableKeyRotation (key policy)

Related operations:

", "DisconnectCustomKeyStore": "

Disconnects the custom key store from its associated CloudHSM cluster. While a custom key store is disconnected, you can manage the custom key store and its KMS keys, but you cannot create or use KMS keys in the custom key store. You can reconnect the custom key store at any time.

While a custom key store is disconnected, all attempts to create KMS keys in the custom key store or to use existing KMS keys in cryptographic operations will fail. This action can prevent users from storing and accessing sensitive data.

To find the connection state of a custom key store, use the DescribeCustomKeyStores operation. To reconnect a custom key store, use the ConnectCustomKeyStore operation.

If the operation succeeds, it returns a JSON object with no properties.

This operation is part of the Custom Key Store feature feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a single-tenant key store.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DisconnectCustomKeyStore (IAM policy)

Related operations:

", - "EnableKey": "

Sets the key state of a KMS key to enabled. This allows you to use the KMS key for cryptographic operations.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:EnableKey (key policy)

Related operations: DisableKey

", - "EnableKeyRotation": "

Enables automatic rotation of the key material for the specified symmetric KMS key.

You cannot enable automatic rotation of asymmetric KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:EnableKeyRotation (key policy)

Related operations:

", - "Encrypt": "

Encrypts plaintext into ciphertext by using a KMS key. The Encrypt operation has two primary use cases:

You don't need to use the Encrypt operation to encrypt a data key. The GenerateDataKey and GenerateDataKeyPair operations return a plaintext data key and an encrypted copy of that data key.

When you encrypt data, you must specify a symmetric or asymmetric KMS key to use in the encryption operation. The KMS key must have a KeyUsage value of ENCRYPT_DECRYPT. To find the KeyUsage of a KMS key, use the DescribeKey operation.

If you use a symmetric KMS key, you can use an encryption context to add additional security to your encryption operation. If you specify an EncryptionContext when encrypting data, you must specify the same encryption context (a case-sensitive exact match) when decrypting the data. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

If you specify an asymmetric KMS key, you must also specify the encryption algorithm. The algorithm must be compatible with the KMS key type.

When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt operation fails.

You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric KMS keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable fields.

The maximum size of the data that you can encrypt varies with the type of KMS key and the encryption algorithm that you choose.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Encrypt (key policy)

Related operations:

", - "GenerateDataKey": "

Generates a unique symmetric data key for client-side encryption. This operation returns a plaintext copy of the data key and a copy that is encrypted under a KMS key that you specify. You can use the plaintext key to encrypt your data outside of KMS and store the encrypted data key with the encrypted data.

GenerateDataKey returns a unique data key for each request. The bytes in the plaintext key are not related to the caller or the KMS key.

To generate a data key, specify the symmetric KMS key that will be used to encrypt the data key. You cannot use an asymmetric KMS key to generate data keys. To get the type of your KMS key, use the DescribeKey operation. You must also specify the length of the data key. Use either the KeySpec or NumberOfBytes parameters (but not both). For 128-bit and 256-bit data keys, use the KeySpec parameter.

To get only an encrypted copy of the data key, use GenerateDataKeyWithoutPlaintext. To generate an asymmetric data key pair, use the GenerateDataKeyPair or GenerateDataKeyPairWithoutPlaintext operation. To get a cryptographically secure random byte string, use GenerateRandom.

You can use the optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

Applications in Amazon Web Services Nitro Enclaves can call this operation by using the Amazon Web Services Nitro Enclaves Development Kit. For information about the supporting parameters, see How Amazon Web Services Nitro Enclaves use KMS in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

How to use your data key

We recommend that you use the following pattern to encrypt data locally in your application. You can write your own code or use a client-side encryption library, such as the Amazon Web Services Encryption SDK, the Amazon DynamoDB Encryption Client, or Amazon S3 client-side encryption to do these tasks for you.

To encrypt data outside of KMS:

  1. Use the GenerateDataKey operation to get a data key.

  2. Use the plaintext data key (in the Plaintext field of the response) to encrypt your data outside of KMS. Then erase the plaintext data key from memory.

  3. Store the encrypted data key (in the CiphertextBlob field of the response) with the encrypted data.

To decrypt data outside of KMS:

  1. Use the Decrypt operation to decrypt the encrypted data key. The operation returns a plaintext copy of the data key.

  2. Use the plaintext data key to decrypt data outside of KMS, then erase the plaintext data key from memory.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKey (key policy)

Related operations:

", - "GenerateDataKeyPair": "

Generates a unique asymmetric data key pair. The GenerateDataKeyPair operation returns a plaintext public key, a plaintext private key, and a copy of the private key that is encrypted under the symmetric KMS key you specify. You can use the data key pair to perform asymmetric cryptography and implement digital signatures outside of KMS.

You can use the public key that GenerateDataKeyPair returns to encrypt data or verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a message, you can use the Decrypt operation to decrypt the encrypted private key.

To generate a data key pair, you must specify a symmetric KMS key to encrypt the private key in a data key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

Use the KeyPairSpec parameter to choose an RSA or Elliptic Curve (ECC) data key pair. KMS recommends that your use ECC key pairs for signing, and use RSA key pairs for either encryption or signing, but not both. However, KMS cannot enforce any restrictions on the use of data key pairs outside of KMS.

If you are using the data key pair to encrypt data, or for any operation where you don't immediately need a private key, consider using the GenerateDataKeyPairWithoutPlaintext operation. GenerateDataKeyPairWithoutPlaintext returns a plaintext public key and an encrypted private key, but omits the plaintext private key that you need only to decrypt ciphertext or sign a message. Later, when you need to decrypt the data or sign a message, use the Decrypt operation to decrypt the encrypted private key in the data key pair.

GenerateDataKeyPair returns a unique data key pair for each request. The bytes in the keys are not related to the caller or the KMS key that is used to encrypt the private key. The public key is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in RFC 5280. The private key is a DER-encoded PKCS8 PrivateKeyInfo, as specified in RFC 5958.

You can use the optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyPair (key policy)

Related operations:

", - "GenerateDataKeyPairWithoutPlaintext": "

Generates a unique asymmetric data key pair. The GenerateDataKeyPairWithoutPlaintext operation returns a plaintext public key and a copy of the private key that is encrypted under the symmetric KMS key you specify. Unlike GenerateDataKeyPair, this operation does not return a plaintext private key.

You can use the public key that GenerateDataKeyPairWithoutPlaintext returns to encrypt data or verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a message, you can use the Decrypt operation to decrypt the encrypted private key.

To generate a data key pair, you must specify a symmetric KMS key to encrypt the private key in a data key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

Use the KeyPairSpec parameter to choose an RSA or Elliptic Curve (ECC) data key pair. KMS recommends that your use ECC key pairs for signing, and use RSA key pairs for either encryption or signing, but not both. However, KMS cannot enforce any restrictions on the use of data key pairs outside of KMS.

GenerateDataKeyPairWithoutPlaintext returns a unique data key pair for each request. The bytes in the key are not related to the caller or KMS key that is used to encrypt the private key. The public key is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in RFC 5280.

You can use the optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyPairWithoutPlaintext (key policy)

Related operations:

", - "GenerateDataKeyWithoutPlaintext": "

Generates a unique symmetric data key. This operation returns a data key that is encrypted under a KMS key that you specify. To request an asymmetric data key pair, use the GenerateDataKeyPair or GenerateDataKeyPairWithoutPlaintext operations.

GenerateDataKeyWithoutPlaintext is identical to the GenerateDataKey operation except that returns only the encrypted copy of the data key. This operation is useful for systems that need to encrypt data at some point, but not immediately. When you need to encrypt the data, you call the Decrypt operation on the encrypted copy of the key.

It's also useful in distributed systems with different levels of trust. For example, you might store encrypted data in containers. One component of your system creates new containers and stores an encrypted data key with each container. Then, a different component puts the data into the containers. That component first decrypts the data key, uses the plaintext data key to encrypt data, puts the encrypted data into the container, and then destroys the plaintext data key. In this system, the component that creates the containers never sees the plaintext data key.

GenerateDataKeyWithoutPlaintext returns a unique data key for each request. The bytes in the keys are not related to the caller or KMS key that is used to encrypt the private key.

To generate a data key, you must specify the symmetric KMS key that is used to encrypt the data key. You cannot use an asymmetric KMS key to generate a data key. To get the type of your KMS key, use the DescribeKey operation.

If the operation succeeds, you will find the encrypted copy of the data key in the CiphertextBlob field.

You can use the optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyWithoutPlaintext (key policy)

Related operations:

", + "EnableKey": "

Sets the key state of a KMS key to enabled. This allows you to use the KMS key for cryptographic operations.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:EnableKey (key policy)

Related operations: DisableKey

", + "EnableKeyRotation": "

Enables automatic rotation of the key material for the specified symmetric encryption KMS key.

You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:EnableKeyRotation (key policy)

Related operations:

", + "Encrypt": "

Encrypts plaintext of up to 4,096 bytes using a KMS key. You can use a symmetric or asymmetric KMS key with a KeyUsage of ENCRYPT_DECRYPT.

You can use this operation to encrypt small amounts of arbitrary data, such as a personal identifier or database password, or other sensitive information. You don't need to use the Encrypt operation to encrypt a data key. The GenerateDataKey and GenerateDataKeyPair operations return a plaintext data key and an encrypted copy of that data key.

If you use a symmetric encryption KMS key, you can use an encryption context to add additional security to your encryption operation. If you specify an EncryptionContext when encrypting data, you must specify the same encryption context (a case-sensitive exact match) when decrypting the data. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

If you specify an asymmetric KMS key, you must also specify the encryption algorithm. The algorithm must be compatible with the KMS key type.

When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt operation fails.

You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable fields.

The maximum size of the data that you can encrypt varies with the type of KMS key and the encryption algorithm that you choose.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Encrypt (key policy)

Related operations:

", + "GenerateDataKey": "

Returns a unique symmetric data key for use outside of KMS. This operation returns a plaintext copy of the data key and a copy that is encrypted under a symmetric encryption KMS key that you specify. The bytes in the plaintext key are random; they are not related to the caller or the KMS key. You can use the plaintext key to encrypt your data outside of KMS and store the encrypted data key with the encrypted data.

To generate a data key, specify the symmetric encryption KMS key that will be used to encrypt the data key. You cannot use an asymmetric KMS key to encrypt data keys. To get the type of your KMS key, use the DescribeKey operation. You must also specify the length of the data key. Use either the KeySpec or NumberOfBytes parameters (but not both). For 128-bit and 256-bit data keys, use the KeySpec parameter.

To get only an encrypted copy of the data key, use GenerateDataKeyWithoutPlaintext. To generate an asymmetric data key pair, use the GenerateDataKeyPair or GenerateDataKeyPairWithoutPlaintext operation. To get a cryptographically secure random byte string, use GenerateRandom.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

Applications in Amazon Web Services Nitro Enclaves can call this operation by using the Amazon Web Services Nitro Enclaves Development Kit. For information about the supporting parameters, see How Amazon Web Services Nitro Enclaves use KMS in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

How to use your data key

We recommend that you use the following pattern to encrypt data locally in your application. You can write your own code or use a client-side encryption library, such as the Amazon Web Services Encryption SDK, the Amazon DynamoDB Encryption Client, or Amazon S3 client-side encryption to do these tasks for you.

To encrypt data outside of KMS:

  1. Use the GenerateDataKey operation to get a data key.

  2. Use the plaintext data key (in the Plaintext field of the response) to encrypt your data outside of KMS. Then erase the plaintext data key from memory.

  3. Store the encrypted data key (in the CiphertextBlob field of the response) with the encrypted data.

To decrypt data outside of KMS:

  1. Use the Decrypt operation to decrypt the encrypted data key. The operation returns a plaintext copy of the data key.

  2. Use the plaintext data key to decrypt data outside of KMS, then erase the plaintext data key from memory.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKey (key policy)

Related operations:

", + "GenerateDataKeyPair": "

Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key, a plaintext private key, and a copy of the private key that is encrypted under the symmetric encryption KMS key you specify. You can use the data key pair to perform asymmetric cryptography and implement digital signatures outside of KMS. The bytes in the keys are random; they not related to the caller or to the KMS key that is used to encrypt the private key.

You can use the public key that GenerateDataKeyPair returns to encrypt data or verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a message, you can use the Decrypt operation to decrypt the encrypted private key.

To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

Use the KeyPairSpec parameter to choose an RSA or Elliptic Curve (ECC) data key pair. KMS recommends that your use ECC key pairs for signing, and use RSA key pairs for either encryption or signing, but not both. However, KMS cannot enforce any restrictions on the use of data key pairs outside of KMS.

If you are using the data key pair to encrypt data, or for any operation where you don't immediately need a private key, consider using the GenerateDataKeyPairWithoutPlaintext operation. GenerateDataKeyPairWithoutPlaintext returns a plaintext public key and an encrypted private key, but omits the plaintext private key that you need only to decrypt ciphertext or sign a message. Later, when you need to decrypt the data or sign a message, use the Decrypt operation to decrypt the encrypted private key in the data key pair.

GenerateDataKeyPair returns a unique data key pair for each request. The bytes in the keys are random; they are not related to the caller or the KMS key that is used to encrypt the private key. The public key is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in RFC 5280. The private key is a DER-encoded PKCS8 PrivateKeyInfo, as specified in RFC 5958.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyPair (key policy)

Related operations:

", + "GenerateDataKeyPairWithoutPlaintext": "

Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key and a copy of the private key that is encrypted under the symmetric encryption KMS key you specify. Unlike GenerateDataKeyPair, this operation does not return a plaintext private key. The bytes in the keys are random; they are not related to the caller or to the KMS key that is used to encrypt the private key.

You can use the public key that GenerateDataKeyPairWithoutPlaintext returns to encrypt data or verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a message, you can use the Decrypt operation to decrypt the encrypted private key.

To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

Use the KeyPairSpec parameter to choose an RSA or Elliptic Curve (ECC) data key pair. KMS recommends that your use ECC key pairs for signing, and use RSA key pairs for either encryption or signing, but not both. However, KMS cannot enforce any restrictions on the use of data key pairs outside of KMS.

GenerateDataKeyPairWithoutPlaintext returns a unique data key pair for each request. The bytes in the key are not related to the caller or KMS key that is used to encrypt the private key. The public key is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in RFC 5280.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyPairWithoutPlaintext (key policy)

Related operations:

", + "GenerateDataKeyWithoutPlaintext": "

Returns a unique symmetric data key for use outside of KMS. This operation returns a data key that is encrypted under a symmetric encryption KMS key that you specify. The bytes in the key are random; they are not related to the caller or to the KMS key.

GenerateDataKeyWithoutPlaintext is identical to the GenerateDataKey operation except that it does not return a plaintext copy of the data key.

This operation is useful for systems that need to encrypt data at some point, but not immediately. When you need to encrypt the data, you call the Decrypt operation on the encrypted copy of the key. It's also useful in distributed systems with different levels of trust. For example, you might store encrypted data in containers. One component of your system creates new containers and stores an encrypted data key with each container. Then, a different component puts the data into the containers. That component first decrypts the data key, uses the plaintext data key to encrypt data, puts the encrypted data into the container, and then destroys the plaintext data key. In this system, the component that creates the containers never sees the plaintext data key.

To request an asymmetric data key pair, use the GenerateDataKeyPair or GenerateDataKeyPairWithoutPlaintext operations.

To generate a data key, you must specify the symmetric encryption KMS key that is used to encrypt the data key. You cannot use an asymmetric KMS key or a key in a custom key store to generate a data key. To get the type of your KMS key, use the DescribeKey operation.

If the operation succeeds, you will find the encrypted copy of the data key in the CiphertextBlob field.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyWithoutPlaintext (key policy)

Related operations:

", + "GenerateMac": "

Generates a hash-based message authentication code (HMAC) for a message using an HMAC KMS key and a MAC algorithm that the key supports. The MAC algorithm computes the HMAC for the message and the key as described in RFC 2104.

You can use the HMAC that this operation generates with the VerifyMac operation to demonstrate that the original message has not changed. Also, because a secret key is used to create the hash, you can verify that the party that generated the hash has the required secret key. This operation is part of KMS support for HMAC KMS keys. For details, see HMAC keys in KMS in the Key Management Service Developer Guide .

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateMac (key policy)

Related operations: VerifyMac

", "GenerateRandom": "

Returns a random byte string that is cryptographically secure.

By default, the random byte string is generated in KMS. To generate the byte string in the CloudHSM cluster that is associated with a custom key store, specify the custom key store ID.

Applications in Amazon Web Services Nitro Enclaves can call this operation by using the Amazon Web Services Nitro Enclaves Development Kit. For information about the supporting parameters, see How Amazon Web Services Nitro Enclaves use KMS in the Key Management Service Developer Guide.

For more information about entropy and random number generation, see Key Management Service Cryptographic Details.

Required permissions: kms:GenerateRandom (IAM policy)

", "GetKeyPolicy": "

Gets a key policy attached to the specified KMS key.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:GetKeyPolicy (key policy)

Related operations: PutKeyPolicy

", - "GetKeyRotationStatus": "

Gets a Boolean value that indicates whether automatic rotation of the key material is enabled for the specified KMS key.

You cannot enable automatic rotation of asymmetric KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key. The key rotation status for these KMS keys is always false.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:GetKeyRotationStatus (key policy)

Related operations:

", - "GetParametersForImport": "

Returns the items you need to import key material into a symmetric, customer managed KMS key. For more information about importing key material into KMS, see Importing Key Material in the Key Management Service Developer Guide.

This operation returns a public key and an import token. Use the public key to encrypt the symmetric key material. Store the import token to send with a subsequent ImportKeyMaterial request.

You must specify the key ID of the symmetric KMS key into which you will import key material. This KMS key's Origin must be EXTERNAL. You must also specify the wrapping algorithm and type of wrapping key (public key) that you will use to encrypt the key material. You cannot perform this operation on an asymmetric KMS key or on any KMS key in a different Amazon Web Services account.

To import key material, you must use the public key and import token from the same response. These items are valid for 24 hours. The expiration date and time appear in the GetParametersForImport response. You cannot use an expired token in an ImportKeyMaterial request. If your key and token expire, send another GetParametersForImport request.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:GetParametersForImport (key policy)

Related operations:

", - "GetPublicKey": "

Returns the public key of an asymmetric KMS key. Unlike the private key of a asymmetric KMS key, which never leaves KMS unencrypted, callers with kms:GetPublicKey permission can download the public key of an asymmetric KMS key. You can share the public key to allow others to encrypt messages and verify signatures outside of KMS. For information about symmetric and asymmetric KMS keys, see Using Symmetric and Asymmetric KMS keys in the Key Management Service Developer Guide.

You do not need to download the public key. Instead, you can use the public key within KMS by calling the Encrypt, ReEncrypt, or Verify operations with the identifier of an asymmetric KMS key. When you use the public key within KMS, you benefit from the authentication, authorization, and logging that are part of every KMS operation. You also reduce of risk of encrypting data that cannot be decrypted. These features are not effective outside of KMS. For details, see Special Considerations for Downloading Public Keys.

To help you use the public key safely outside of KMS, GetPublicKey returns important information about the public key in the response, including:

Although KMS cannot enforce these restrictions on external operations, it is crucial that you use this information to prevent the public key from being used improperly. For example, you can prevent a public signing key from being used encrypt data, or prevent a public key from being used with an encryption algorithm that is not supported by KMS. You can also avoid errors, such as using the wrong signing algorithm in a verification operation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GetPublicKey (key policy)

Related operations: CreateKey

", - "ImportKeyMaterial": "

Imports key material into an existing symmetric KMS KMS key that was created without key material. After you successfully import key material into a KMS key, you can reimport the same key material into that KMS key, but you cannot import different key material.

You cannot perform this operation on an asymmetric KMS key or on any KMS key in a different Amazon Web Services account. For more information about creating KMS keys with no key material and then importing key material, see Importing Key Material in the Key Management Service Developer Guide.

Before using this operation, call GetParametersForImport. Its response includes a public key and an import token. Use the public key to encrypt the key material. Then, submit the import token from the same GetParametersForImport response.

When calling this operation, you must specify the following values:

When this operation is successful, the key state of the KMS key changes from PendingImport to Enabled, and you can use the KMS key.

If this operation fails, use the exception to help determine the problem. If the error is related to the key material, the import token, or wrapping key, use GetParametersForImport to get a new public key and import token for the KMS key and repeat the import procedure. For help, see How To Import Key Material in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ImportKeyMaterial (key policy)

Related operations:

", + "GetKeyRotationStatus": "

Gets a Boolean value that indicates whether automatic rotation of the key material is enabled for the specified KMS key.

You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key. The key rotation status for these KMS keys is always false.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:GetKeyRotationStatus (key policy)

Related operations:

", + "GetParametersForImport": "

Returns the items you need to import key material into a symmetric encryption KMS key. For more information about importing key material into KMS, see Importing key material in the Key Management Service Developer Guide.

This operation returns a public key and an import token. Use the public key to encrypt the symmetric key material. Store the import token to send with a subsequent ImportKeyMaterial request.

You must specify the key ID of the symmetric encryption KMS key into which you will import key material. This KMS key's Origin must be EXTERNAL. You must also specify the wrapping algorithm and type of wrapping key (public key) that you will use to encrypt the key material. You cannot perform this operation on an asymmetric KMS key, an HMAC KMS key, or on any KMS key in a different Amazon Web Services account.

To import key material, you must use the public key and import token from the same response. These items are valid for 24 hours. The expiration date and time appear in the GetParametersForImport response. You cannot use an expired token in an ImportKeyMaterial request. If your key and token expire, send another GetParametersForImport request.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:GetParametersForImport (key policy)

Related operations:

", + "GetPublicKey": "

Returns the public key of an asymmetric KMS key. Unlike the private key of a asymmetric KMS key, which never leaves KMS unencrypted, callers with kms:GetPublicKey permission can download the public key of an asymmetric KMS key. You can share the public key to allow others to encrypt messages and verify signatures outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

You do not need to download the public key. Instead, you can use the public key within KMS by calling the Encrypt, ReEncrypt, or Verify operations with the identifier of an asymmetric KMS key. When you use the public key within KMS, you benefit from the authentication, authorization, and logging that are part of every KMS operation. You also reduce of risk of encrypting data that cannot be decrypted. These features are not effective outside of KMS. For details, see Special Considerations for Downloading Public Keys.

To help you use the public key safely outside of KMS, GetPublicKey returns important information about the public key in the response, including:

Although KMS cannot enforce these restrictions on external operations, it is crucial that you use this information to prevent the public key from being used improperly. For example, you can prevent a public signing key from being used encrypt data, or prevent a public key from being used with an encryption algorithm that is not supported by KMS. You can also avoid errors, such as using the wrong signing algorithm in a verification operation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GetPublicKey (key policy)

Related operations: CreateKey

", + "ImportKeyMaterial": "

Imports key material into an existing symmetric encryption KMS key that was created without key material. After you successfully import key material into a KMS key, you can reimport the same key material into that KMS key, but you cannot import different key material.

You cannot perform this operation on an asymmetric KMS key, an HMAC KMS key, or on any KMS key in a different Amazon Web Services account. For more information about creating KMS keys with no key material and then importing key material, see Importing Key Material in the Key Management Service Developer Guide.

Before using this operation, call GetParametersForImport. Its response includes a public key and an import token. Use the public key to encrypt the key material. Then, submit the import token from the same GetParametersForImport response.

When calling this operation, you must specify the following values:

When this operation is successful, the key state of the KMS key changes from PendingImport to Enabled, and you can use the KMS key.

If this operation fails, use the exception to help determine the problem. If the error is related to the key material, the import token, or wrapping key, use GetParametersForImport to get a new public key and import token for the KMS key and repeat the import procedure. For help, see How To Import Key Material in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ImportKeyMaterial (key policy)

Related operations:

", "ListAliases": "

Gets a list of aliases in the caller's Amazon Web Services account and region. For more information about aliases, see CreateAlias.

By default, the ListAliases operation returns all aliases in the account and region. To get only the aliases associated with a particular KMS key, use the KeyId parameter.

The ListAliases response can include aliases that you created and associated with your customer managed keys, and aliases that Amazon Web Services created and associated with Amazon Web Services managed keys in your account. You can recognize Amazon Web Services aliases because their names have the format aws/<service-name>, such as aws/dynamodb.

The response might also include aliases that have no TargetKeyId field. These are predefined aliases that Amazon Web Services has created but has not yet associated with a KMS key. Aliases that Amazon Web Services creates in your account, including predefined aliases, do not count against your KMS aliases quota.

Cross-account use: No. ListAliases does not return aliases in other Amazon Web Services accounts.

Required permissions: kms:ListAliases (IAM policy)

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

", - "ListGrants": "

Gets a list of all grants for the specified KMS key.

You must specify the KMS key in all requests. You can filter the grant list by grant ID or grantee principal.

For detailed information about grants, including grant terminology, see Using grants in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.

The GranteePrincipal field in the ListGrants response usually contains the user or role designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon Web Services service, the GranteePrincipal field contains the service principal, which might represent several different grantee principals.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:ListGrants (key policy)

Related operations:

", + "ListGrants": "

Gets a list of all grants for the specified KMS key.

You must specify the KMS key in all requests. You can filter the grant list by grant ID or grantee principal.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.

The GranteePrincipal field in the ListGrants response usually contains the user or role designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon Web Services service, the GranteePrincipal field contains the service principal, which might represent several different grantee principals.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:ListGrants (key policy)

Related operations:

", "ListKeyPolicies": "

Gets the names of the key policies that are attached to a KMS key. This operation is designed to get policy names that you can use in a GetKeyPolicy operation. However, the only valid policy name is default.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListKeyPolicies (key policy)

Related operations:

", "ListKeys": "

Gets a list of all KMS keys in the caller's Amazon Web Services account and Region.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListKeys (IAM policy)

Related operations:

", "ListResourceTags": "

Returns all tags on the specified KMS key.

For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference. For information about using tags in KMS, see Tagging keys.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListResourceTags (key policy)

Related operations:

", - "ListRetirableGrants": "

Returns information about all grants in the Amazon Web Services account and Region that have the specified retiring principal.

You can specify any principal in your Amazon Web Services account. The grants that are returned include grants for KMS keys in your Amazon Web Services account and other Amazon Web Services accounts. You might use this operation to determine which grants you may retire. To retire a grant, use the RetireGrant operation.

For detailed information about grants, including grant terminology, see Using grants in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: You must specify a principal in your Amazon Web Services account. However, this operation can return grants in any Amazon Web Services account. You do not need kms:ListRetirableGrants permission (or any other additional permission) in any Amazon Web Services account other than your own.

Required permissions: kms:ListRetirableGrants (IAM policy) in your Amazon Web Services account.

Related operations:

", + "ListRetirableGrants": "

Returns information about all grants in the Amazon Web Services account and Region that have the specified retiring principal.

You can specify any principal in your Amazon Web Services account. The grants that are returned include grants for KMS keys in your Amazon Web Services account and other Amazon Web Services accounts. You might use this operation to determine which grants you may retire. To retire a grant, use the RetireGrant operation.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: You must specify a principal in your Amazon Web Services account. However, this operation can return grants in any Amazon Web Services account. You do not need kms:ListRetirableGrants permission (or any other additional permission) in any Amazon Web Services account other than your own.

Required permissions: kms:ListRetirableGrants (IAM policy) in your Amazon Web Services account.

Related operations:

", "PutKeyPolicy": "

Attaches a key policy to the specified KMS key.

For more information about key policies, see Key Policies in the Key Management Service Developer Guide. For help writing and formatting a JSON policy document, see the IAM JSON Policy Reference in the Identity and Access Management User Guide . For examples of adding a key policy in multiple programming languages, see Setting a key policy in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:PutKeyPolicy (key policy)

Related operations: GetKeyPolicy

", - "ReEncrypt": "

Decrypts ciphertext and then reencrypts it entirely within KMS. You can use this operation to change the KMS key under which data is encrypted, such as when you manually rotate a KMS key or change the KMS key that protects a ciphertext. You can also use it to reencrypt ciphertext under the same KMS key, such as to change the encryption context of a ciphertext.

The ReEncrypt operation can decrypt ciphertext that was encrypted by using an KMS KMS key in an KMS operation, such as Encrypt or GenerateDataKey. It can also decrypt ciphertext that was encrypted by using the public key of an asymmetric KMS key outside of KMS. However, it cannot decrypt ciphertext produced by other libraries, such as the Amazon Web Services Encryption SDK or Amazon S3 client-side encryption. These libraries return a ciphertext format that is incompatible with KMS.

When you use the ReEncrypt operation, you need to provide information for the decrypt operation and the subsequent encrypt operation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: Yes. The source KMS key and destination KMS key can be in different Amazon Web Services accounts. Either or both KMS keys can be in a different account than the caller. To specify a KMS key in a different account, you must use its key ARN or alias ARN.

Required permissions:

To permit reencryption from or to a KMS key, include the \"kms:ReEncrypt*\" permission in your key policy. This permission is automatically included in the key policy when you use the console to create a KMS key. But you must include it manually when you create a KMS key programmatically or when you use the PutKeyPolicy operation to set a key policy.

Related operations:

", - "ReplicateKey": "

Replicates a multi-Region key into the specified Region. This operation creates a multi-Region replica key based on a multi-Region primary key in a different Region of the same Amazon Web Services partition. You can create multiple replicas of a primary key, but each must be in a different Region. To create a multi-Region primary key, use the CreateKey operation.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Using multi-Region keys in the Key Management Service Developer Guide.

A replica key is a fully-functional KMS key that can be used independently of its primary and peer replica keys. A primary key and its replica keys share properties that make them interoperable. They have the same key ID and key material. They also have the same key spec, key usage, key material origin, and automatic key rotation status. KMS automatically synchronizes these shared properties among related multi-Region keys. All other properties of a replica key can differ, including its key policy, tags, aliases, and key state. KMS pricing and quotas for KMS keys apply to each primary key and replica key.

When this operation completes, the new replica key has a transient key state of Creating. This key state changes to Enabled (or PendingImport) after a few seconds when the process of creating the new replica key is complete. While the key state is Creating, you can manage key, but you cannot yet use it in cryptographic operations. If you are creating and using the replica key programmatically, retry on KMSInvalidStateException or call DescribeKey to check its KeyState value before using it. For details about the Creating key state, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

The CloudTrail log of a ReplicateKey operation records a ReplicateKey operation in the primary key's Region and a CreateKey operation in the replica key's Region.

If you replicate a multi-Region primary key with imported key material, the replica key is created with no key material. You must import the same key material that you imported into the primary key. For details, see Importing key material into multi-Region keys in the Key Management Service Developer Guide.

To convert a replica key to a primary key, use the UpdatePrimaryRegion operation.

ReplicateKey uses different default values for the KeyPolicy and Tags parameters than those used in the KMS console. For details, see the parameter descriptions.

Cross-account use: No. You cannot use this operation to create a replica key in a different Amazon Web Services account.

Required permissions:

Related operations

", - "RetireGrant": "

Deletes a grant. Typically, you retire a grant when you no longer need its permissions. To identify the grant to retire, use a grant token, or both the grant ID and a key identifier (key ID or key ARN) of the KMS key. The CreateGrant operation returns both values.

This operation can be called by the retiring principal for a grant, by the grantee principal if the grant allows the RetireGrant operation, and by the Amazon Web Services account (root user) in which the grant is created. It can also be called by principals to whom permission for retiring a grant is delegated. For details, see Retiring and revoking grants in the Key Management Service Developer Guide.

For detailed information about grants, including grant terminology, see Using grants in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: Yes. You can retire a grant on a KMS key in a different Amazon Web Services account.

Required permissions::Permission to retire a grant is determined primarily by the grant. For details, see Retiring and revoking grants in the Key Management Service Developer Guide.

Related operations:

", - "RevokeGrant": "

Deletes the specified grant. You revoke a grant to terminate the permissions that the grant allows. For more information, see Retiring and revoking grants in the Key Management Service Developer Guide .

When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until the grant is available throughout KMS. This state is known as eventual consistency. For details, see Eventual consistency in the Key Management Service Developer Guide .

For detailed information about grants, including grant terminology, see Using grants in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:RevokeGrant (key policy).

Related operations:

", - "ScheduleKeyDeletion": "

Schedules the deletion of a KMS key. By default, KMS applies a waiting period of 30 days, but you can specify a waiting period of 7-30 days. When this operation is successful, the key state of the KMS key changes to PendingDeletion and the key can't be used in any cryptographic operations. It remains in this state for the duration of the waiting period. Before the waiting period ends, you can use CancelKeyDeletion to cancel the deletion of the KMS key. After the waiting period ends, KMS deletes the KMS key, its key material, and all KMS data associated with it, including all aliases that refer to it.

Deleting a KMS key is a destructive and potentially dangerous operation. When a KMS key is deleted, all data that was encrypted under the KMS key is unrecoverable. (The only exception is a multi-Region replica key.) To prevent the use of a KMS key without deleting it, use DisableKey.

If you schedule deletion of a KMS key from a custom key store, when the waiting period expires, ScheduleKeyDeletion deletes the KMS key from KMS. Then KMS makes a best effort to delete the key material from the associated CloudHSM cluster. However, you might need to manually delete the orphaned key material from the cluster and its backups.

You can schedule the deletion of a multi-Region primary key and its replica keys at any time. However, KMS will not delete a multi-Region primary key with existing replica keys. If you schedule the deletion of a primary key with replicas, its key state changes to PendingReplicaDeletion and it cannot be replicated or used in cryptographic operations. This status can continue indefinitely. When the last of its replicas keys is deleted (not just scheduled), the key state of the primary key changes to PendingDeletion and its waiting period (PendingWindowInDays) begins. For details, see Deleting multi-Region keys in the Key Management Service Developer Guide.

For more information about scheduling a KMS key for deletion, see Deleting KMS keys in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ScheduleKeyDeletion (key policy)

Related operations

", - "Sign": "

Creates a digital signature for a message or message digest by using the private key in an asymmetric KMS key. To verify the signature, use the Verify operation, or use the public key in the same asymmetric KMS key outside of KMS. For information about symmetric and asymmetric KMS keys, see Using Symmetric and Asymmetric KMS keys in the Key Management Service Developer Guide.

Digital signatures are generated and verified by using asymmetric key pair, such as an RSA or ECC pair that is represented by an asymmetric KMS key. The key owner (or an authorized user) uses their private key to sign a message. Anyone with the public key can verify that the message was signed with that particular private key and that the message hasn't changed since it was signed.

To use the Sign operation, provide the following information:

When signing a message, be sure to record the KMS key and the signing algorithm. This information is required to verify the signature.

To verify the signature that this operation generates, use the Verify operation. Or use the GetPublicKey operation to download the public key and then use the public key to verify the signature outside of KMS.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Sign (key policy)

Related operations: Verify

", - "TagResource": "

Adds or edits tags on a customer managed key.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see Using ABAC in KMS in the Key Management Service Developer Guide.

Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value.

You can use this operation to tag a customer managed key, but you cannot tag an Amazon Web Services managed key, an Amazon Web Services owned key, a custom key store, or an alias.

You can also add tags to a KMS key while creating it (CreateKey) or replicating it (ReplicateKey).

For information about using tags in KMS, see Tagging keys. For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:TagResource (key policy)

Related operations

", - "UntagResource": "

Deletes tags from a customer managed key. To delete a tag, specify the tag key and the KMS key.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see Using ABAC in KMS in the Key Management Service Developer Guide.

When it succeeds, the UntagResource operation doesn't return any output. Also, if the specified tag key isn't found on the KMS key, it doesn't throw an exception or return a response. To confirm that the operation worked, use the ListResourceTags operation.

For information about using tags in KMS, see Tagging keys. For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:UntagResource (key policy)

Related operations

", - "UpdateAlias": "

Associates an existing KMS alias with a different KMS key. Each alias is associated with only one KMS key at a time, although a KMS key can have multiple aliases. The alias and the KMS key must be in the same Amazon Web Services account and Region.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see Using ABAC in KMS in the Key Management Service Developer Guide.

The current and new KMS key must be the same type (both symmetric or both asymmetric), and they must have the same key usage (ENCRYPT_DECRYPT or SIGN_VERIFY). This restriction prevents errors in code that uses aliases. If you must assign an alias to a different type of KMS key, use DeleteAlias to delete the old alias and CreateAlias to create a new alias.

You cannot use UpdateAlias to change an alias name. To change an alias name, use DeleteAlias to delete the old alias and CreateAlias to create a new alias.

Because an alias is not a property of a KMS key, you can create, update, and delete the aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all KMS keys in the account, use the ListAliases operation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

", + "ReEncrypt": "

Decrypts ciphertext and then reencrypts it entirely within KMS. You can use this operation to change the KMS key under which data is encrypted, such as when you manually rotate a KMS key or change the KMS key that protects a ciphertext. You can also use it to reencrypt ciphertext under the same KMS key, such as to change the encryption context of a ciphertext.

The ReEncrypt operation can decrypt ciphertext that was encrypted by using a KMS key in an KMS operation, such as Encrypt or GenerateDataKey. It can also decrypt ciphertext that was encrypted by using the public key of an asymmetric KMS key outside of KMS. However, it cannot decrypt ciphertext produced by other libraries, such as the Amazon Web Services Encryption SDK or Amazon S3 client-side encryption. These libraries return a ciphertext format that is incompatible with KMS.

When you use the ReEncrypt operation, you need to provide information for the decrypt operation and the subsequent encrypt operation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. The source KMS key and destination KMS key can be in different Amazon Web Services accounts. Either or both KMS keys can be in a different account than the caller. To specify a KMS key in a different account, you must use its key ARN or alias ARN.

Required permissions:

To permit reencryption from or to a KMS key, include the \"kms:ReEncrypt*\" permission in your key policy. This permission is automatically included in the key policy when you use the console to create a KMS key. But you must include it manually when you create a KMS key programmatically or when you use the PutKeyPolicy operation to set a key policy.

Related operations:

", + "ReplicateKey": "

Replicates a multi-Region key into the specified Region. This operation creates a multi-Region replica key based on a multi-Region primary key in a different Region of the same Amazon Web Services partition. You can create multiple replicas of a primary key, but each must be in a different Region. To create a multi-Region primary key, use the CreateKey operation.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

A replica key is a fully-functional KMS key that can be used independently of its primary and peer replica keys. A primary key and its replica keys share properties that make them interoperable. They have the same key ID and key material. They also have the same key spec, key usage, key material origin, and automatic key rotation status. KMS automatically synchronizes these shared properties among related multi-Region keys. All other properties of a replica key can differ, including its key policy, tags, aliases, and Key states of KMS keys. KMS pricing and quotas for KMS keys apply to each primary key and replica key.

When this operation completes, the new replica key has a transient key state of Creating. This key state changes to Enabled (or PendingImport) after a few seconds when the process of creating the new replica key is complete. While the key state is Creating, you can manage key, but you cannot yet use it in cryptographic operations. If you are creating and using the replica key programmatically, retry on KMSInvalidStateException or call DescribeKey to check its KeyState value before using it. For details about the Creating key state, see Key states of KMS keys in the Key Management Service Developer Guide.

You cannot create more than one replica of a primary key in any Region. If the Region already includes a replica of the key you're trying to replicate, ReplicateKey returns an AlreadyExistsException error. If the key state of the existing replica is PendingDeletion, you can cancel the scheduled key deletion (CancelKeyDeletion) or wait for the key to be deleted. The new replica key you create will have the same shared properties as the original replica key.

The CloudTrail log of a ReplicateKey operation records a ReplicateKey operation in the primary key's Region and a CreateKey operation in the replica key's Region.

If you replicate a multi-Region primary key with imported key material, the replica key is created with no key material. You must import the same key material that you imported into the primary key. For details, see Importing key material into multi-Region keys in the Key Management Service Developer Guide.

To convert a replica key to a primary key, use the UpdatePrimaryRegion operation.

ReplicateKey uses different default values for the KeyPolicy and Tags parameters than those used in the KMS console. For details, see the parameter descriptions.

Cross-account use: No. You cannot use this operation to create a replica key in a different Amazon Web Services account.

Required permissions:

Related operations

", + "RetireGrant": "

Deletes a grant. Typically, you retire a grant when you no longer need its permissions. To identify the grant to retire, use a grant token, or both the grant ID and a key identifier (key ID or key ARN) of the KMS key. The CreateGrant operation returns both values.

This operation can be called by the retiring principal for a grant, by the grantee principal if the grant allows the RetireGrant operation, and by the Amazon Web Services account in which the grant is created. It can also be called by principals to whom permission for retiring a grant is delegated. For details, see Retiring and revoking grants in the Key Management Service Developer Guide.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: Yes. You can retire a grant on a KMS key in a different Amazon Web Services account.

Required permissions::Permission to retire a grant is determined primarily by the grant. For details, see Retiring and revoking grants in the Key Management Service Developer Guide.

Related operations:

", + "RevokeGrant": "

Deletes the specified grant. You revoke a grant to terminate the permissions that the grant allows. For more information, see Retiring and revoking grants in the Key Management Service Developer Guide .

When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until the grant is available throughout KMS. This state is known as eventual consistency. For details, see Eventual consistency in the Key Management Service Developer Guide .

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:RevokeGrant (key policy).

Related operations:

", + "ScheduleKeyDeletion": "

Schedules the deletion of a KMS key. By default, KMS applies a waiting period of 30 days, but you can specify a waiting period of 7-30 days. When this operation is successful, the key state of the KMS key changes to PendingDeletion and the key can't be used in any cryptographic operations. It remains in this state for the duration of the waiting period. Before the waiting period ends, you can use CancelKeyDeletion to cancel the deletion of the KMS key. After the waiting period ends, KMS deletes the KMS key, its key material, and all KMS data associated with it, including all aliases that refer to it.

Deleting a KMS key is a destructive and potentially dangerous operation. When a KMS key is deleted, all data that was encrypted under the KMS key is unrecoverable. (The only exception is a multi-Region replica key.) To prevent the use of a KMS key without deleting it, use DisableKey.

If you schedule deletion of a KMS key from a custom key store, when the waiting period expires, ScheduleKeyDeletion deletes the KMS key from KMS. Then KMS makes a best effort to delete the key material from the associated CloudHSM cluster. However, you might need to manually delete the orphaned key material from the cluster and its backups.

You can schedule the deletion of a multi-Region primary key and its replica keys at any time. However, KMS will not delete a multi-Region primary key with existing replica keys. If you schedule the deletion of a primary key with replicas, its key state changes to PendingReplicaDeletion and it cannot be replicated or used in cryptographic operations. This status can continue indefinitely. When the last of its replicas keys is deleted (not just scheduled), the key state of the primary key changes to PendingDeletion and its waiting period (PendingWindowInDays) begins. For details, see Deleting multi-Region keys in the Key Management Service Developer Guide.

For more information about scheduling a KMS key for deletion, see Deleting KMS keys in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ScheduleKeyDeletion (key policy)

Related operations

", + "Sign": "

Creates a digital signature for a message or message digest by using the private key in an asymmetric signing KMS key. To verify the signature, use the Verify operation, or use the public key in the same asymmetric KMS key outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

Digital signatures are generated and verified by using asymmetric key pair, such as an RSA or ECC pair that is represented by an asymmetric KMS key. The key owner (or an authorized user) uses their private key to sign a message. Anyone with the public key can verify that the message was signed with that particular private key and that the message hasn't changed since it was signed.

To use the Sign operation, provide the following information:

When signing a message, be sure to record the KMS key and the signing algorithm. This information is required to verify the signature.

To verify the signature that this operation generates, use the Verify operation. Or use the GetPublicKey operation to download the public key and then use the public key to verify the signature outside of KMS.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Sign (key policy)

Related operations: Verify

", + "TagResource": "

Adds or edits tags on a customer managed key.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see ABAC in KMS in the Key Management Service Developer Guide.

Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value.

You can use this operation to tag a customer managed key, but you cannot tag an Amazon Web Services managed key, an Amazon Web Services owned key, a custom key store, or an alias.

You can also add tags to a KMS key while creating it (CreateKey) or replicating it (ReplicateKey).

For information about using tags in KMS, see Tagging keys. For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:TagResource (key policy)

Related operations

", + "UntagResource": "

Deletes tags from a customer managed key. To delete a tag, specify the tag key and the KMS key.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see ABAC in KMS in the Key Management Service Developer Guide.

When it succeeds, the UntagResource operation doesn't return any output. Also, if the specified tag key isn't found on the KMS key, it doesn't throw an exception or return a response. To confirm that the operation worked, use the ListResourceTags operation.

For information about using tags in KMS, see Tagging keys. For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:UntagResource (key policy)

Related operations

", + "UpdateAlias": "

Associates an existing KMS alias with a different KMS key. Each alias is associated with only one KMS key at a time, although a KMS key can have multiple aliases. The alias and the KMS key must be in the same Amazon Web Services account and Region.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC in KMS in the Key Management Service Developer Guide.

The current and new KMS key must be the same type (both symmetric or both asymmetric), and they must have the same key usage (ENCRYPT_DECRYPT or SIGN_VERIFY). This restriction prevents errors in code that uses aliases. If you must assign an alias to a different type of KMS key, use DeleteAlias to delete the old alias and CreateAlias to create a new alias.

You cannot use UpdateAlias to change an alias name. To change an alias name, use DeleteAlias to delete the old alias and CreateAlias to create a new alias.

Because an alias is not a property of a KMS key, you can create, update, and delete the aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all KMS keys in the account, use the ListAliases operation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

", "UpdateCustomKeyStore": "

Changes the properties of a custom key store. Use the CustomKeyStoreId parameter to identify the custom key store you want to edit. Use the remaining parameters to change the properties of the custom key store.

You can only update a custom key store that is disconnected. To disconnect the custom key store, use DisconnectCustomKeyStore. To reconnect the custom key store after the update completes, use ConnectCustomKeyStore. To find the connection state of a custom key store, use the DescribeCustomKeyStores operation.

The CustomKeyStoreId parameter is required in all commands. Use the other parameters of UpdateCustomKeyStore to edit your key store settings.

If the operation succeeds, it returns a JSON object with no properties.

This operation is part of the Custom Key Store feature feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a single-tenant key store.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:UpdateCustomKeyStore (IAM policy)

Related operations:

", - "UpdateKeyDescription": "

Updates the description of a KMS key. To see the description of a KMS key, use DescribeKey.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:UpdateKeyDescription (key policy)

Related operations

", - "UpdatePrimaryRegion": "

Changes the primary key of a multi-Region key.

This operation changes the replica key in the specified Region to a primary key and changes the former primary key to a replica key. For example, suppose you have a primary key in us-east-1 and a replica key in eu-west-2. If you run UpdatePrimaryRegion with a PrimaryRegion value of eu-west-2, the primary key is now the key in eu-west-2, and the key in us-east-1 becomes a replica key. For details, see Updating the primary Region in the Key Management Service Developer Guide.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Using multi-Region keys in the Key Management Service Developer Guide.

The primary key of a multi-Region key is the source for properties that are always shared by primary and replica keys, including the key material, key ID, key spec, key usage, key material origin, and automatic key rotation. It's the only key that can be replicated. You cannot delete the primary key until all replica keys are deleted.

The key ID and primary Region that you specify uniquely identify the replica key that will become the primary key. The primary Region must already have a replica key. This operation does not create a KMS key in the specified Region. To find the replica keys, use the DescribeKey operation on the primary key or any replica key. To create a replica key, use the ReplicateKey operation.

You can run this operation while using the affected multi-Region keys in cryptographic operations. This operation should not delay, interrupt, or cause failures in cryptographic operations.

Even after this operation completes, the process of updating the primary Region might still be in progress for a few more seconds. Operations such as DescribeKey might display both the old and new primary keys as replicas. The old and new primary keys have a transient key state of Updating. The original key state is restored when the update is complete. While the key state is Updating, you can use the keys in cryptographic operations, but you cannot replicate the new primary key or perform certain management operations, such as enabling or disabling these keys. For details about the Updating key state, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

This operation does not return any output. To verify that primary key is changed, use the DescribeKey operation.

Cross-account use: No. You cannot use this operation in a different Amazon Web Services account.

Required permissions:

Related operations

", - "Verify": "

Verifies a digital signature that was generated by the Sign operation.

Verification confirms that an authorized user signed the message with the specified KMS key and signing algorithm, and the message hasn't changed since it was signed. If the signature is verified, the value of the SignatureValid field in the response is True. If the signature verification fails, the Verify operation fails with an KMSInvalidSignatureException exception.

A digital signature is generated by using the private key in an asymmetric KMS key. The signature is verified by using the public key in the same asymmetric KMS key. For information about symmetric and asymmetric KMS keys, see Using Symmetric and Asymmetric KMS keys in the Key Management Service Developer Guide.

To verify a digital signature, you can use the Verify operation. Specify the same asymmetric KMS key, message, and signing algorithm that were used to produce the signature.

You can also verify the digital signature by using the public key of the KMS key outside of KMS. Use the GetPublicKey operation to download the public key in the asymmetric KMS key and then use the public key to verify the signature outside of KMS. The advantage of using the Verify operation is that it is performed within KMS. As a result, it's easy to call, the operation is performed within the FIPS boundary, it is logged in CloudTrail, and you can use key policy and IAM policy to determine who is authorized to use the KMS key to verify signatures.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Verify (key policy)

Related operations: Sign

" + "UpdateKeyDescription": "

Updates the description of a KMS key. To see the description of a KMS key, use DescribeKey.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:UpdateKeyDescription (key policy)

Related operations

", + "UpdatePrimaryRegion": "

Changes the primary key of a multi-Region key.

This operation changes the replica key in the specified Region to a primary key and changes the former primary key to a replica key. For example, suppose you have a primary key in us-east-1 and a replica key in eu-west-2. If you run UpdatePrimaryRegion with a PrimaryRegion value of eu-west-2, the primary key is now the key in eu-west-2, and the key in us-east-1 becomes a replica key. For details, see Updating the primary Region in the Key Management Service Developer Guide.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

The primary key of a multi-Region key is the source for properties that are always shared by primary and replica keys, including the key material, key ID, key spec, key usage, key material origin, and automatic key rotation. It's the only key that can be replicated. You cannot delete the primary key until all replica keys are deleted.

The key ID and primary Region that you specify uniquely identify the replica key that will become the primary key. The primary Region must already have a replica key. This operation does not create a KMS key in the specified Region. To find the replica keys, use the DescribeKey operation on the primary key or any replica key. To create a replica key, use the ReplicateKey operation.

You can run this operation while using the affected multi-Region keys in cryptographic operations. This operation should not delay, interrupt, or cause failures in cryptographic operations.

Even after this operation completes, the process of updating the primary Region might still be in progress for a few more seconds. Operations such as DescribeKey might display both the old and new primary keys as replicas. The old and new primary keys have a transient key state of Updating. The original key state is restored when the update is complete. While the key state is Updating, you can use the keys in cryptographic operations, but you cannot replicate the new primary key or perform certain management operations, such as enabling or disabling these keys. For details about the Updating key state, see Key states of KMS keys in the Key Management Service Developer Guide.

This operation does not return any output. To verify that primary key is changed, use the DescribeKey operation.

Cross-account use: No. You cannot use this operation in a different Amazon Web Services account.

Required permissions:

Related operations

", + "Verify": "

Verifies a digital signature that was generated by the Sign operation.

Verification confirms that an authorized user signed the message with the specified KMS key and signing algorithm, and the message hasn't changed since it was signed. If the signature is verified, the value of the SignatureValid field in the response is True. If the signature verification fails, the Verify operation fails with an KMSInvalidSignatureException exception.

A digital signature is generated by using the private key in an asymmetric KMS key. The signature is verified by using the public key in the same asymmetric KMS key. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

To verify a digital signature, you can use the Verify operation. Specify the same asymmetric KMS key, message, and signing algorithm that were used to produce the signature.

You can also verify the digital signature by using the public key of the KMS key outside of KMS. Use the GetPublicKey operation to download the public key in the asymmetric KMS key and then use the public key to verify the signature outside of KMS. The advantage of using the Verify operation is that it is performed within KMS. As a result, it's easy to call, the operation is performed within the FIPS boundary, it is logged in CloudTrail, and you can use key policy and IAM policy to determine who is authorized to use the KMS key to verify signatures.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Verify (key policy)

Related operations: Sign

", + "VerifyMac": "

Verifies the hash-based message authentication code (HMAC) for a specified message, HMAC KMS key, and MAC algorithm. To verify the HMAC, VerifyMac computes an HMAC using the message, HMAC KMS key, and MAC algorithm that you specify, and compares the computed HMAC to the HMAC that you specify. If the HMACs are identical, the verification succeeds; otherwise, it fails.

Verification indicates that the message hasn't changed since the HMAC was calculated, and the specified key was used to generate and verify the HMAC.

This operation is part of KMS support for HMAC KMS keys. For details, see HMAC keys in KMS in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:VerifyMac (key policy)

Related operations: GenerateMac

" }, "shapes": { "AWSAccountIdType": { @@ -113,6 +115,7 @@ "ListResourceTagsResponse$Truncated": "

A flag that indicates whether there are more items in the list. When this value is true, the list in this response is truncated. To get more items, pass the value of the NextMarker element in thisresponse to the Marker parameter in a subsequent request.

", "PutKeyPolicyRequest$BypassPolicyLockoutSafetyCheck": "

A flag to indicate whether to bypass the key policy lockout safety check.

Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately.

For more information, refer to the scenario in the Default Key Policy section in the Key Management Service Developer Guide.

Use this parameter only when you intend to prevent the principal that is making the request from making a subsequent PutKeyPolicy request on the KMS key.

The default value is false.

", "ReplicateKeyRequest$BypassPolicyLockoutSafetyCheck": "

A flag to indicate whether to bypass the key policy lockout safety check.

Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately.

For more information, refer to the scenario in the Default Key Policy section in the Key Management Service Developer Guide.

Use this parameter only when you intend to prevent the principal that is making the request from making a subsequent PutKeyPolicy request on the KMS key.

The default value is false.

", + "VerifyMacResponse$MacValid": "

A Boolean value that indicates whether the HMAC was verified. A value of True indicates that the HMAC (Mac) was generated with the specified Message, HMAC KMS key (KeyID) and MacAlgorithm..

If the HMAC is not verified, the VerifyMac operation fails with a KMSInvalidMacException exception. This exception indicates that one or more of the inputs changed since the HMAC was computed.

", "VerifyResponse$SignatureValid": "

A Boolean value that indicates whether the signature was verified. A value of True indicates that the Signature was produced by signing the Message with the specified KeyID and SigningAlgorithm. If the signature is not verified, the Verify operation fails with a KMSInvalidSignatureException exception.

" } }, @@ -135,12 +138,14 @@ "GenerateDataKeyPairWithoutPlaintextResponse$PrivateKeyCiphertextBlob": "

The encrypted copy of the private key. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

", "GenerateDataKeyResponse$CiphertextBlob": "

The encrypted copy of the data key. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

", "GenerateDataKeyWithoutPlaintextResponse$CiphertextBlob": "

The encrypted data key. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

", + "GenerateMacResponse$Mac": "

The hash-based message authentication code (HMAC) for the given message, key, and MAC algorithm.

", "GetParametersForImportResponse$ImportToken": "

The import token to send in a subsequent ImportKeyMaterial request.

", "ImportKeyMaterialRequest$ImportToken": "

The import token that you received in the response to a previous GetParametersForImport request. It must be from the same response that contained the public key that you used to encrypt the key material.

", "ImportKeyMaterialRequest$EncryptedKeyMaterial": "

The encrypted key material to import. The key material must be encrypted with the public wrapping key that GetParametersForImport returned, using the wrapping algorithm that you specified in the same GetParametersForImport request.

", "ReEncryptRequest$CiphertextBlob": "

Ciphertext of the data to reencrypt.

", "ReEncryptResponse$CiphertextBlob": "

The reencrypted data. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

", "SignResponse$Signature": "

The cryptographic signature that was generated for the message.

When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

", + "VerifyMacRequest$Mac": "

The HMAC to verify. Enter the HMAC that was generated by the GenerateMac operation when you specified the same message, HMAC KMS key, and MAC algorithm as the values specified in this request.

", "VerifyRequest$Signature": "

The signature that the Sign operation generated.

" } }, @@ -245,7 +250,7 @@ "refs": { "ConnectCustomKeyStoreRequest$CustomKeyStoreId": "

Enter the key store ID of the custom key store that you want to connect. To find the ID of a custom key store, use the DescribeCustomKeyStores operation.

", "CreateCustomKeyStoreResponse$CustomKeyStoreId": "

A unique identifier for the new custom key store.

", - "CreateKeyRequest$CustomKeyStoreId": "

Creates the KMS key in the specified custom key store and the key material in its associated CloudHSM cluster. To create a KMS key in a custom key store, you must also specify the Origin parameter with a value of AWS_CLOUDHSM. The CloudHSM cluster that is associated with the custom key store must have at least two active HSMs, each in a different Availability Zone in the Region.

This parameter is valid only for symmetric KMS keys and regional KMS keys. You cannot create an asymmetric KMS key or a multi-Region key in a custom key store.

To find the ID of a custom key store, use the DescribeCustomKeyStores operation.

The response includes the custom key store ID and the ID of the CloudHSM cluster.

This operation is part of the Custom Key Store feature feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a single-tenant key store.

", + "CreateKeyRequest$CustomKeyStoreId": "

Creates the KMS key in the specified custom key store and the key material in its associated CloudHSM cluster. To create a KMS key in a custom key store, you must also specify the Origin parameter with a value of AWS_CLOUDHSM. The CloudHSM cluster that is associated with the custom key store must have at least two active HSMs, each in a different Availability Zone in the Region.

This parameter is valid only for symmetric encryption KMS keys in a single Region. You cannot create any other type of KMS key in a custom key store.

To find the ID of a custom key store, use the DescribeCustomKeyStores operation.

The response includes the custom key store ID and the ID of the CloudHSM cluster.

This operation is part of the Custom Key Store feature feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a single-tenant key store.

", "CustomKeyStoresListEntry$CustomKeyStoreId": "

A unique identifier for the custom key store.

", "DeleteCustomKeyStoreRequest$CustomKeyStoreId": "

Enter the ID of the custom key store you want to delete. To find the ID of a custom key store, use the DescribeCustomKeyStores operation.

", "DescribeCustomKeyStoresRequest$CustomKeyStoreId": "

Gets only information about the specified custom key store. Enter the key store ID.

By default, this operation gets information about all custom key stores in the account and Region. To limit the output to a particular custom key store, you can use either the CustomKeyStoreId or CustomKeyStoreName parameter, but not both.

", @@ -442,13 +447,13 @@ "EncryptionAlgorithmSpec": { "base": null, "refs": { - "DecryptRequest$EncryptionAlgorithm": "

Specifies the encryption algorithm that will be used to decrypt the ciphertext. Specify the same algorithm that was used to encrypt the data. If you specify a different algorithm, the Decrypt operation fails.

This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. The default value, SYMMETRIC_DEFAULT, represents the only supported algorithm that is valid for symmetric KMS keys.

", + "DecryptRequest$EncryptionAlgorithm": "

Specifies the encryption algorithm that will be used to decrypt the ciphertext. Specify the same algorithm that was used to encrypt the data. If you specify a different algorithm, the Decrypt operation fails.

This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. The default value, SYMMETRIC_DEFAULT, represents the only supported algorithm that is valid for symmetric encryption KMS keys.

", "DecryptResponse$EncryptionAlgorithm": "

The encryption algorithm that was used to decrypt the ciphertext.

", - "EncryptRequest$EncryptionAlgorithm": "

Specifies the encryption algorithm that KMS will use to encrypt the plaintext message. The algorithm must be compatible with the KMS key that you specify.

This parameter is required only for asymmetric KMS keys. The default value, SYMMETRIC_DEFAULT, is the algorithm used for symmetric KMS keys. If you are using an asymmetric KMS key, we recommend RSAES_OAEP_SHA_256.

", + "EncryptRequest$EncryptionAlgorithm": "

Specifies the encryption algorithm that KMS will use to encrypt the plaintext message. The algorithm must be compatible with the KMS key that you specify.

This parameter is required only for asymmetric KMS keys. The default value, SYMMETRIC_DEFAULT, is the algorithm used for symmetric encryption KMS keys. If you are using an asymmetric KMS key, we recommend RSAES_OAEP_SHA_256.

", "EncryptResponse$EncryptionAlgorithm": "

The encryption algorithm that was used to encrypt the plaintext.

", "EncryptionAlgorithmSpecList$member": null, - "ReEncryptRequest$SourceEncryptionAlgorithm": "

Specifies the encryption algorithm that KMS will use to decrypt the ciphertext before it is reencrypted. The default value, SYMMETRIC_DEFAULT, represents the algorithm used for symmetric KMS keys.

Specify the same algorithm that was used to encrypt the ciphertext. If you specify a different algorithm, the decrypt attempt fails.

This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key.

", - "ReEncryptRequest$DestinationEncryptionAlgorithm": "

Specifies the encryption algorithm that KMS will use to reecrypt the data after it has decrypted it. The default value, SYMMETRIC_DEFAULT, represents the encryption algorithm used for symmetric KMS keys.

This parameter is required only when the destination KMS key is an asymmetric KMS key.

", + "ReEncryptRequest$SourceEncryptionAlgorithm": "

Specifies the encryption algorithm that KMS will use to decrypt the ciphertext before it is reencrypted. The default value, SYMMETRIC_DEFAULT, represents the algorithm used for symmetric encryption KMS keys.

Specify the same algorithm that was used to encrypt the ciphertext. If you specify a different algorithm, the decrypt attempt fails.

This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key.

", + "ReEncryptRequest$DestinationEncryptionAlgorithm": "

Specifies the encryption algorithm that KMS will use to reecrypt the data after it has decrypted it. The default value, SYMMETRIC_DEFAULT, represents the encryption algorithm used for symmetric encryption KMS keys.

This parameter is required only when the destination KMS key is an asymmetric KMS key.

", "ReEncryptResponse$SourceEncryptionAlgorithm": "

The encryption algorithm that was used to decrypt the ciphertext before it was reencrypted.

", "ReEncryptResponse$DestinationEncryptionAlgorithm": "

The encryption algorithm that was used to reencrypt the data.

" } @@ -469,16 +474,16 @@ "EncryptionContextType": { "base": null, "refs": { - "DecryptRequest$EncryptionContext": "

Specifies the encryption context to use when decrypting the data. An encryption context is valid only for cryptographic operations with a symmetric KMS key. The standard asymmetric encryption algorithms that KMS uses do not support an encryption context.

An encryption context is a collection of non-secret key-value pairs that represents additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is optional when encrypting with a symmetric KMS key, but it is highly recommended.

For more information, see Encryption Context in the Key Management Service Developer Guide.

", - "EncryptRequest$EncryptionContext": "

Specifies the encryption context that will be used to encrypt the data. An encryption context is valid only for cryptographic operations with a symmetric KMS key. The standard asymmetric encryption algorithms that KMS uses do not support an encryption context.

An encryption context is a collection of non-secret key-value pairs that represents additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is optional when encrypting with a symmetric KMS key, but it is highly recommended.

For more information, see Encryption Context in the Key Management Service Developer Guide.

", - "GenerateDataKeyPairRequest$EncryptionContext": "

Specifies the encryption context that will be used when encrypting the private key in the data key pair.

An encryption context is a collection of non-secret key-value pairs that represents additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is optional when encrypting with a symmetric KMS key, but it is highly recommended.

For more information, see Encryption Context in the Key Management Service Developer Guide.

", - "GenerateDataKeyPairWithoutPlaintextRequest$EncryptionContext": "

Specifies the encryption context that will be used when encrypting the private key in the data key pair.

An encryption context is a collection of non-secret key-value pairs that represents additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is optional when encrypting with a symmetric KMS key, but it is highly recommended.

For more information, see Encryption Context in the Key Management Service Developer Guide.

", - "GenerateDataKeyRequest$EncryptionContext": "

Specifies the encryption context that will be used when encrypting the data key.

An encryption context is a collection of non-secret key-value pairs that represents additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is optional when encrypting with a symmetric KMS key, but it is highly recommended.

For more information, see Encryption Context in the Key Management Service Developer Guide.

", - "GenerateDataKeyWithoutPlaintextRequest$EncryptionContext": "

Specifies the encryption context that will be used when encrypting the data key.

An encryption context is a collection of non-secret key-value pairs that represents additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is optional when encrypting with a symmetric KMS key, but it is highly recommended.

For more information, see Encryption Context in the Key Management Service Developer Guide.

", + "DecryptRequest$EncryptionContext": "

Specifies the encryption context to use when decrypting the data. An encryption context is valid only for cryptographic operations with a symmetric encryption KMS key. The standard asymmetric encryption algorithms and HMAC algorithms that KMS uses do not support an encryption context.

An encryption context is a collection of non-secret key-value pairs that represent additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an encryption context is optional, but it is strongly recommended.

For more information, see Encryption context in the Key Management Service Developer Guide.

", + "EncryptRequest$EncryptionContext": "

Specifies the encryption context that will be used to encrypt the data. An encryption context is valid only for cryptographic operations with a symmetric encryption KMS key. The standard asymmetric encryption algorithms and HMAC algorithms that KMS uses do not support an encryption context.

An encryption context is a collection of non-secret key-value pairs that represent additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an encryption context is optional, but it is strongly recommended.

For more information, see Encryption context in the Key Management Service Developer Guide.

", + "GenerateDataKeyPairRequest$EncryptionContext": "

Specifies the encryption context that will be used when encrypting the private key in the data key pair.

An encryption context is a collection of non-secret key-value pairs that represent additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an encryption context is optional, but it is strongly recommended.

For more information, see Encryption context in the Key Management Service Developer Guide.

", + "GenerateDataKeyPairWithoutPlaintextRequest$EncryptionContext": "

Specifies the encryption context that will be used when encrypting the private key in the data key pair.

An encryption context is a collection of non-secret key-value pairs that represent additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an encryption context is optional, but it is strongly recommended.

For more information, see Encryption context in the Key Management Service Developer Guide.

", + "GenerateDataKeyRequest$EncryptionContext": "

Specifies the encryption context that will be used when encrypting the data key.

An encryption context is a collection of non-secret key-value pairs that represent additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an encryption context is optional, but it is strongly recommended.

For more information, see Encryption context in the Key Management Service Developer Guide.

", + "GenerateDataKeyWithoutPlaintextRequest$EncryptionContext": "

Specifies the encryption context that will be used when encrypting the data key.

An encryption context is a collection of non-secret key-value pairs that represent additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an encryption context is optional, but it is strongly recommended.

For more information, see Encryption context in the Key Management Service Developer Guide.

", "GrantConstraints$EncryptionContextSubset": "

A list of key-value pairs that must be included in the encryption context of the cryptographic operation request. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs.

", "GrantConstraints$EncryptionContextEquals": "

A list of key-value pairs that must match the encryption context in the cryptographic operation request. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint.

", - "ReEncryptRequest$SourceEncryptionContext": "

Specifies the encryption context to use to decrypt the ciphertext. Enter the same encryption context that was used to encrypt the ciphertext.

An encryption context is a collection of non-secret key-value pairs that represents additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is optional when encrypting with a symmetric KMS key, but it is highly recommended.

For more information, see Encryption Context in the Key Management Service Developer Guide.

", - "ReEncryptRequest$DestinationEncryptionContext": "

Specifies that encryption context to use when the reencrypting the data.

A destination encryption context is valid only when the destination KMS key is a symmetric KMS key. The standard ciphertext format for asymmetric KMS keys does not include fields for metadata.

An encryption context is a collection of non-secret key-value pairs that represents additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is optional when encrypting with a symmetric KMS key, but it is highly recommended.

For more information, see Encryption Context in the Key Management Service Developer Guide.

" + "ReEncryptRequest$SourceEncryptionContext": "

Specifies the encryption context to use to decrypt the ciphertext. Enter the same encryption context that was used to encrypt the ciphertext.

An encryption context is a collection of non-secret key-value pairs that represent additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an encryption context is optional, but it is strongly recommended.

For more information, see Encryption context in the Key Management Service Developer Guide.

", + "ReEncryptRequest$DestinationEncryptionContext": "

Specifies that encryption context to use when the reencrypting the data.

A destination encryption context is valid only when the destination KMS key is a symmetric encryption KMS key. The standard ciphertext format for asymmetric KMS keys does not include fields for metadata.

An encryption context is a collection of non-secret key-value pairs that represent additional authenticated data. When you use an encryption context to encrypt data, you must specify the same (an exact case-sensitive match) encryption context to decrypt the data. An encryption context is supported only on operations with symmetric encryption KMS keys. On operations with symmetric encryption KMS keys, an encryption context is optional, but it is strongly recommended.

For more information, see Encryption context in the Key Management Service Developer Guide.

" } }, "EncryptionContextValue": { @@ -515,6 +520,7 @@ "InvalidKeyUsageException$message": null, "InvalidMarkerException$message": null, "KMSInternalException$message": null, + "KMSInvalidMacException$message": null, "KMSInvalidSignatureException$message": null, "KMSInvalidStateException$message": null, "KeyUnavailableException$message": null, @@ -577,6 +583,16 @@ "refs": { } }, + "GenerateMacRequest": { + "base": null, + "refs": { + } + }, + "GenerateMacResponse": { + "base": null, + "refs": { + } + }, "GenerateRandomRequest": { "base": null, "refs": { @@ -628,9 +644,9 @@ } }, "GrantConstraints": { - "base": "

Use this structure to allow cryptographic operations in the grant only when the operation request includes the specified encryption context.

KMS applies the grant constraints only to cryptographic operations that support an encryption context, that is, all cryptographic operations with a symmetric KMS key. Grant constraints are not applied to operations that do not support an encryption context, such as cryptographic operations with asymmetric KMS keys and management operations, such as DescribeKey or RetireGrant.

In a cryptographic operation, the encryption context in the decryption operation must be an exact, case-sensitive match for the keys and values in the encryption context of the encryption operation. Only the order of the pairs can vary.

However, in a grant constraint, the key in each key-value pair is not case sensitive, but the value is case sensitive.

To avoid confusion, do not use multiple encryption context pairs that differ only by case. To require a fully case-sensitive encryption context, use the kms:EncryptionContext: and kms:EncryptionContextKeys conditions in an IAM or key policy. For details, see kms:EncryptionContext: in the Key Management Service Developer Guide .

", + "base": "

Use this structure to allow cryptographic operations in the grant only when the operation request includes the specified encryption context.

KMS applies the grant constraints only to cryptographic operations that support an encryption context, that is, all cryptographic operations with a symmetric encryption KMS key. Grant constraints are not applied to operations that do not support an encryption context, such as cryptographic operations with HMAC KMS keys or asymmetric KMS keys, and management operations, such as DescribeKey or RetireGrant.

In a cryptographic operation, the encryption context in the decryption operation must be an exact, case-sensitive match for the keys and values in the encryption context of the encryption operation. Only the order of the pairs can vary.

However, in a grant constraint, the key in each key-value pair is not case sensitive, but the value is case sensitive.

To avoid confusion, do not use multiple encryption context pairs that differ only by case. To require a fully case-sensitive encryption context, use the kms:EncryptionContext: and kms:EncryptionContextKeys conditions in an IAM or key policy. For details, see kms:EncryptionContext: in the Key Management Service Developer Guide .

", "refs": { - "CreateGrantRequest$Constraints": "

Specifies a grant constraint.

KMS supports the EncryptionContextEquals and EncryptionContextSubset grant constraints. Each constraint value can include up to 8 encryption context pairs. The encryption context value in each constraint cannot exceed 384 characters.

These grant constraints allow the permissions in the grant only when the encryption context in the request matches (EncryptionContextEquals) or includes (EncryptionContextSubset) the encryption context specified in this structure. For information about grant constraints, see Using grant constraints in the Key Management Service Developer Guide. For more information about encryption context, see Encryption Context in the Key Management Service Developer Guide .

The encryption context grant constraints are supported only on operations that include an encryption context. You cannot use an encryption context grant constraint for cryptographic operations with asymmetric KMS keys or for management operations, such as DescribeKey or RetireGrant.

", + "CreateGrantRequest$Constraints": "

Specifies a grant constraint.

KMS supports the EncryptionContextEquals and EncryptionContextSubset grant constraints. Each constraint value can include up to 8 encryption context pairs. The encryption context value in each constraint cannot exceed 384 characters. For information about grant constraints, see Using grant constraints in the Key Management Service Developer Guide. For more information about encryption context, see Encryption context in the Key Management Service Developer Guide .

The encryption context grant constraints allow the permissions in the grant only when the encryption context in the request matches (EncryptionContextEquals) or includes (EncryptionContextSubset) the encryption context specified in this structure.

The encryption context grant constraints are supported only on grant operations that include an EncryptionContext parameter, such as cryptographic operations on symmetric encryption KMS keys. Grants with grant constraints can include the DescribeKey and RetireGrant operations, but the constraint doesn't apply to these operations. If a grant with a grant constraint includes the CreateGrant operation, the constraint requires that any grants created with the CreateGrant permission have an equally strict or stricter encryption context constraint.

You cannot use an encryption context grant constraint for cryptographic operations with asymmetric KMS keys or HMAC KMS keys. These keys don't support an encryption context.

", "GrantListEntry$Constraints": "

A list of key-value pairs that must be present in the encryption context of certain subsequent operations that the grant allows.

" } }, @@ -672,7 +688,7 @@ "GrantOperationList": { "base": null, "refs": { - "CreateGrantRequest$Operations": "

A list of operations that the grant permits.

The operation must be supported on the KMS key. For example, you cannot create a grant for a symmetric KMS key that allows the Sign operation, or a grant for an asymmetric KMS key that allows the GenerateDataKey operation. If you try, KMS returns a ValidationError exception. For details, see Grant operations in the Key Management Service Developer Guide.

", + "CreateGrantRequest$Operations": "

A list of operations that the grant permits.

This list must include only operations that are permitted in a grant. Also, the operation must be supported on the KMS key. For example, you cannot create a grant for a symmetric encryption KMS key that allows the Sign operation, or a grant for an asymmetric KMS key that allows the GenerateDataKey operation. If you try, KMS returns a ValidationError exception. For details, see Grant operations in the Key Management Service Developer Guide.

", "GrantListEntry$Operations": "

The list of operations permitted by the grant.

" } }, @@ -687,9 +703,11 @@ "GenerateDataKeyPairWithoutPlaintextRequest$GrantTokens": "

A list of grant tokens.

Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.

", "GenerateDataKeyRequest$GrantTokens": "

A list of grant tokens.

Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.

", "GenerateDataKeyWithoutPlaintextRequest$GrantTokens": "

A list of grant tokens.

Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.

", + "GenerateMacRequest$GrantTokens": "

A list of grant tokens.

Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.

", "GetPublicKeyRequest$GrantTokens": "

A list of grant tokens.

Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.

", "ReEncryptRequest$GrantTokens": "

A list of grant tokens.

Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.

", "SignRequest$GrantTokens": "

A list of grant tokens.

Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.

", + "VerifyMacRequest$GrantTokens": "

A list of grant tokens.

Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.

", "VerifyRequest$GrantTokens": "

A list of grant tokens.

Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.

" } }, @@ -712,7 +730,7 @@ } }, "IncorrectKeyException": { - "base": "

The request was rejected because the specified KMS key cannot decrypt the data. The KeyId in a Decrypt request and the SourceKeyId in a ReEncrypt request must identify the same KMS key that was used to encrypt the ciphertext.

", + "base": "

The request was rejected because the specified KMS key cannot decrypt the data. The KeyId in a Decrypt request and the SourceKeyId in a ReEncrypt request must identify the same KMS key that was used to encrypt the ciphertext.

", "refs": { } }, @@ -757,7 +775,7 @@ } }, "InvalidKeyUsageException": { - "base": "

The request was rejected for one of the following reasons:

For encrypting, decrypting, re-encrypting, and generating data keys, the KeyUsage must be ENCRYPT_DECRYPT. For signing and verifying, the KeyUsage must be SIGN_VERIFY. To find the KeyUsage of a KMS key, use the DescribeKey operation.

To find the encryption or signing algorithms supported for a particular KMS key, use the DescribeKey operation.

", + "base": "

The request was rejected for one of the following reasons:

For encrypting, decrypting, re-encrypting, and generating data keys, the KeyUsage must be ENCRYPT_DECRYPT. For signing and verifying messages, the KeyUsage must be SIGN_VERIFY. For generating and verifying message authentication codes (MACs), the KeyUsage must be GENERATE_VERIFY_MAC. To find the KeyUsage of a KMS key, use the DescribeKey operation.

To find the encryption or signing algorithms supported for a particular KMS key, use the DescribeKey operation.

", "refs": { } }, @@ -771,13 +789,18 @@ "refs": { } }, + "KMSInvalidMacException": { + "base": "

The request was rejected because the HMAC verification failed. HMAC verification fails when the HMAC computed by using the specified message, HMAC KMS key, and MAC algorithm does not match the HMAC specified in the request.

", + "refs": { + } + }, "KMSInvalidSignatureException": { "base": "

The request was rejected because the signature verification failed. Signature verification fails when it cannot confirm that signature was produced by signing the specified message with the specified KMS key and signing algorithm.

", "refs": { } }, "KMSInvalidStateException": { - "base": "

The request was rejected because the state of the specified resource is not valid for this request.

For more information about how key state affects the use of a KMS key, see Key state: Effect on your KMS key in the Key Management Service Developer Guide .

", + "base": "

The request was rejected because the state of the specified resource is not valid for this request.

For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide .

", "refs": { } }, @@ -789,32 +812,34 @@ "CancelKeyDeletionResponse$KeyId": "

The Amazon Resource Name (key ARN) of the KMS key whose deletion is canceled.

", "CreateAliasRequest$TargetKeyId": "

Associates the alias with the specified customer managed key. The KMS key must be in the same Amazon Web Services Region.

A valid key ID is required. If you supply a null or empty string value, this operation returns an error.

For help finding the key ID and ARN, see Finding the Key ID and ARN in the Key Management Service Developer Guide .

Specify the key ID or key ARN of the KMS key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", "CreateGrantRequest$KeyId": "

Identifies the KMS key for the grant. The grant gives principals permission to use this KMS key.

Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", - "DecryptRequest$KeyId": "

Specifies the KMS key that KMS uses to decrypt the ciphertext. Enter a key ID of the KMS key that was used to encrypt the ciphertext.

This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. If you used a symmetric KMS key, KMS can get the KMS key from metadata that it adds to the symmetric ciphertext blob. However, it is always recommended as a best practice. This practice ensures that you use the KMS key that you intend.

To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", + "DecryptRequest$KeyId": "

Specifies the KMS key that KMS uses to decrypt the ciphertext.

Enter a key ID of the KMS key that was used to encrypt the ciphertext. If you identify a different KMS key, the Decrypt operation throws an IncorrectKeyException.

This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. If you used a symmetric encryption KMS key, KMS can get the KMS key from metadata that it adds to the symmetric ciphertext blob. However, it is always recommended as a best practice. This practice ensures that you use the KMS key that you intend.

To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", "DecryptResponse$KeyId": "

The Amazon Resource Name (key ARN) of the KMS key that was used to decrypt the ciphertext.

", "DeleteImportedKeyMaterialRequest$KeyId": "

Identifies the KMS key from which you are deleting imported key material. The Origin of the KMS key must be EXTERNAL.

Specify the key ID or key ARN of the KMS key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", "DescribeKeyRequest$KeyId": "

Describes the specified KMS key.

If you specify a predefined Amazon Web Services alias (an Amazon Web Services alias with no key ID), KMS associates the alias with an Amazon Web Services managed key and returns its KeyId and Arn in the response.

To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", "DisableKeyRequest$KeyId": "

Identifies the KMS key to disable.

Specify the key ID or key ARN of the KMS key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", - "DisableKeyRotationRequest$KeyId": "

Identifies a symmetric KMS key. You cannot enable or disable automatic rotation of asymmetric KMS keys, KMS keys with imported key material, or KMS keys in a custom key store.

Specify the key ID or key ARN of the KMS key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", + "DisableKeyRotationRequest$KeyId": "

Identifies a symmetric encryption KMS key. You cannot enable or disable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store.

Specify the key ID or key ARN of the KMS key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", "EnableKeyRequest$KeyId": "

Identifies the KMS key to enable.

Specify the key ID or key ARN of the KMS key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", - "EnableKeyRotationRequest$KeyId": "

Identifies a symmetric KMS key. You cannot enable automatic rotation of asymmetric KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key.

Specify the key ID or key ARN of the KMS key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", - "EncryptRequest$KeyId": "

Identifies the KMS key to use in the encryption operation.

To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", + "EnableKeyRotationRequest$KeyId": "

Identifies a symmetric encryption KMS key. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key.

Specify the key ID or key ARN of the KMS key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", + "EncryptRequest$KeyId": "

Identifies the KMS key to use in the encryption operation. The KMS key must have a KeyUsage of ENCRYPT_DECRYPT. To find the KeyUsage of a KMS key, use the DescribeKey operation.

To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", "EncryptResponse$KeyId": "

The Amazon Resource Name (key ARN) of the KMS key that was used to encrypt the plaintext.

", - "GenerateDataKeyPairRequest$KeyId": "

Specifies the symmetric KMS key that encrypts the private key in the data key pair. You cannot specify an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", + "GenerateDataKeyPairRequest$KeyId": "

Specifies the symmetric encryption KMS key that encrypts the private key in the data key pair. You cannot specify an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", "GenerateDataKeyPairResponse$KeyId": "

The Amazon Resource Name (key ARN) of the KMS key that encrypted the private key.

", - "GenerateDataKeyPairWithoutPlaintextRequest$KeyId": "

Specifies the KMS key that encrypts the private key in the data key pair. You must specify a symmetric KMS key. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", + "GenerateDataKeyPairWithoutPlaintextRequest$KeyId": "

Specifies the symmetric encryption KMS key that encrypts the private key in the data key pair. You cannot specify an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", "GenerateDataKeyPairWithoutPlaintextResponse$KeyId": "

The Amazon Resource Name (key ARN) of the KMS key that encrypted the private key.

", - "GenerateDataKeyRequest$KeyId": "

Identifies the symmetric KMS key that encrypts the data key.

To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", + "GenerateDataKeyRequest$KeyId": "

Specifies the symmetric encryption KMS key that encrypts the data key. You cannot specify an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", "GenerateDataKeyResponse$KeyId": "

The Amazon Resource Name (key ARN) of the KMS key that encrypted the data key.

", - "GenerateDataKeyWithoutPlaintextRequest$KeyId": "

The identifier of the symmetric KMS key that encrypts the data key.

To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", + "GenerateDataKeyWithoutPlaintextRequest$KeyId": "

Specifies the symmetric encryption KMS key that encrypts the data key. You cannot specify an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", "GenerateDataKeyWithoutPlaintextResponse$KeyId": "

The Amazon Resource Name (key ARN) of the KMS key that encrypted the data key.

", + "GenerateMacRequest$KeyId": "

The HMAC KMS key to use in the operation. The MAC algorithm computes the HMAC for the message and the key as described in RFC 2104.

To identify an HMAC KMS key, use the DescribeKey operation and see the KeySpec field in the response.

", + "GenerateMacResponse$KeyId": "

The HMAC KMS key used in the operation.

", "GetKeyPolicyRequest$KeyId": "

Gets the key policy for the specified KMS key.

Specify the key ID or key ARN of the KMS key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", "GetKeyRotationStatusRequest$KeyId": "

Gets the rotation status for the specified KMS key.

Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", - "GetParametersForImportRequest$KeyId": "

The identifier of the symmetric KMS key into which you will import key material. The Origin of the KMS key must be EXTERNAL.

Specify the key ID or key ARN of the KMS key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", + "GetParametersForImportRequest$KeyId": "

The identifier of the symmetric encryption KMS key into which you will import key material. The Origin of the KMS key must be EXTERNAL.

Specify the key ID or key ARN of the KMS key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", "GetParametersForImportResponse$KeyId": "

The Amazon Resource Name (key ARN) of the KMS key to use in a subsequent ImportKeyMaterial request. This is the same KMS key specified in the GetParametersForImport request.

", "GetPublicKeyRequest$KeyId": "

Identifies the asymmetric KMS key that includes the public key.

To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", "GetPublicKeyResponse$KeyId": "

The Amazon Resource Name (key ARN) of the asymmetric KMS key from which the public key was downloaded.

", "GrantListEntry$KeyId": "

The unique identifier for the KMS key to which the grant applies.

", - "ImportKeyMaterialRequest$KeyId": "

The identifier of the symmetric KMS key that receives the imported key material. The KMS key's Origin must be EXTERNAL. This must be the same KMS key specified in the KeyID parameter of the corresponding GetParametersForImport request.

Specify the key ID or key ARN of the KMS key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", + "ImportKeyMaterialRequest$KeyId": "

The identifier of the symmetric encryption KMS key that receives the imported key material. This must be the same KMS key specified in the KeyID parameter of the corresponding GetParametersForImport request. The Origin of the KMS key must be EXTERNAL. You cannot perform this operation on an asymmetric KMS key, an HMAC KMS key, a KMS key in a custom key store, or on a KMS key in a different Amazon Web Services account

Specify the key ID or key ARN of the KMS key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", "KeyListEntry$KeyId": "

Unique identifier of the key.

", "KeyMetadata$KeyId": "

The globally unique identifier for the KMS key.

", "ListAliasesRequest$KeyId": "

Lists only aliases that are associated with the specified KMS key. Enter a KMS key in your Amazon Web Services account.

This parameter is optional. If you omit it, ListAliases returns all aliases in the account and Region.

Specify the key ID or key ARN of the KMS key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", @@ -822,8 +847,8 @@ "ListKeyPoliciesRequest$KeyId": "

Gets the names of key policies for the specified KMS key.

Specify the key ID or key ARN of the KMS key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", "ListResourceTagsRequest$KeyId": "

Gets tags on the specified KMS key.

Specify the key ID or key ARN of the KMS key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", "PutKeyPolicyRequest$KeyId": "

Sets the key policy on the specified KMS key.

Specify the key ID or key ARN of the KMS key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", - "ReEncryptRequest$SourceKeyId": "

Specifies the KMS key that KMS will use to decrypt the ciphertext before it is re-encrypted. Enter a key ID of the KMS key that was used to encrypt the ciphertext.

This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. If you used a symmetric KMS key, KMS can get the KMS key from metadata that it adds to the symmetric ciphertext blob. However, it is always recommended as a best practice. This practice ensures that you use the KMS key that you intend.

To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", - "ReEncryptRequest$DestinationKeyId": "

A unique identifier for the KMS key that is used to reencrypt the data. Specify a symmetric or asymmetric KMS key with a KeyUsage value of ENCRYPT_DECRYPT. To find the KeyUsage value of a KMS key, use the DescribeKey operation.

To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", + "ReEncryptRequest$SourceKeyId": "

Specifies the KMS key that KMS will use to decrypt the ciphertext before it is re-encrypted.

Enter a key ID of the KMS key that was used to encrypt the ciphertext. If you identify a different KMS key, the ReEncrypt operation throws an IncorrectKeyException.

This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. If you used a symmetric encryption KMS key, KMS can get the KMS key from metadata that it adds to the symmetric ciphertext blob. However, it is always recommended as a best practice. This practice ensures that you use the KMS key that you intend.

To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", + "ReEncryptRequest$DestinationKeyId": "

A unique identifier for the KMS key that is used to reencrypt the data. Specify a symmetric encryption KMS key or an asymmetric KMS key with a KeyUsage value of ENCRYPT_DECRYPT. To find the KeyUsage value of a KMS key, use the DescribeKey operation.

To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", "ReEncryptResponse$SourceKeyId": "

Unique identifier of the KMS key used to originally encrypt the data.

", "ReEncryptResponse$KeyId": "

The Amazon Resource Name (key ARN) of the KMS key that was used to reencrypt the data.

", "ReplicateKeyRequest$KeyId": "

Identifies the multi-Region primary key that is being replicated. To determine whether a KMS key is a multi-Region primary key, use the DescribeKey operation to check the value of the MultiRegionKeyType property.

Specify the key ID or key ARN of a multi-Region primary key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", @@ -838,6 +863,8 @@ "UpdateAliasRequest$TargetKeyId": "

Identifies the customer managed key to associate with the alias. You don't have permission to associate an alias with an Amazon Web Services managed key.

The KMS key must be in the same Amazon Web Services account and Region as the alias. Also, the new target KMS key must be the same type as the current target KMS key (both symmetric or both asymmetric) and they must have the same key usage.

Specify the key ID or key ARN of the KMS key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

To verify that the alias is mapped to the correct KMS key, use ListAliases.

", "UpdateKeyDescriptionRequest$KeyId": "

Updates the description of the specified KMS key.

Specify the key ID or key ARN of the KMS key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", "UpdatePrimaryRegionRequest$KeyId": "

Identifies the current primary key. When the operation completes, this KMS key will be a replica key.

Specify the key ID or key ARN of a multi-Region primary key.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

", + "VerifyMacRequest$KeyId": "

The KMS key that will be used in the verification.

Enter a key ID of the KMS key that was used to generate the HMAC. If you identify a different KMS key, the VerifyMac operation fails.

", + "VerifyMacResponse$KeyId": "

The HMAC KMS key used in the verification.

", "VerifyRequest$KeyId": "

Identifies the asymmetric KMS key that will be used to verify the signature. This must be the same KMS key that was used to generate the signature. If you specify a different KMS key, the signature verification fails.

To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.

For example:

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", "VerifyResponse$KeyId": "

The Amazon Resource Name (key ARN) of the asymmetric KMS key that was used to verify the signature.

" } @@ -865,13 +892,13 @@ "refs": { "CreateKeyResponse$KeyMetadata": "

Metadata associated with the KMS key.

", "DescribeKeyResponse$KeyMetadata": "

Metadata associated with the key.

", - "ReplicateKeyResponse$ReplicaKeyMetadata": "

Displays details about the new replica key, including its Amazon Resource Name (key ARN) and key state. It also includes the ARN and Amazon Web Services Region of its primary key and other replica keys.

" + "ReplicateKeyResponse$ReplicaKeyMetadata": "

Displays details about the new replica key, including its Amazon Resource Name (key ARN) and Key states of KMS keys. It also includes the ARN and Amazon Web Services Region of its primary key and other replica keys.

" } }, "KeySpec": { "base": null, "refs": { - "CreateKeyRequest$KeySpec": "

Specifies the type of KMS key to create. The default value, SYMMETRIC_DEFAULT, creates a KMS key with a 256-bit symmetric key for encryption and decryption. For help choosing a key spec for your KMS key, see How to Choose Your KMS key Configuration in the Key Management Service Developer Guide .

The KeySpec determines whether the KMS key contains a symmetric key or an asymmetric key pair. It also determines the encryption algorithms or signing algorithms that the KMS key supports. You can't change the KeySpec after the KMS key is created. To further restrict the algorithms that can be used with the KMS key, use a condition key in its key policy or IAM policy. For more information, see kms:EncryptionAlgorithm or kms:Signing Algorithm in the Key Management Service Developer Guide .

Amazon Web Services services that are integrated with KMS use symmetric KMS keys to protect your data. These services do not support asymmetric KMS keys. For help determining whether a KMS key is symmetric or asymmetric, see Identifying Symmetric and Asymmetric KMS keys in the Key Management Service Developer Guide.

KMS supports the following key specs for KMS keys:

", + "CreateKeyRequest$KeySpec": "

Specifies the type of KMS key to create. The default value, SYMMETRIC_DEFAULT, creates a KMS key with a 256-bit symmetric key for encryption and decryption. For help choosing a key spec for your KMS key, see Choosing a KMS key type in the Key Management Service Developer Guide .

The KeySpec determines whether the KMS key contains a symmetric key or an asymmetric key pair. It also determines the algorithms that the KMS key supports. You can't change the KeySpec after the KMS key is created. To further restrict the algorithms that can be used with the KMS key, use a condition key in its key policy or IAM policy. For more information, see kms:EncryptionAlgorithm, kms:MacAlgorithm or kms:Signing Algorithm in the Key Management Service Developer Guide .

Amazon Web Services services that are integrated with KMS use symmetric encryption KMS keys to protect your data. These services do not support asymmetric KMS keys or HMAC KMS keys.

KMS supports the following key specs for KMS keys:

", "GetPublicKeyResponse$KeySpec": "

The type of the of the public key that was downloaded.

", "KeyMetadata$KeySpec": "

Describes the type of key material in the KMS key.

" } @@ -879,8 +906,8 @@ "KeyState": { "base": null, "refs": { - "KeyMetadata$KeyState": "

The current status of the KMS key.

For more information about how key state affects the use of a KMS key, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

", - "ScheduleKeyDeletionResponse$KeyState": "

The current status of the KMS key.

For more information about how key state affects the use of a KMS key, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

" + "KeyMetadata$KeyState": "

The current status of the KMS key.

For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide.

", + "ScheduleKeyDeletionResponse$KeyState": "

The current status of the KMS key.

For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide.

" } }, "KeyStorePasswordType": { @@ -898,7 +925,7 @@ "KeyUsageType": { "base": null, "refs": { - "CreateKeyRequest$KeyUsage": "

Determines the cryptographic operations for which you can use the KMS key. The default value is ENCRYPT_DECRYPT. This parameter is required only for asymmetric KMS keys. You can't change the KeyUsage value after the KMS key is created.

Select only one valid value.

", + "CreateKeyRequest$KeyUsage": "

Determines the cryptographic operations for which you can use the KMS key. The default value is ENCRYPT_DECRYPT. This parameter is optional when you are creating a symmetric encryption KMS key; otherwise, it is required. You can't change the KeyUsage value after the KMS key is created.

Select only one valid value.

", "GetPublicKeyResponse$KeyUsage": "

The permitted use of the public key. Valid values are ENCRYPT_DECRYPT or SIGN_VERIFY.

This information is critical. If a public key with SIGN_VERIFY key usage encrypts data outside of KMS, the ciphertext cannot be decrypted.

", "KeyMetadata$KeyUsage": "

The cryptographic operations for which you can use the KMS key.

" } @@ -975,6 +1002,22 @@ "refs": { } }, + "MacAlgorithmSpec": { + "base": null, + "refs": { + "GenerateMacRequest$MacAlgorithm": "

The MAC algorithm used in the operation.

The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms that your HMAC KMS key supports, use the DescribeKey operation and see the MacAlgorithms field in the DescribeKey response.

", + "GenerateMacResponse$MacAlgorithm": "

The MAC algorithm that was used to generate the HMAC.

", + "MacAlgorithmSpecList$member": null, + "VerifyMacRequest$MacAlgorithm": "

The MAC algorithm that will be used in the verification. Enter the same MAC algorithm that was used to compute the HMAC. This algorithm must be supported by the HMAC KMS key identified by the KeyId parameter.

", + "VerifyMacResponse$MacAlgorithm": "

The MAC algorithm used in the verification.

" + } + }, + "MacAlgorithmSpecList": { + "base": null, + "refs": { + "KeyMetadata$MacAlgorithms": "

The message authentication code (MAC) algorithm that the HMAC KMS key supports.

This value is present only when the KeyUsage of the KMS key is GENERATE_VERIFY_MAC.

" + } + }, "MalformedPolicyDocumentException": { "base": "

The request was rejected because the specified policy is not syntactically or semantically correct.

", "refs": { @@ -1038,8 +1081,8 @@ "NullableBooleanType": { "base": null, "refs": { - "CreateKeyRequest$MultiRegion": "

Creates a multi-Region primary key that you can replicate into other Amazon Web Services Regions. You cannot change this value after you create the KMS key.

For a multi-Region key, set this parameter to True. For a single-Region KMS key, omit this parameter or set it to False. The default value is False.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Using multi-Region keys in the Key Management Service Developer Guide.

This value creates a primary key, not a replica. To create a replica key, use the ReplicateKey operation.

You can create a symmetric or asymmetric multi-Region key, and you can create a multi-Region key with imported key material. However, you cannot create a multi-Region key in a custom key store.

", - "KeyMetadata$MultiRegion": "

Indicates whether the KMS key is a multi-Region (True) or regional (False) key. This value is True for multi-Region primary and replica keys and False for regional KMS keys.

For more information about multi-Region keys, see Using multi-Region keys in the Key Management Service Developer Guide.

" + "CreateKeyRequest$MultiRegion": "

Creates a multi-Region primary key that you can replicate into other Amazon Web Services Regions. You cannot change this value after you create the KMS key.

For a multi-Region key, set this parameter to True. For a single-Region KMS key, omit this parameter or set it to False. The default value is False.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

This value creates a primary key, not a replica. To create a replica key, use the ReplicateKey operation.

You can create a symmetric or asymmetric multi-Region key, and you can create a multi-Region key with imported key material. However, you cannot create a multi-Region key in a custom key store.

", + "KeyMetadata$MultiRegion": "

Indicates whether the KMS key is a multi-Region (True) or regional (False) key. This value is True for multi-Region primary and replica keys and False for regional KMS keys.

For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

" } }, "NumberOfBytesType": { @@ -1053,7 +1096,7 @@ "OriginType": { "base": null, "refs": { - "CreateKeyRequest$Origin": "

The source of the key material for the KMS key. You cannot change the origin after you create the KMS key. The default is AWS_KMS, which means that KMS creates the key material.

To create a KMS key with no key material (for imported key material), set the value to EXTERNAL. For more information about importing key material into KMS, see Importing Key Material in the Key Management Service Developer Guide. This value is valid only for symmetric KMS keys.

To create a KMS key in an KMS custom key store and create its key material in the associated CloudHSM cluster, set this value to AWS_CLOUDHSM. You must also use the CustomKeyStoreId parameter to identify the custom key store. This value is valid only for symmetric KMS keys.

", + "CreateKeyRequest$Origin": "

The source of the key material for the KMS key. You cannot change the origin after you create the KMS key. The default is AWS_KMS, which means that KMS creates the key material.

To create a KMS key with no key material (for imported key material), set the value to EXTERNAL. For more information about importing key material into KMS, see Importing Key Material in the Key Management Service Developer Guide. This value is valid only for symmetric encryption KMS keys.

To create a KMS key in an KMS custom key store and create its key material in the associated CloudHSM cluster, set this value to AWS_CLOUDHSM. You must also use the CustomKeyStoreId parameter to identify the custom key store. This value is valid only for symmetric encryption KMS keys.

", "KeyMetadata$Origin": "

The source of the key material for the KMS key. When this value is AWS_KMS, KMS created the key material. When this value is EXTERNAL, the key material was imported or the KMS key doesn't have any key material. When this value is AWS_CLOUDHSM, the key material was created in the CloudHSM cluster associated with a custom key store.

" } }, @@ -1072,9 +1115,11 @@ "EncryptRequest$Plaintext": "

Data to be encrypted.

", "GenerateDataKeyPairResponse$PrivateKeyPlaintext": "

The plaintext copy of the private key. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

", "GenerateDataKeyResponse$Plaintext": "

The plaintext data key. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded. Use this data key to encrypt your data outside of KMS. Then, remove it from memory as soon as possible.

", + "GenerateMacRequest$Message": "

The message to be hashed. Specify a message of up to 4,096 bytes.

GenerateMac and VerifyMac do not provide special handling for message digests. If you generate an HMAC for a hash digest of a message, you must verify the HMAC of the same hash digest.

", "GenerateRandomResponse$Plaintext": "

The random byte string. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

", "GetParametersForImportResponse$PublicKey": "

The public key to use to encrypt the key material before importing it with ImportKeyMaterial.

", "SignRequest$Message": "

Specifies the message or message digest to sign. Messages can be 0-4096 bytes. To sign a larger message, provide the message digest.

If you provide a message, KMS generates a hash digest of the message and then signs it.

", + "VerifyMacRequest$Message": "

The message that will be used in the verification. Enter the same message that was used to generate the HMAC.

GenerateMac and VerifyMac do not provide special handling for message digests. If you generated an HMAC for a hash digest of a message, you must verify the HMAC for the same hash digest.

", "VerifyRequest$Message": "

Specifies the message that was signed. You can submit a raw message of up to 4096 bytes, or a hash digest of the message. If you submit a digest, use the MessageType parameter with a value of DIGEST.

If the message specified here is different from the message that was signed, the signature verification fails. A message and its hash digest are considered to be the same message.

" } }, @@ -1117,8 +1162,8 @@ "PublicKeyType": { "base": null, "refs": { - "GenerateDataKeyPairResponse$PublicKey": "

The public key (in plaintext).

", - "GenerateDataKeyPairWithoutPlaintextResponse$PublicKey": "

The public key (in plaintext).

", + "GenerateDataKeyPairResponse$PublicKey": "

The public key (in plaintext). When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

", + "GenerateDataKeyPairWithoutPlaintextResponse$PublicKey": "

The public key (in plaintext). When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

", "GetPublicKeyResponse$PublicKey": "

The exported public key.

The value is a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo (SPKI), as defined in RFC 5280. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

" } }, @@ -1141,7 +1186,7 @@ "base": null, "refs": { "MultiRegionKey$Region": "

Displays the Amazon Web Services Region of a primary or replica key in a multi-Region key.

", - "ReplicateKeyRequest$ReplicaRegion": "

The Region ID of the Amazon Web Services Region for this replica key.

Enter the Region ID, such as us-east-1 or ap-southeast-2. For a list of Amazon Web Services Regions in which KMS is supported, see KMS service endpoints in the Amazon Web Services General Reference.

The replica must be in a different Amazon Web Services Region than its primary key and other replicas of that primary key, but in the same Amazon Web Services partition. KMS must be available in the replica Region. If the Region is not enabled by default, the Amazon Web Services account must be enabled in the Region.

For information about Amazon Web Services partitions, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference. For information about enabling and disabling Regions, see Enabling a Region and Disabling a Region in the Amazon Web Services General Reference.

", + "ReplicateKeyRequest$ReplicaRegion": "

The Region ID of the Amazon Web Services Region for this replica key.

Enter the Region ID, such as us-east-1 or ap-southeast-2. For a list of Amazon Web Services Regions in which KMS is supported, see KMS service endpoints in the Amazon Web Services General Reference.

HMAC KMS keys are not supported in all Amazon Web Services Regions. If you try to replicate an HMAC KMS key in an Amazon Web Services Region in which HMAC keys are not supported, the ReplicateKey operation returns an UnsupportedOperationException. For a list of Regions in which HMAC KMS keys are supported, see HMAC keys in KMS in the Key Management Service Developer Guide.

The replica must be in a different Amazon Web Services Region than its primary key and other replicas of that primary key, but in the same Amazon Web Services partition. KMS must be available in the replica Region. If the Region is not enabled by default, the Amazon Web Services account must be enabled in the Region. For information about Amazon Web Services partitions, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference. For information about enabling and disabling Regions, see Enabling a Region and Disabling a Region in the Amazon Web Services General Reference.

", "UpdatePrimaryRegionRequest$PrimaryRegion": "

The Amazon Web Services Region of the new primary key. Enter the Region ID, such as us-east-1 or ap-southeast-2. There must be an existing replica key in this Region.

When the operation completes, the multi-Region key in this Region will be the primary key.

" } }, @@ -1229,9 +1274,9 @@ "TagList": { "base": null, "refs": { - "CreateKeyRequest$Tags": "

Assigns one or more tags to the KMS key. Use this parameter to tag the KMS key when it is created. To tag an existing KMS key, use the TagResource operation.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see Using ABAC in KMS in the Key Management Service Developer Guide.

To use this parameter, you must have kms:TagResource permission in an IAM policy.

Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You cannot have more than one tag on a KMS key with the same tag key. If you specify an existing tag key with a different tag value, KMS replaces the current tag value with the specified one.

When you add tags to an Amazon Web Services resource, Amazon Web Services generates a cost allocation report with usage and costs aggregated by tags. Tags can also be used to control access to a KMS key. For details, see Tagging Keys.

", - "ListResourceTagsResponse$Tags": "

A list of tags. Each tag consists of a tag key and a tag value.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see Using ABAC in KMS in the Key Management Service Developer Guide.

", - "ReplicateKeyRequest$Tags": "

Assigns one or more tags to the replica key. Use this parameter to tag the KMS key when it is created. To tag an existing KMS key, use the TagResource operation.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see Using ABAC in KMS in the Key Management Service Developer Guide.

To use this parameter, you must have kms:TagResource permission in an IAM policy.

Tags are not a shared property of multi-Region keys. You can specify the same tags or different tags for each key in a set of related multi-Region keys. KMS does not synchronize this property.

Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You cannot have more than one tag on a KMS key with the same tag key. If you specify an existing tag key with a different tag value, KMS replaces the current tag value with the specified one.

When you add tags to an Amazon Web Services resource, Amazon Web Services generates a cost allocation report with usage and costs aggregated by tags. Tags can also be used to control access to a KMS key. For details, see Tagging Keys.

", + "CreateKeyRequest$Tags": "

Assigns one or more tags to the KMS key. Use this parameter to tag the KMS key when it is created. To tag an existing KMS key, use the TagResource operation.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see ABAC in KMS in the Key Management Service Developer Guide.

To use this parameter, you must have kms:TagResource permission in an IAM policy.

Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You cannot have more than one tag on a KMS key with the same tag key. If you specify an existing tag key with a different tag value, KMS replaces the current tag value with the specified one.

When you add tags to an Amazon Web Services resource, Amazon Web Services generates a cost allocation report with usage and costs aggregated by tags. Tags can also be used to control access to a KMS key. For details, see Tagging Keys.

", + "ListResourceTagsResponse$Tags": "

A list of tags. Each tag consists of a tag key and a tag value.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see ABAC in KMS in the Key Management Service Developer Guide.

", + "ReplicateKeyRequest$Tags": "

Assigns one or more tags to the replica key. Use this parameter to tag the KMS key when it is created. To tag an existing KMS key, use the TagResource operation.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see ABAC in KMS in the Key Management Service Developer Guide.

To use this parameter, you must have kms:TagResource permission in an IAM policy.

Tags are not a shared property of multi-Region keys. You can specify the same tags or different tags for each key in a set of related multi-Region keys. KMS does not synchronize this property.

Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You cannot have more than one tag on a KMS key with the same tag key. If you specify an existing tag key with a different tag value, KMS replaces the current tag value with the specified one.

When you add tags to an Amazon Web Services resource, Amazon Web Services generates a cost allocation report with usage and costs aggregated by tags. Tags can also be used to control access to a KMS key. For details, see Tagging Keys.

", "ReplicateKeyResponse$ReplicaTags": "

The tags on the new replica key. The value is a list of tag key and tag value pairs.

", "TagResourceRequest$Tags": "

One or more tags.

Each tag consists of a tag key and a tag value. The tag value can be an empty (null) string.

You cannot have more than one tag on a KMS key with the same tag key. If you specify an existing tag key with a different tag value, KMS replaces the current tag value with the specified one.

" } @@ -1289,6 +1334,16 @@ "refs": { } }, + "VerifyMacRequest": { + "base": null, + "refs": { + } + }, + "VerifyMacResponse": { + "base": null, + "refs": { + } + }, "VerifyRequest": { "base": null, "refs": { diff --git a/apis/kms/2014-11-01/examples-1.json b/apis/kms/2014-11-01/examples-1.json index c8a67f8698c..c770d0edb13 100644 --- a/apis/kms/2014-11-01/examples-1.json +++ b/apis/kms/2014-11-01/examples-1.json @@ -349,6 +349,44 @@ "description": "This example creates a KMS key in the specified custom key store. The operation creates the KMS key and its metadata in AWS KMS and the key material in the AWS CloudHSM cluster associated with the custom key store. This example requires the Origin and CustomKeyStoreId parameters.", "id": "to-create-a-kms-key-in-a-custom-key-store-1630604382908", "title": "To create a KMS key in a custom key store" + }, + { + "input": { + "KeySpec": "HMAC_384", + "KeyUsage": "GENERATE_VERIFY_MAC" + }, + "output": { + "KeyMetadata": { + "AWSAccountId": "111122223333", + "Arn": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", + "CreationDate": "2022-04-05T14:04:55-07:00", + "CustomerMasterKeySpec": "HMAC_384", + "Description": "", + "Enabled": true, + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", + "KeyManager": "CUSTOMER", + "KeySpec": "HMAC_384", + "KeyState": "Enabled", + "KeyUsage": "GENERATE_VERIFY_MAC", + "MacAlgorithms": [ + "HMAC_SHA_384" + ], + "MultiRegion": false, + "Origin": "AWS_KMS" + } + }, + "comments": { + "input": { + "KeySpec": "Describes the type of key material in the KMS key.", + "KeyUsage": "The cryptographic operations for which you can use the KMS key." + }, + "output": { + "KeyMetadata": "Detailed information about the KMS key that this operation creates." + } + }, + "description": "This example creates a 384-bit symmetric HMAC KMS key. The GENERATE_VERIFY_MAC key usage value is required even though it's the only valid value for HMAC KMS keys. The key spec and key usage can't be changed after the key is created. ", + "id": "to-create-an-hmac-kms-key-1630628752841", + "title": "To create an HMAC KMS key" } ], "Decrypt": [ @@ -501,15 +539,147 @@ }, "comments": { "input": { - "KeyId": "The identifier of the KMS key that you want information about. You can use the key ID or the Amazon Resource Name (ARN) of the KMS key." + "KeyId": "An identifier for the KMS key. You can use the key ID, key ARN, alias name, alias ARN of the KMS key." }, "output": { "KeyMetadata": "An object that contains information about the specified KMS key." } }, - "description": "The following example gets metadata about a symmetric KMS key.", + "description": "The following example gets metadata for a symmetric encryption KMS key.", "id": "get-key-details-1478565820907", "title": "To get details about a KMS key" + }, + { + "input": { + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "output": { + "KeyMetadata": { + "AWSAccountId": "111122223333", + "Arn": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", + "CreationDate": 1571767572.317, + "CustomerMasterKeySpec": "RSA_2048", + "Description": "", + "Enabled": false, + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", + "KeyManager": "CUSTOMER", + "KeySpec": "RSA_2048", + "KeyState": "Disabled", + "KeyUsage": "SIGN_VERIFY", + "MultiRegion": false, + "Origin": "AWS_KMS", + "SigningAlgorithms": [ + "RSASSA_PKCS1_V1_5_SHA_256", + "RSASSA_PKCS1_V1_5_SHA_384", + "RSASSA_PKCS1_V1_5_SHA_512", + "RSASSA_PSS_SHA_256", + "RSASSA_PSS_SHA_384", + "RSASSA_PSS_SHA_512" + ] + } + }, + "comments": { + "input": { + "KeyId": "An identifier for the KMS key. You can use the key ID, key ARN, alias name, alias ARN of the KMS key." + }, + "output": { + "KeyMetadata": "An object that contains information about the specified KMS key." + } + }, + "description": "The following example gets metadata for an asymmetric RSA KMS key used for signing and verification.", + "id": "to-get-details-about-an-rsa-asymmetric-kms-key-1637971611761", + "title": "To get details about an RSA asymmetric KMS key" + }, + { + "input": { + "KeyId": "arn:aws:kms:ap-northeast-1:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab" + }, + "output": { + "KeyMetadata": { + "AWSAccountId": "111122223333", + "Arn": "arn:aws:kms:ap-northeast-1:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab", + "CreationDate": 1586329200.918, + "CustomerMasterKeySpec": "SYMMETRIC_DEFAULT", + "Description": "", + "Enabled": true, + "EncryptionAlgorithms": [ + "SYMMETRIC_DEFAULT" + ], + "KeyId": "mrk-1234abcd12ab34cd56ef1234567890ab", + "KeyManager": "CUSTOMER", + "KeyState": "Enabled", + "KeyUsage": "ENCRYPT_DECRYPT", + "MultiRegion": true, + "MultiRegionConfiguration": { + "MultiRegionKeyType": "PRIMARY", + "PrimaryKey": { + "Arn": "arn:aws:kms:us-west-2:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab", + "Region": "us-west-2" + }, + "ReplicaKeys": [ + { + "Arn": "arn:aws:kms:eu-west-1:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab", + "Region": "eu-west-1" + }, + { + "Arn": "arn:aws:kms:ap-northeast-1:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab", + "Region": "ap-northeast-1" + }, + { + "Arn": "arn:aws:kms:sa-east-1:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab", + "Region": "sa-east-1" + } + ] + }, + "Origin": "AWS_KMS" + } + }, + "comments": { + "input": { + "KeyId": "An identifier for the KMS key. You can use the key ID, key ARN, alias name, alias ARN of the KMS key." + }, + "output": { + "KeyMetadata": "An object that contains information about the specified KMS key." + } + }, + "description": "The following example gets metadata for a multi-Region replica key. This multi-Region key is a symmetric encryption key. DescribeKey returns information about the primary key and all of its replicas.", + "id": "to-get-details-about-a-multi-region-key-1637969624239", + "title": "To get details about a multi-Region key" + }, + { + "input": { + "KeyId": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" + }, + "output": { + "KeyMetadata": { + "AWSAccountId": "123456789012", + "Arn": "arn:aws:kms:us-west-2:123456789012:key/1234abcd-12ab-34cd-56ef-1234567890ab", + "CreationDate": 1566160362.664, + "CustomerMasterKeySpec": "HMAC_256", + "Description": "Development test key", + "Enabled": true, + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", + "KeyManager": "CUSTOMER", + "KeyState": "Enabled", + "KeyUsage": "GENERATE_VERIFY_MAC", + "MacAlgorithms": [ + "HMAC_SHA_256" + ], + "MultiRegion": false, + "Origin": "AWS_KMS" + } + }, + "comments": { + "input": { + "KeyId": "An identifier for the KMS key. You can use the key ID, key ARN, alias name, alias ARN of the KMS key." + }, + "output": { + "KeyMetadata": "An object that contains information about the specified KMS key." + } + }, + "description": "The following example gets the metadata of an HMAC KMS key. ", + "id": "to-get-details-about-an-hmac-kms-key-1637970472619", + "title": "To get details about an HMAC KMS key" } ], "DisableKey": [ @@ -658,18 +828,18 @@ }, "comments": { "input": { - "KeyId": "The key ID of the symmetric KMS key that encrypts the private RSA key in the data key pair.", + "KeyId": "The key ID of the symmetric encryption KMS key that encrypts the private RSA key in the data key pair.", "KeyPairSpec": "The requested key spec of the RSA data key pair." }, "output": { - "KeyId": "The key ARN of the symmetric KMS key that was used to encrypt the private key.", + "KeyId": "The key ARN of the symmetric encryption KMS key that was used to encrypt the private key.", "KeyPairSpec": "The actual key spec of the RSA data key pair.", "PrivateKeyCiphertextBlob": "The encrypted private key of the RSA data key pair.", "PrivateKeyPlaintext": "The plaintext private key of the RSA data key pair.", "PublicKey": "The public key (plaintext) of the RSA data key pair." } }, - "description": "This example generates an RSA data key pair for encryption and decryption. The operation returns a plaintext public key and private key, and a copy of the private key that is encrypted under a symmetric KMS key that you specify.", + "description": "This example generates an RSA data key pair for encryption and decryption. The operation returns a plaintext public key and private key, and a copy of the private key that is encrypted under a symmetric encryption KMS key that you specify.", "id": "to-generate-an-rsa-key-pair-for-encryption-and-decryption-1628619376878", "title": "To generate an RSA key pair for encryption and decryption" } @@ -688,17 +858,17 @@ }, "comments": { "input": { - "KeyId": "The symmetric KMS key that encrypts the private key of the ECC data key pair.", + "KeyId": "The symmetric encryption KMS key that encrypts the private key of the ECC data key pair.", "KeyPairSpec": "The requested key spec of the ECC asymmetric data key pair." }, "output": { - "KeyId": "The key ARN of the symmetric KMS key that encrypted the private key in the ECC asymmetric data key pair.", + "KeyId": "The key ARN of the symmetric encryption KMS key that encrypted the private key in the ECC asymmetric data key pair.", "KeyPairSpec": "The actual key spec of the ECC asymmetric data key pair.", "PrivateKeyCiphertextBlob": "The encrypted private key of the asymmetric ECC data key pair.", "PublicKey": "The public key (plaintext)." } }, - "description": "This example returns an asymmetric elliptic curve (ECC) data key pair. The private key is encrypted under the symmetric KMS key that you specify. This operation doesn't return a plaintext (unencrypted) private key.", + "description": "This example returns an asymmetric elliptic curve (ECC) data key pair. The private key is encrypted under the symmetric encryption KMS key that you specify. This operation doesn't return a plaintext (unencrypted) private key.", "id": "to-generate-an-asymmetric-data-key-pair-without-a-plaintext-key-1628620971564", "title": "To generate an asymmetric data key pair without a plaintext key" } @@ -728,6 +898,35 @@ "title": "To generate an encrypted data key" } ], + "GenerateMac": [ + { + "input": { + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", + "MacAlgorithm": "HMAC_SHA_384", + "Message": "Hello World" + }, + "output": { + "KeyId": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", + "Mac": "", + "MacAlgorithm": "HMAC_SHA_384" + }, + "comments": { + "input": { + "KeyId": "The HMAC KMS key input to the HMAC algorithm.", + "MacAlgorithm": "The HMAC algorithm requested for the operation.", + "Message": "The message input to the HMAC algorithm." + }, + "output": { + "KeyId": "The key ARN of the HMAC KMS key used in the operation.", + "Mac": "The HMAC tag that results from this operation.", + "MacAlgorithm": "The HMAC algorithm used in the operation." + } + }, + "description": "This example generates an HMAC for a message, an HMAC KMS key, and a MAC algorithm. The algorithm must be supported by the specified HMAC KMS key.", + "id": "to-generate-an-hmac-for-a-message-1631570135665", + "title": "To generate an HMAC for a message" + } + ], "GenerateRandom": [ { "input": { @@ -1507,7 +1706,7 @@ }, "output": { "KeyId": "The key ARN of the asymmetric KMS key that was used to verify the digital signature.", - "SignatureValid": "Indicates whether the signature was verified (true) or failed verification (false).", + "SignatureValid": "A value of 'true' Indicates that the signature was verified. If verification fails, the call to Verify fails.", "SigningAlgorithm": "The signing algorithm that was used to verify the signature." } }, @@ -1515,6 +1714,37 @@ "id": "to-use-an-asymmetric-kms-key-to-verify-a-digital-signature-1628633365663", "title": "To use an asymmetric KMS key to verify a digital signature" } + ], + "VerifyMac": [ + { + "input": { + "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", + "Mac": "", + "MacAlgorithm": "HMAC_SHA_384", + "Message": "Hello World" + }, + "output": { + "KeyId": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", + "MacAlgorithm": "HMAC_SHA_384", + "MacValid": true + }, + "comments": { + "input": { + "KeyId": "The HMAC KMS key input to the HMAC algorithm.", + "Mac": "The HMAC to be verified.", + "MacAlgorithm": "The HMAC algorithm requested for the operation.", + "Message": "The message input to the HMAC algorithm." + }, + "output": { + "KeyId": "The key ARN of the HMAC key used in the operation.", + "MacAlgorithm": "The HMAC algorithm used in the operation.", + "MacValid": "A value of 'true' indicates that verification succeeded. If verification fails, the call to VerifyMac fails." + } + }, + "description": "This example verifies an HMAC for a particular message, HMAC KMS keys, and MAC algorithm. A value of 'true' in the MacValid value in the response indicates that the HMAC is valid.", + "id": "to-verify-an-hmac-1631570863401", + "title": "To verify an HMAC" + } ] } } diff --git a/apis/personalize/2018-05-22/api-2.json b/apis/personalize/2018-05-22/api-2.json index c357c5dbdc8..e90fda0bec0 100644 --- a/apis/personalize/2018-05-22/api-2.json +++ b/apis/personalize/2018-05-22/api-2.json @@ -790,6 +790,36 @@ {"shape":"ResourceInUseException"} ] }, + "StartRecommender":{ + "name":"StartRecommender", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartRecommenderRequest"}, + "output":{"shape":"StartRecommenderResponse"}, + "errors":[ + {"shape":"InvalidInputException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"} + ], + "idempotent":true + }, + "StopRecommender":{ + "name":"StopRecommender", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopRecommenderRequest"}, + "output":{"shape":"StopRecommenderResponse"}, + "errors":[ + {"shape":"InvalidInputException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"} + ], + "idempotent":true + }, "StopSolutionVersionCreation":{ "name":"StopSolutionVersionCreation", "http":{ @@ -2587,10 +2617,36 @@ "member":{"shape":"SolutionSummary"}, "max":100 }, + "StartRecommenderRequest":{ + "type":"structure", + "required":["recommenderArn"], + "members":{ + "recommenderArn":{"shape":"Arn"} + } + }, + "StartRecommenderResponse":{ + "type":"structure", + "members":{ + "recommenderArn":{"shape":"Arn"} + } + }, "Status":{ "type":"string", "max":256 }, + "StopRecommenderRequest":{ + "type":"structure", + "required":["recommenderArn"], + "members":{ + "recommenderArn":{"shape":"Arn"} + } + }, + "StopRecommenderResponse":{ + "type":"structure", + "members":{ + "recommenderArn":{"shape":"Arn"} + } + }, "StopSolutionVersionCreationRequest":{ "type":"structure", "required":["solutionVersionArn"], diff --git a/apis/personalize/2018-05-22/docs-2.json b/apis/personalize/2018-05-22/docs-2.json index a6993ec93cc..fc7233daf96 100644 --- a/apis/personalize/2018-05-22/docs-2.json +++ b/apis/personalize/2018-05-22/docs-2.json @@ -55,10 +55,12 @@ "ListSolutionVersions": "

Returns a list of solution versions for the given solution. When a solution is not specified, all the solution versions associated with the account are listed. The response provides the properties for each solution version, including the Amazon Resource Name (ARN).

", "ListSolutions": "

Returns a list of solutions that use the given dataset group. When a dataset group is not specified, all the solutions associated with the account are listed. The response provides the properties for each solution, including the Amazon Resource Name (ARN). For more information on solutions, see CreateSolution.

", "ListTagsForResource": "

Get a list of tags attached to a resource.

", + "StartRecommender": "

Starts a recommender that is INACTIVE. Starting a recommender does not create any new models, but resumes billing and automatic retraining for the recommender.

", + "StopRecommender": "

Stops a recommender that is ACTIVE. Stopping a recommender halts billing and automatic retraining for the recommender.

", "StopSolutionVersionCreation": "

Stops creating a solution version that is in a state of CREATE_PENDING or CREATE IN_PROGRESS.

Depending on the current state of the solution version, the solution version state changes as follows:

  • CREATE_PENDING > CREATE_STOPPED

    or

  • CREATE_IN_PROGRESS > CREATE_STOPPING > CREATE_STOPPED

You are billed for all of the training completed up until you stop the solution version creation. You cannot resume creating a solution version once it has been stopped.

", "TagResource": "

Add a list of tags to a resource.

", "UntagResource": "

Remove tags that are attached to a resource.

", - "UpdateCampaign": "

Updates a campaign by either deploying a new solution or changing the value of the campaign's minProvisionedTPS parameter.

To update a campaign, the campaign status must be ACTIVE or CREATE FAILED. Check the campaign status using the DescribeCampaign operation.

You must wait until the status of the updated campaign is ACTIVE before asking the campaign for recommendations.

For more information on campaigns, see CreateCampaign.

", + "UpdateCampaign": "

Updates a campaign by either deploying a new solution or changing the value of the campaign's minProvisionedTPS parameter.

To update a campaign, the campaign status must be ACTIVE or CREATE FAILED. Check the campaign status using the DescribeCampaign operation.

You can still get recommendations from a campaign while an update is in progress. The campaign will use the previous solution version and campaign configuration to generate recommendations until the latest campaign update status is Active.

For more information on campaigns, see CreateCampaign.

", "UpdateRecommender": "

Updates the recommender to modify the recommender configuration.

" }, "shapes": { @@ -211,6 +213,10 @@ "SolutionVersion$recipeArn": "

The ARN of the recipe used in the solution.

", "SolutionVersion$datasetGroupArn": "

The Amazon Resource Name (ARN) of the dataset group providing the training data.

", "SolutionVersionSummary$solutionVersionArn": "

The Amazon Resource Name (ARN) of the solution version.

", + "StartRecommenderRequest$recommenderArn": "

The Amazon Resource Name (ARN) of the recommender to start.

", + "StartRecommenderResponse$recommenderArn": "

The Amazon Resource Name (ARN) of the recommender you started.

", + "StopRecommenderRequest$recommenderArn": "

The Amazon Resource Name (ARN) of the recommender to stop.

", + "StopRecommenderResponse$recommenderArn": "

The Amazon Resource Name (ARN) of the recommender you stopped.

", "StopSolutionVersionCreationRequest$solutionVersionArn": "

The Amazon Resource Name (ARN) of the solution version you want to stop creating.

", "TagResourceRequest$resourceArn": "

The resource's Amazon Resource Name (ARN).

", "UntagResourceRequest$resourceArn": "

The resource's Amazon Resource Name (ARN).

", @@ -1712,6 +1718,16 @@ "ListSolutionsResponse$solutions": "

A list of the current solutions.

" } }, + "StartRecommenderRequest": { + "base": null, + "refs": { + } + }, + "StartRecommenderResponse": { + "base": null, + "refs": { + } + }, "Status": { "base": null, "refs": { @@ -1746,6 +1762,16 @@ "SolutionVersionSummary$status": "

The status of the solution version.

A solution version can be in one of the following states:

  • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED

" } }, + "StopRecommenderRequest": { + "base": null, + "refs": { + } + }, + "StopRecommenderResponse": { + "base": null, + "refs": { + } + }, "StopSolutionVersionCreationRequest": { "base": null, "refs": { diff --git a/apis/polly/2016-06-10/api-2.json b/apis/polly/2016-06-10/api-2.json index 6afde73a9e6..af1d84b187a 100644 --- a/apis/polly/2016-06-10/api-2.json +++ b/apis/polly/2016-06-10/api-2.json @@ -377,7 +377,8 @@ "tr-TR", "en-NZ", "en-ZA", - "ca-ES" + "ca-ES", + "de-AT" ] }, "LanguageCodeList":{ @@ -831,7 +832,8 @@ "Zhiyu", "Aria", "Ayanda", - "Arlet" + "Arlet", + "Hannah" ] }, "VoiceList":{ diff --git a/apis/redshift/2012-12-01/api-2.json b/apis/redshift/2012-12-01/api-2.json index 378adb2a1ed..e356e7eee1c 100644 --- a/apis/redshift/2012-12-01/api-2.json +++ b/apis/redshift/2012-12-01/api-2.json @@ -3987,14 +3987,13 @@ }, "EnableLoggingMessage":{ "type":"structure", - "required":[ - "ClusterIdentifier", - "BucketName" - ], + "required":["ClusterIdentifier"], "members":{ "ClusterIdentifier":{"shape":"String"}, "BucketName":{"shape":"String"}, - "S3KeyPrefix":{"shape":"String"} + "S3KeyPrefix":{"shape":"String"}, + "LogDestinationType":{"shape":"LogDestinationType"}, + "LogExports":{"shape":"LogTypeList"} } }, "EnableSnapshotCopyMessage":{ @@ -4858,6 +4857,17 @@ }, "exception":true }, + "LogDestinationType":{ + "type":"string", + "enum":[ + "s3", + "cloudwatch" + ] + }, + "LogTypeList":{ + "type":"list", + "member":{"shape":"String"} + }, "LoggingStatus":{ "type":"structure", "members":{ @@ -4866,7 +4876,9 @@ "S3KeyPrefix":{"shape":"String"}, "LastSuccessfulDeliveryTime":{"shape":"TStamp"}, "LastFailureTime":{"shape":"TStamp"}, - "LastFailureMessage":{"shape":"String"} + "LastFailureMessage":{"shape":"String"}, + "LogDestinationType":{"shape":"LogDestinationType"}, + "LogExports":{"shape":"LogTypeList"} } }, "Long":{"type":"long"}, diff --git a/apis/redshift/2012-12-01/docs-2.json b/apis/redshift/2012-12-01/docs-2.json index 7775395837f..b778cf464cc 100644 --- a/apis/redshift/2012-12-01/docs-2.json +++ b/apis/redshift/2012-12-01/docs-2.json @@ -431,7 +431,7 @@ "RestoreFromClusterSnapshotMessage$PubliclyAccessible": "

If true, the cluster can be accessed from a public network.

", "RestoreFromClusterSnapshotMessage$EnhancedVpcRouting": "

An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see Enhanced VPC Routing in the Amazon Redshift Cluster Management Guide.

If this option is true, enhanced VPC routing is enabled.

Default: false

", "RestoreFromClusterSnapshotMessage$AvailabilityZoneRelocation": "

The option to enable relocation for an Amazon Redshift cluster between Availability Zones after the cluster is restored.

", - "RestoreFromClusterSnapshotMessage$Encrypted": "

Enables support for restoring an unencrypted snapshot to a cluster encrypted with Key Management Service (KMS) and a CMK.

", + "RestoreFromClusterSnapshotMessage$Encrypted": "

Enables support for restoring an unencrypted snapshot to a cluster encrypted with Key Management Service (KMS) and a customer managed key.

", "RestoreTableFromClusterSnapshotMessage$EnableCaseSensitiveIdentifier": "

Indicates whether name identifiers for database, schema, and table are case sensitive. If true, the names are case sensitive. If false (default), the names are not case sensitive.

" } }, @@ -1934,6 +1934,20 @@ "refs": { } }, + "LogDestinationType": { + "base": null, + "refs": { + "EnableLoggingMessage$LogDestinationType": "

The log destination type. An enum with possible values of s3 and cloudwatch.

", + "LoggingStatus$LogDestinationType": "

The log destination type. An enum with possible values of s3 and cloudwatch.

" + } + }, + "LogTypeList": { + "base": null, + "refs": { + "EnableLoggingMessage$LogExports": "

The collection of exported log types. Log types include the connection log, user log and user activity log.

", + "LoggingStatus$LogExports": "

The collection of exported log types. Log types include the connection log, user log and user activity log.

" + } + }, "LoggingStatus": { "base": "

Describes the status of logging for a cluster.

", "refs": { @@ -3220,6 +3234,7 @@ "ImportTablesCompleted$member": null, "ImportTablesInProgress$member": null, "ImportTablesNotStarted$member": null, + "LogTypeList$member": null, "LoggingStatus$BucketName": "

The name of the S3 bucket where the log files are stored.

", "LoggingStatus$S3KeyPrefix": "

The prefix applied to the log file names.

", "LoggingStatus$LastFailureMessage": "

The message indicating that logs failed to be delivered.

", @@ -3338,7 +3353,7 @@ "RestoreFromClusterSnapshotMessage$ElasticIp": "

The elastic IP (EIP) address for the cluster.

", "RestoreFromClusterSnapshotMessage$ClusterParameterGroupName": "

The name of the parameter group to be associated with this cluster.

Default: The default Amazon Redshift cluster parameter group. For information about the default parameter group, go to Working with Amazon Redshift Parameter Groups.

Constraints:

  • Must be 1 to 255 alphanumeric characters or hyphens.

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

", "RestoreFromClusterSnapshotMessage$PreferredMaintenanceWindow": "

The weekly time range (in UTC) during which automated cluster maintenance can occur.

Format: ddd:hh24:mi-ddd:hh24:mi

Default: The value selected for the cluster from which the snapshot was taken. For more information about the time blocks for each region, see Maintenance Windows in Amazon Redshift Cluster Management Guide.

Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun

Constraints: Minimum 30-minute window.

", - "RestoreFromClusterSnapshotMessage$KmsKeyId": "

The Key Management Service (KMS) key ID of the encryption key to encrypt data in the cluster restored from a shared snapshot. You can also provide the key ID when you restore from an unencrypted snapshot to an encrypted cluster in the same account. Additionally, you can specify a new KMS key ID when you restore from an encrypted snapshot in the same account in order to change it. In that case, the restored cluster is encrypted with the new KMS key ID.

", + "RestoreFromClusterSnapshotMessage$KmsKeyId": "

The Key Management Service (KMS) key ID of the encryption key that encrypts data in the cluster restored from a shared snapshot. You can also provide the key ID when you restore from an unencrypted snapshot to an encrypted cluster in the same account. Additionally, you can specify a new KMS key ID when you restore from an encrypted snapshot in the same account in order to change it. In that case, the restored cluster is encrypted with the new KMS key ID.

", "RestoreFromClusterSnapshotMessage$NodeType": "

The node type that the restored cluster will be provisioned with.

Default: The node type of the cluster from which the snapshot was taken. You can modify this if you are using any DS node type. In that case, you can choose to restore into another DS node type of the same size. For example, you can restore ds1.8xlarge into ds2.8xlarge, or ds1.xlarge into ds2.xlarge. If you have a DC instance type, you must restore into that same instance type and size. In other words, you can only restore a dc1.large instance type into another dc1.large instance type or dc2.large instance type. You can't restore dc1.8xlarge to dc2.8xlarge. First restore to a dc1.8xlarge cluster, then resize to a dc2.8large cluster. For more information about node types, see About Clusters and Nodes in the Amazon Redshift Cluster Management Guide.

", "RestoreFromClusterSnapshotMessage$AdditionalInfo": "

Reserved.

", "RestoreFromClusterSnapshotMessage$MaintenanceTrackName": "

The name of the maintenance track for the restored cluster. When you take a snapshot, the snapshot inherits the MaintenanceTrack value from the cluster. The snapshot might be on a different track than the cluster that was the source for the snapshot. For example, suppose that you take a snapshot of a cluster that is on the current track and then change the cluster to be on the trailing track. In this case, the snapshot and the source cluster are on different tracks.

", diff --git a/apis/ssm/2014-11-06/api-2.json b/apis/ssm/2014-11-06/api-2.json index 3037d975daf..701b011d80c 100644 --- a/apis/ssm/2014-11-06/api-2.json +++ b/apis/ssm/2014-11-06/api-2.json @@ -2137,7 +2137,11 @@ "LastExecutionDate":{"shape":"DateTime"}, "Overview":{"shape":"AssociationOverview"}, "ScheduleExpression":{"shape":"ScheduleExpression"}, - "AssociationName":{"shape":"AssociationName"} + "AssociationName":{"shape":"AssociationName"}, + "ScheduleOffset":{ + "shape":"ScheduleOffset", + "box":true + } } }, "AssociationAlreadyExists":{ @@ -2182,7 +2186,11 @@ "SyncCompliance":{"shape":"AssociationSyncCompliance"}, "ApplyOnlyAtCronInterval":{"shape":"ApplyOnlyAtCronInterval"}, "CalendarNames":{"shape":"CalendarNameOrARNList"}, - "TargetLocations":{"shape":"TargetLocations"} + "TargetLocations":{"shape":"TargetLocations"}, + "ScheduleOffset":{ + "shape":"ScheduleOffset", + "box":true + } } }, "AssociationDescriptionList":{ @@ -2440,7 +2448,11 @@ "SyncCompliance":{"shape":"AssociationSyncCompliance"}, "ApplyOnlyAtCronInterval":{"shape":"ApplyOnlyAtCronInterval"}, "CalendarNames":{"shape":"CalendarNameOrARNList"}, - "TargetLocations":{"shape":"TargetLocations"} + "TargetLocations":{"shape":"TargetLocations"}, + "ScheduleOffset":{ + "shape":"ScheduleOffset", + "box":true + } } }, "AssociationVersionLimitExceeded":{ @@ -3306,7 +3318,11 @@ "SyncCompliance":{"shape":"AssociationSyncCompliance"}, "ApplyOnlyAtCronInterval":{"shape":"ApplyOnlyAtCronInterval"}, "CalendarNames":{"shape":"CalendarNameOrARNList"}, - "TargetLocations":{"shape":"TargetLocations"} + "TargetLocations":{"shape":"TargetLocations"}, + "ScheduleOffset":{ + "shape":"ScheduleOffset", + "box":true + } } }, "CreateAssociationBatchResult":{ @@ -3335,7 +3351,11 @@ "SyncCompliance":{"shape":"AssociationSyncCompliance"}, "ApplyOnlyAtCronInterval":{"shape":"ApplyOnlyAtCronInterval"}, "CalendarNames":{"shape":"CalendarNameOrARNList"}, - "TargetLocations":{"shape":"TargetLocations"} + "TargetLocations":{"shape":"TargetLocations"}, + "ScheduleOffset":{ + "shape":"ScheduleOffset", + "box":true + } } }, "CreateAssociationResult":{ @@ -9331,6 +9351,11 @@ "max":256, "min":1 }, + "ScheduleOffset":{ + "type":"integer", + "max":6, + "min":1 + }, "ScheduledWindowExecution":{ "type":"structure", "members":{ @@ -10125,7 +10150,11 @@ "SyncCompliance":{"shape":"AssociationSyncCompliance"}, "ApplyOnlyAtCronInterval":{"shape":"ApplyOnlyAtCronInterval"}, "CalendarNames":{"shape":"CalendarNameOrARNList"}, - "TargetLocations":{"shape":"TargetLocations"} + "TargetLocations":{"shape":"TargetLocations"}, + "ScheduleOffset":{ + "shape":"ScheduleOffset", + "box":true + } } }, "UpdateAssociationResult":{ diff --git a/apis/ssm/2014-11-06/docs-2.json b/apis/ssm/2014-11-06/docs-2.json index 84ab2b19f22..3d88ed780a9 100644 --- a/apis/ssm/2014-11-06/docs-2.json +++ b/apis/ssm/2014-11-06/docs-2.json @@ -2,7 +2,7 @@ "version": "2.0", "service": "

Amazon Web Services Systems Manager is a collection of capabilities that helps you automate management tasks such as collecting system inventory, applying operating system (OS) patches, automating the creation of Amazon Machine Images (AMIs), and configuring operating systems (OSs) and applications at scale. Systems Manager lets you remotely and securely manage the configuration of your managed nodes. A managed node is any Amazon Elastic Compute Cloud (Amazon EC2) instance, edge device, or on-premises server or virtual machine (VM) that has been configured for Systems Manager.

With support for IoT Greengrass core devices, the phrase managed instance has been changed to managed node in most of the Systems Manager documentation. The Systems Manager console, API calls, error messages, and SSM documents still use the term instance.

This reference is intended to be used with the Amazon Web Services Systems Manager User Guide.

To get started, verify prerequisites and configure managed nodes. For more information, see Setting up Amazon Web Services Systems Manager in the Amazon Web Services Systems Manager User Guide.

Related resources

", "operations": { - "AddTagsToResource": "

Adds or overwrites one or more tags for the specified resource. Tags are metadata that you can assign to your documents, managed nodes, maintenance windows, Parameter Store parameters, and patch baselines. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value, both of which you define. For example, you could define a set of tags for your account's managed nodes that helps you track each node's owner and stack level. For example:

  • Key=Owner,Value=DbAdmin

  • Key=Owner,Value=SysAdmin

  • Key=Owner,Value=Dev

  • Key=Stack,Value=Production

  • Key=Stack,Value=Pre-Production

  • Key=Stack,Value=Test

Each resource can have a maximum of 50 tags.

We recommend that you devise a set of tag keys that meets your needs for each resource type. Using a consistent set of tag keys makes it easier for you to manage your resources. You can search and filter the resources based on the tags you add. Tags don't have any semantic meaning to and are interpreted strictly as a string of characters.

For more information about using tags with Amazon Elastic Compute Cloud (Amazon EC2) instances, see Tagging your Amazon EC2 resources in the Amazon EC2 User Guide.

", + "AddTagsToResource": "

Adds or overwrites one or more tags for the specified resource. Tags are metadata that you can assign to your automations, documents, managed nodes, maintenance windows, Parameter Store parameters, and patch baselines. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value, both of which you define. For example, you could define a set of tags for your account's managed nodes that helps you track each node's owner and stack level. For example:

  • Key=Owner,Value=DbAdmin

  • Key=Owner,Value=SysAdmin

  • Key=Owner,Value=Dev

  • Key=Stack,Value=Production

  • Key=Stack,Value=Pre-Production

  • Key=Stack,Value=Test

Most resources can have a maximum of 50 tags. Automations can have a maximum of 5 tags.

We recommend that you devise a set of tag keys that meets your needs for each resource type. Using a consistent set of tag keys makes it easier for you to manage your resources. You can search and filter the resources based on the tags you add. Tags don't have any semantic meaning to and are interpreted strictly as a string of characters.

For more information about using tags with Amazon Elastic Compute Cloud (Amazon EC2) instances, see Tagging your Amazon EC2 resources in the Amazon EC2 User Guide.

", "AssociateOpsItemRelatedItem": "

Associates a related item to a Systems Manager OpsCenter OpsItem. For example, you can associate an Incident Manager incident or analysis with an OpsItem. Incident Manager and OpsCenter are capabilities of Amazon Web Services Systems Manager.

", "CancelCommand": "

Attempts to cancel the command specified by the Command ID. There is no guarantee that the command will be terminated and the underlying process stopped.

", "CancelMaintenanceWindowExecution": "

Stops a maintenance window execution that is already in progress and cancels any tasks in the window that haven't already starting running. Tasks already in progress will continue to completion.

", @@ -6825,9 +6825,9 @@ "ResourceId": { "base": null, "refs": { - "AddTagsToResourceRequest$ResourceId": "

The resource ID you want to tag.

Use the ID of the resource. Here are some examples:

MaintenanceWindow: mw-012345abcde

PatchBaseline: pb-012345abcde

OpsMetadata object: ResourceID for tagging is created from the Amazon Resource Name (ARN) for the object. Specifically, ResourceID is created from the strings that come after the word opsmetadata in the ARN. For example, an OpsMetadata object with an ARN of arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager has a ResourceID of either aws/ssm/MyGroup/appmanager or /aws/ssm/MyGroup/appmanager.

For the Document and Parameter values, use the name of the resource.

ManagedInstance: mi-012345abcde

The ManagedInstance type for this API operation is only for on-premises managed nodes. You must specify the name of the managed node in the following format: mi-ID_number . For example, mi-1a2b3c4d5e6f.

", + "AddTagsToResourceRequest$ResourceId": "

The resource ID you want to tag.

Use the ID of the resource. Here are some examples:

MaintenanceWindow: mw-012345abcde

PatchBaseline: pb-012345abcde

Automation: example-c160-4567-8519-012345abcde

OpsMetadata object: ResourceID for tagging is created from the Amazon Resource Name (ARN) for the object. Specifically, ResourceID is created from the strings that come after the word opsmetadata in the ARN. For example, an OpsMetadata object with an ARN of arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager has a ResourceID of either aws/ssm/MyGroup/appmanager or /aws/ssm/MyGroup/appmanager.

For the Document and Parameter values, use the name of the resource.

ManagedInstance: mi-012345abcde

The ManagedInstance type for this API operation is only for on-premises managed nodes. You must specify the name of the managed node in the following format: mi-ID_number . For example, mi-1a2b3c4d5e6f.

", "ListTagsForResourceRequest$ResourceId": "

The resource ID for which you want to see a list of tags.

", - "RemoveTagsFromResourceRequest$ResourceId": "

The ID of the resource from which you want to remove tags. For example:

ManagedInstance: mi-012345abcde

MaintenanceWindow: mw-012345abcde

PatchBaseline: pb-012345abcde

OpsMetadata object: ResourceID for tagging is created from the Amazon Resource Name (ARN) for the object. Specifically, ResourceID is created from the strings that come after the word opsmetadata in the ARN. For example, an OpsMetadata object with an ARN of arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager has a ResourceID of either aws/ssm/MyGroup/appmanager or /aws/ssm/MyGroup/appmanager.

For the Document and Parameter values, use the name of the resource.

The ManagedInstance type for this API operation is only for on-premises managed nodes. Specify the name of the managed node in the following format: mi-ID_number. For example, mi-1a2b3c4d5e6f.

" + "RemoveTagsFromResourceRequest$ResourceId": "

The ID of the resource from which you want to remove tags. For example:

ManagedInstance: mi-012345abcde

MaintenanceWindow: mw-012345abcde

Automation: example-c160-4567-8519-012345abcde

PatchBaseline: pb-012345abcde

OpsMetadata object: ResourceID for tagging is created from the Amazon Resource Name (ARN) for the object. Specifically, ResourceID is created from the strings that come after the word opsmetadata in the ARN. For example, an OpsMetadata object with an ARN of arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager has a ResourceID of either aws/ssm/MyGroup/appmanager or /aws/ssm/MyGroup/appmanager.

For the Document and Parameter values, use the name of the resource.

The ManagedInstance type for this API operation is only for on-premises managed nodes. Specify the name of the managed node in the following format: mi-ID_number. For example, mi-1a2b3c4d5e6f.

" } }, "ResourceInUseException": { @@ -6982,6 +6982,17 @@ "UpdateAssociationRequest$ScheduleExpression": "

The cron expression used to schedule the association that you want to update.

" } }, + "ScheduleOffset": { + "base": null, + "refs": { + "Association$ScheduleOffset": "

Number of days to wait after the scheduled day to run an association.

", + "AssociationDescription$ScheduleOffset": "

Number of days to wait after the scheduled day to run an association.

", + "AssociationVersionInfo$ScheduleOffset": "

Number of days to wait after the scheduled day to run an association.

", + "CreateAssociationBatchRequestEntry$ScheduleOffset": "

Number of days to wait after the scheduled day to run an association.

", + "CreateAssociationRequest$ScheduleOffset": "

Number of days to wait after the scheduled day to run an association. For example, if you specified a cron schedule of cron(0 0 ? * THU#2 *), you could specify an offset of 3 to run the association each Sunday after the second Thursday of the month. For more information about cron schedules for associations, see Reference: Cron and rate expressions for Systems Manager in the Amazon Web Services Systems Manager User Guide.

To use offsets, you must specify the ApplyOnlyAtCronInterval parameter. This option tells the system not to run an association immediately after you create it.

", + "UpdateAssociationRequest$ScheduleOffset": "

Number of days to wait after the scheduled day to run an association. For example, if you specified a cron schedule of cron(0 0 ? * THU#2 *), you could specify an offset of 3 to run the association each Sunday after the second Thursday of the month. For more information about cron schedules for associations, see Reference: Cron and rate expressions for Systems Manager in the Amazon Web Services Systems Manager User Guide.

To use offsets, you must specify the ApplyOnlyAtCronInterval parameter. This option tells the system not to run an association immediately after you create it.

" + } + }, "ScheduledWindowExecution": { "base": "

Information about a scheduled execution for a maintenance window.

", "refs": { @@ -7623,7 +7634,7 @@ "DocumentIdentifier$Tags": "

The tags, or metadata, that have been applied to the document.

", "ListTagsForResourceResult$TagList": "

A list of tags.

", "PutParameterRequest$Tags": "

Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a Systems Manager parameter to identify the type of resource to which it applies, the environment, or the type of configuration data referenced by the parameter. In this case, you could specify the following key-value pairs:

  • Key=Resource,Value=S3bucket

  • Key=OS,Value=Windows

  • Key=ParameterType,Value=LicenseKey

To add tags to an existing Systems Manager parameter, use the AddTagsToResource operation.

", - "StartAutomationExecutionRequest$Tags": "

Optional metadata that you assign to a resource. You can specify a maximum of five tags for an automation. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag an automation to identify an environment or operating system. In this case, you could specify the following key-value pairs:

  • Key=environment,Value=test

  • Key=OS,Value=Windows

To add tags to an existing patch baseline, use the AddTagsToResource operation.

", + "StartAutomationExecutionRequest$Tags": "

Optional metadata that you assign to a resource. You can specify a maximum of five tags for an automation. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag an automation to identify an environment or operating system. In this case, you could specify the following key-value pairs:

  • Key=environment,Value=test

  • Key=OS,Value=Windows

To add tags to an existing automation, use the AddTagsToResource operation.

", "StartChangeRequestExecutionRequest$Tags": "

Optional metadata that you assign to a resource. You can specify a maximum of five tags for a change request. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a change request to identify an environment or target Amazon Web Services Region. In this case, you could specify the following key-value pairs:

  • Key=Environment,Value=Production

  • Key=Region,Value=us-east-2

" } }, diff --git a/apis/textract/2018-06-27/api-2.json b/apis/textract/2018-06-27/api-2.json index ef352b38554..ce263d5885a 100644 --- a/apis/textract/2018-06-27/api-2.json +++ b/apis/textract/2018-06-27/api-2.json @@ -236,7 +236,8 @@ "members":{ "Document":{"shape":"Document"}, "FeatureTypes":{"shape":"FeatureTypes"}, - "HumanLoopConfig":{"shape":"HumanLoopConfig"} + "HumanLoopConfig":{"shape":"HumanLoopConfig"}, + "QueriesConfig":{"shape":"QueriesConfig"} } }, "AnalyzeDocumentResponse":{ @@ -308,7 +309,8 @@ "Relationships":{"shape":"RelationshipList"}, "EntityTypes":{"shape":"EntityTypes"}, "SelectionStatus":{"shape":"SelectionStatus"}, - "Page":{"shape":"UInteger"} + "Page":{"shape":"UInteger"}, + "Query":{"shape":"Query"} } }, "BlockList":{ @@ -326,7 +328,9 @@ "CELL", "SELECTION_ELEMENT", "MERGED_CELL", - "TITLE" + "TITLE", + "QUERY", + "QUERY_RESULT" ] }, "BoundingBox":{ @@ -459,7 +463,8 @@ "type":"string", "enum":[ "TABLES", - "FORMS" + "FORMS", + "QUERIES" ] }, "FeatureTypes":{ @@ -787,6 +792,44 @@ }, "exception":true }, + "Queries":{ + "type":"list", + "member":{"shape":"Query"}, + "min":1 + }, + "QueriesConfig":{ + "type":"structure", + "required":["Queries"], + "members":{ + "Queries":{"shape":"Queries"} + } + }, + "Query":{ + "type":"structure", + "required":["Text"], + "members":{ + "Text":{"shape":"QueryInput"}, + "Alias":{"shape":"QueryInput"}, + "Pages":{"shape":"QueryPages"} + } + }, + "QueryInput":{ + "type":"string", + "max":200, + "min":1, + "pattern":"^[a-zA-Z0-9\\s!\"\\#\\$%'&\\(\\)\\*\\+\\,\\-\\./:;=\\?@\\[\\\\\\]\\^_`\\{\\|\\}~><]+$" + }, + "QueryPage":{ + "type":"string", + "max":9, + "min":1, + "pattern":"^[0-9\\*\\-]+$" + }, + "QueryPages":{ + "type":"list", + "member":{"shape":"QueryPage"}, + "min":1 + }, "Relationship":{ "type":"structure", "members":{ @@ -805,7 +848,8 @@ "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", - "TITLE" + "TITLE", + "ANSWER" ] }, "RoleArn":{ @@ -866,7 +910,8 @@ "JobTag":{"shape":"JobTag"}, "NotificationChannel":{"shape":"NotificationChannel"}, "OutputConfig":{"shape":"OutputConfig"}, - "KMSKeyId":{"shape":"KMSKeyId"} + "KMSKeyId":{"shape":"KMSKeyId"}, + "QueriesConfig":{"shape":"QueriesConfig"} } }, "StartDocumentAnalysisResponse":{ diff --git a/apis/textract/2018-06-27/docs-2.json b/apis/textract/2018-06-27/docs-2.json index c5c5b14a880..b695884e98a 100644 --- a/apis/textract/2018-06-27/docs-2.json +++ b/apis/textract/2018-06-27/docs-2.json @@ -2,11 +2,11 @@ "version": "2.0", "service": "

Amazon Textract detects and analyzes text in documents and converts it into machine-readable text. This is the API reference documentation for Amazon Textract.

", "operations": { - "AnalyzeDocument": "

Analyzes an input document for relationships between detected items.

The types of information returned are as follows:

  • Form data (key-value pairs). The related information is returned in two Block objects, each of type KEY_VALUE_SET: a KEY Block object and a VALUE Block object. For example, Name: Ana Silva Carolina contains a key and value. Name: is the key. Ana Silva Carolina is the value.

  • Table and table cell data. A TABLE Block object contains information about a detected table. A CELL Block object is returned for each cell in a table.

  • Lines and words of text. A LINE Block object contains one or more WORD Block objects. All lines and words that are detected in the document are returned (including text that doesn't have a relationship with the value of FeatureTypes).

Selection elements such as check boxes and option buttons (radio buttons) can be detected in form data and in tables. A SELECTION_ELEMENT Block object contains information about a selection element, including the selection status.

You can choose which type of analysis to perform by specifying the FeatureTypes list.

The output is returned in a list of Block objects.

AnalyzeDocument is a synchronous operation. To analyze documents asynchronously, use StartDocumentAnalysis.

For more information, see Document Text Analysis.

", + "AnalyzeDocument": "

Analyzes an input document for relationships between detected items.

The types of information returned are as follows:

  • Form data (key-value pairs). The related information is returned in two Block objects, each of type KEY_VALUE_SET: a KEY Block object and a VALUE Block object. For example, Name: Ana Silva Carolina contains a key and value. Name: is the key. Ana Silva Carolina is the value.

  • Table and table cell data. A TABLE Block object contains information about a detected table. A CELL Block object is returned for each cell in a table.

  • Lines and words of text. A LINE Block object contains one or more WORD Block objects. All lines and words that are detected in the document are returned (including text that doesn't have a relationship with the value of FeatureTypes).

  • Queries.A QUERIES_RESULT Block object contains the answer to the query, the alias associated and an ID that connect it to the query asked. This Block also contains a location and attached confidence score.

Selection elements such as check boxes and option buttons (radio buttons) can be detected in form data and in tables. A SELECTION_ELEMENT Block object contains information about a selection element, including the selection status.

You can choose which type of analysis to perform by specifying the FeatureTypes list.

The output is returned in a list of Block objects.

AnalyzeDocument is a synchronous operation. To analyze documents asynchronously, use StartDocumentAnalysis.

For more information, see Document Text Analysis.

", "AnalyzeExpense": "

AnalyzeExpense synchronously analyzes an input document for financially related relationships between text.

Information is returned as ExpenseDocuments and seperated as follows.

  • LineItemGroups- A data set containing LineItems which store information about the lines of text, such as an item purchased and its price on a receipt.

  • SummaryFields- Contains all other information a receipt, such as header information or the vendors name.

", - "AnalyzeID": "

Analyzes identity documents for relevant information. This information is extracted and returned as IdentityDocumentFields, which records both the normalized field and value of the extracted text.

", - "DetectDocumentText": "

Detects text in the input document. Amazon Textract can detect lines of text and the words that make up a line of text. The input document must be an image in JPEG or PNG format. DetectDocumentText returns the detected text in an array of Block objects.

Each document page has as an associated Block of type PAGE. Each PAGE Block object is the parent of LINE Block objects that represent the lines of detected text on a page. A LINE Block object is a parent for each word that makes up the line. Words are represented by Block objects of type WORD.

DetectDocumentText is a synchronous operation. To analyze documents asynchronously, use StartDocumentTextDetection.

For more information, see Document Text Detection.

", - "GetDocumentAnalysis": "

Gets the results for an Amazon Textract asynchronous operation that analyzes text in a document.

You start asynchronous text analysis by calling StartDocumentAnalysis, which returns a job identifier (JobId). When the text analysis operation finishes, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that's registered in the initial call to StartDocumentAnalysis. To get the results of the text-detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call GetDocumentAnalysis, and pass the job identifier (JobId) from the initial call to StartDocumentAnalysis.

GetDocumentAnalysis returns an array of Block objects. The following types of information are returned:

  • Form data (key-value pairs). The related information is returned in two Block objects, each of type KEY_VALUE_SET: a KEY Block object and a VALUE Block object. For example, Name: Ana Silva Carolina contains a key and value. Name: is the key. Ana Silva Carolina is the value.

  • Table and table cell data. A TABLE Block object contains information about a detected table. A CELL Block object is returned for each cell in a table.

  • Lines and words of text. A LINE Block object contains one or more WORD Block objects. All lines and words that are detected in the document are returned (including text that doesn't have a relationship with the value of the StartDocumentAnalysis FeatureTypes input parameter).

Selection elements such as check boxes and option buttons (radio buttons) can be detected in form data and in tables. A SELECTION_ELEMENT Block object contains information about a selection element, including the selection status.

Use the MaxResults parameter to limit the number of blocks that are returned. If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetDocumentAnalysis, and populate the NextToken request parameter with the token value that's returned from the previous call to GetDocumentAnalysis.

For more information, see Document Text Analysis.

", + "AnalyzeID": "

Analyzes identity documents for relevant information. This information is extracted and returned as IdentityDocumentFields, which records both the normalized field and value of the extracted text.Unlike other Amazon Textract operations, AnalyzeID doesn't return any Geometry data.

", + "DetectDocumentText": "

Detects text in the input document. Amazon Textract can detect lines of text and the words that make up a line of text. The input document must be an image in JPEG, PNG, PDF, or TIFF format. DetectDocumentText returns the detected text in an array of Block objects.

Each document page has as an associated Block of type PAGE. Each PAGE Block object is the parent of LINE Block objects that represent the lines of detected text on a page. A LINE Block object is a parent for each word that makes up the line. Words are represented by Block objects of type WORD.

DetectDocumentText is a synchronous operation. To analyze documents asynchronously, use StartDocumentTextDetection.

For more information, see Document Text Detection.

", + "GetDocumentAnalysis": "

Gets the results for an Amazon Textract asynchronous operation that analyzes text in a document.

You start asynchronous text analysis by calling StartDocumentAnalysis, which returns a job identifier (JobId). When the text analysis operation finishes, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that's registered in the initial call to StartDocumentAnalysis. To get the results of the text-detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call GetDocumentAnalysis, and pass the job identifier (JobId) from the initial call to StartDocumentAnalysis.

GetDocumentAnalysis returns an array of Block objects. The following types of information are returned:

  • Form data (key-value pairs). The related information is returned in two Block objects, each of type KEY_VALUE_SET: a KEY Block object and a VALUE Block object. For example, Name: Ana Silva Carolina contains a key and value. Name: is the key. Ana Silva Carolina is the value.

  • Table and table cell data. A TABLE Block object contains information about a detected table. A CELL Block object is returned for each cell in a table.

  • Lines and words of text. A LINE Block object contains one or more WORD Block objects. All lines and words that are detected in the document are returned (including text that doesn't have a relationship with the value of the StartDocumentAnalysis FeatureTypes input parameter).

  • Queries. A QUERIES_RESULT Block object contains the answer to the query, the alias associated and an ID that connect it to the query asked. This Block also contains a location and attached confidence score

Selection elements such as check boxes and option buttons (radio buttons) can be detected in form data and in tables. A SELECTION_ELEMENT Block object contains information about a selection element, including the selection status.

Use the MaxResults parameter to limit the number of blocks that are returned. If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetDocumentAnalysis, and populate the NextToken request parameter with the token value that's returned from the previous call to GetDocumentAnalysis.

For more information, see Document Text Analysis.

", "GetDocumentTextDetection": "

Gets the results for an Amazon Textract asynchronous operation that detects text in a document. Amazon Textract can detect lines of text and the words that make up a line of text.

You start asynchronous text detection by calling StartDocumentTextDetection, which returns a job identifier (JobId). When the text detection operation finishes, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that's registered in the initial call to StartDocumentTextDetection. To get the results of the text-detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call GetDocumentTextDetection, and pass the job identifier (JobId) from the initial call to StartDocumentTextDetection.

GetDocumentTextDetection returns an array of Block objects.

Each document page has as an associated Block of type PAGE. Each PAGE Block object is the parent of LINE Block objects that represent the lines of detected text on a page. A LINE Block object is a parent for each word that makes up the line. Words are represented by Block objects of type WORD.

Use the MaxResults parameter to limit the number of blocks that are returned. If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetDocumentTextDetection, and populate the NextToken request parameter with the token value that's returned from the previous call to GetDocumentTextDetection.

For more information, see Document Text Detection.

", "GetExpenseAnalysis": "

Gets the results for an Amazon Textract asynchronous operation that analyzes invoices and receipts. Amazon Textract finds contact information, items purchased, and vendor name, from input invoices and receipts.

You start asynchronous invoice/receipt analysis by calling StartExpenseAnalysis, which returns a job identifier (JobId). Upon completion of the invoice/receipt analysis, Amazon Textract publishes the completion status to the Amazon Simple Notification Service (Amazon SNS) topic. This topic must be registered in the initial call to StartExpenseAnalysis. To get the results of the invoice/receipt analysis operation, first ensure that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call GetExpenseAnalysis, and pass the job identifier (JobId) from the initial call to StartExpenseAnalysis.

Use the MaxResults parameter to limit the number of blocks that are returned. If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetExpenseAnalysis, and populate the NextToken request parameter with the token value that's returned from the previous call to GetExpenseAnalysis.

For more information, see Analyzing Invoices and Receipts.

", "StartDocumentAnalysis": "

Starts the asynchronous analysis of an input document for relationships between detected items such as key-value pairs, tables, and selection elements.

StartDocumentAnalysis can analyze text in documents that are in JPEG, PNG, TIFF, and PDF format. The documents are stored in an Amazon S3 bucket. Use DocumentLocation to specify the bucket name and file name of the document.

StartDocumentAnalysis returns a job identifier (JobId) that you use to get the results of the operation. When text analysis is finished, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that you specify in NotificationChannel. To get the results of the text analysis operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call GetDocumentAnalysis, and pass the job identifier (JobId) from the initial call to StartDocumentAnalysis.

For more information, see Document Text Analysis.

", @@ -79,7 +79,7 @@ "BlockType": { "base": null, "refs": { - "Block$BlockType": "

The type of text item that's recognized. In operations for text detection, the following types are returned:

  • PAGE - Contains a list of the LINE Block objects that are detected on a document page.

  • WORD - A word detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.

  • LINE - A string of tab-delimited, contiguous words that are detected on a document page.

In text analysis operations, the following types are returned:

  • PAGE - Contains a list of child Block objects that are detected on a document page.

  • KEY_VALUE_SET - Stores the KEY and VALUE Block objects for linked text that's detected on a document page. Use the EntityType field to determine if a KEY_VALUE_SET object is a KEY Block object or a VALUE Block object.

  • WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.

  • LINE - A string of tab-delimited, contiguous words that are detected on a document page.

  • TABLE - A table that's detected on a document page. A table is grid-based information with two or more rows or columns, with a cell span of one row and one column each.

  • CELL - A cell within a detected table. The cell is the parent of the block that contains the text in the cell.

  • SELECTION_ELEMENT - A selection element such as an option button (radio button) or a check box that's detected on a document page. Use the value of SelectionStatus to determine the status of the selection element.

" + "Block$BlockType": "

The type of text item that's recognized. In operations for text detection, the following types are returned:

  • PAGE - Contains a list of the LINE Block objects that are detected on a document page.

  • WORD - A word detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.

  • LINE - A string of tab-delimited, contiguous words that are detected on a document page.

In text analysis operations, the following types are returned:

  • PAGE - Contains a list of child Block objects that are detected on a document page.

  • KEY_VALUE_SET - Stores the KEY and VALUE Block objects for linked text that's detected on a document page. Use the EntityType field to determine if a KEY_VALUE_SET object is a KEY Block object or a VALUE Block object.

  • WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.

  • LINE - A string of tab-delimited, contiguous words that are detected on a document page.

  • TABLE - A table that's detected on a document page. A table is grid-based information with two or more rows or columns, with a cell span of one row and one column each.

  • CELL - A cell within a detected table. The cell is the parent of the block that contains the text in the cell.

  • SELECTION_ELEMENT - A selection element such as an option button (radio button) or a check box that's detected on a document page. Use the value of SelectionStatus to determine the status of the selection element.

  • QUERY - A question asked during the call of AnalyzeDocument. Contains an alias and an ID that attachs it to its answer.

  • QUERY_RESULT - A response to a question asked during the call of analyze document. Comes with an alias and ID for ease of locating in a response. Also contains location and confidence score.

" } }, "BoundingBox": { @@ -121,7 +121,7 @@ "Document": { "base": "

The input document, either as bytes or as an S3 object.

You pass image bytes to an Amazon Textract API operation by using the Bytes property. For example, you would use the Bytes property to pass a document loaded from a local file system. Image bytes passed by using the Bytes property must be base64 encoded. Your code might not need to encode document file bytes if you're using an AWS SDK to call Amazon Textract API operations.

You pass images stored in an S3 bucket to an Amazon Textract API operation by using the S3Object property. Documents stored in an S3 bucket don't need to be base64 encoded.

The AWS Region for the S3 bucket that contains the S3 object must match the AWS Region that you use for Amazon Textract operations.

If you use the AWS CLI to call Amazon Textract operations, passing image bytes using the Bytes property isn't supported. You must first upload the document to an Amazon S3 bucket, and then call the operation using the S3Object property.

For Amazon Textract to process an S3 object, the user must have permission to access the S3 object.

", "refs": { - "AnalyzeDocumentRequest$Document": "

The input document as base64-encoded bytes or an Amazon S3 object. If you use the AWS CLI to call Amazon Textract operations, you can't pass image bytes. The document must be an image in JPEG or PNG format.

If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes that are passed using the Bytes field.

", + "AnalyzeDocumentRequest$Document": "

The input document as base64-encoded bytes or an Amazon S3 object. If you use the AWS CLI to call Amazon Textract operations, you can't pass image bytes. The document must be an image in JPEG, PNG, PDF, or TIFF format.

If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes that are passed using the Bytes field.

", "AnalyzeExpenseRequest$Document": null, "DetectDocumentTextRequest$Document": "

The input document as base64-encoded bytes or an Amazon S3 object. If you use the AWS CLI to call Amazon Textract operations, you can't pass image bytes. The document must be an image in JPEG or PNG format.

If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes that are passed using the Bytes field.

", "DocumentPages$member": null @@ -545,6 +545,45 @@ "refs": { } }, + "Queries": { + "base": null, + "refs": { + "QueriesConfig$Queries": "

" + } + }, + "QueriesConfig": { + "base": "

", + "refs": { + "AnalyzeDocumentRequest$QueriesConfig": "

Contains Queries and the alias for those Queries, as determined by the input.

", + "StartDocumentAnalysisRequest$QueriesConfig": null + } + }, + "Query": { + "base": "

Each query contains the question you want to ask in the Text and the alias you want to associate.

", + "refs": { + "Block$Query": "

", + "Queries$member": null + } + }, + "QueryInput": { + "base": null, + "refs": { + "Query$Text": "

Question that Amazon Textract will apply to the document. An example would be \"What is the customer's SSN?\"

", + "Query$Alias": "

Alias attached to the query, for ease of location.

" + } + }, + "QueryPage": { + "base": null, + "refs": { + "QueryPages$member": null + } + }, + "QueryPages": { + "base": null, + "refs": { + "Query$Pages": "

List of pages associated with the query. The following is a list of rules for using this parameter.

  • If a page is not specified, it is set to [\"1\"] by default.

  • The following characters are allowed in the parameter's string: 0 1 2 3 4 5 6 7 8 9 - *. No whitespace is allowed.

  • When using * to indicate all pages, it must be the only element in the string.

  • You can use page intervals, such as [“1-3”, “1-1”, “4-*”]. Where * indicates last page of document.

  • Specified pages must be greater than 0 and less than or equal to the number of pages in the document.

" + } + }, "Relationship": { "base": "

Information about how blocks are related to each other. A Block object contains 0 or more Relation objects in a list, Relationships. For more information, see Block.

The Type element provides the type of the relationship for all blocks in the IDs array.

", "refs": { @@ -693,7 +732,7 @@ } }, "UnsupportedDocumentException": { - "base": "

The format of the input document isn't supported. Documents for synchronous operations can be in PNG or JPEG format only. Documents for asynchronous operations can be in PDF format.

", + "base": "

The format of the input document isn't supported. Documents for operations can be in PNG, JPEG, PDF, or TIFF format.

", "refs": { } }, diff --git a/apis/transfer/2018-11-05/docs-2.json b/apis/transfer/2018-11-05/docs-2.json index 77fa6ce46d0..d311b254f88 100644 --- a/apis/transfer/2018-11-05/docs-2.json +++ b/apis/transfer/2018-11-05/docs-2.json @@ -439,7 +439,7 @@ } }, "HomeDirectoryMapEntry": { - "base": "

Represents an object that contains entries and targets for HomeDirectoryMappings.

The following is an Entry and Target pair example for chroot.

[ { \"Entry:\": \"/\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

", + "base": "

Represents an object that contains entries and targets for HomeDirectoryMappings.

The following is an Entry and Target pair example for chroot.

[ { \"Entry\": \"/\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

", "refs": { "HomeDirectoryMappings$member": null } @@ -447,12 +447,12 @@ "HomeDirectoryMappings": { "base": null, "refs": { - "CreateAccessRequest$HomeDirectoryMappings": "

Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the Entry and Target pair, where Entry shows how the path is made visible and Target is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Amazon Web Services Identity and Access Management (IAM) role provides access to paths in Target. This value can only be set when HomeDirectoryType is set to LOGICAL.

The following is an Entry and Target pair example.

[ { \"Entry\": \"/directory1\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

In most cases, you can use this value instead of the session policy to lock down your user to the designated home directory (\"chroot\"). To do this, you can set Entry to / and set Target to the HomeDirectory parameter value.

The following is an Entry and Target pair example for chroot.

[ { \"Entry:\": \"/\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

", - "CreateUserRequest$HomeDirectoryMappings": "

Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the Entry and Target pair, where Entry shows how the path is made visible and Target is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Amazon Web Services Identity and Access Management (IAM) role provides access to paths in Target. This value can only be set when HomeDirectoryType is set to LOGICAL.

The following is an Entry and Target pair example.

[ { \"Entry\": \"/directory1\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

In most cases, you can use this value instead of the session policy to lock your user down to the designated home directory (\"chroot\"). To do this, you can set Entry to / and set Target to the HomeDirectory parameter value.

The following is an Entry and Target pair example for chroot.

[ { \"Entry:\": \"/\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

", + "CreateAccessRequest$HomeDirectoryMappings": "

Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the Entry and Target pair, where Entry shows how the path is made visible and Target is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Amazon Web Services Identity and Access Management (IAM) role provides access to paths in Target. This value can only be set when HomeDirectoryType is set to LOGICAL.

The following is an Entry and Target pair example.

[ { \"Entry\": \"/directory1\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

In most cases, you can use this value instead of the session policy to lock down your user to the designated home directory (\"chroot\"). To do this, you can set Entry to / and set Target to the HomeDirectory parameter value.

The following is an Entry and Target pair example for chroot.

[ { \"Entry\": \"/\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

", + "CreateUserRequest$HomeDirectoryMappings": "

Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the Entry and Target pair, where Entry shows how the path is made visible and Target is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Amazon Web Services Identity and Access Management (IAM) role provides access to paths in Target. This value can only be set when HomeDirectoryType is set to LOGICAL.

The following is an Entry and Target pair example.

[ { \"Entry\": \"/directory1\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

In most cases, you can use this value instead of the session policy to lock your user down to the designated home directory (\"chroot\"). To do this, you can set Entry to / and set Target to the HomeDirectory parameter value.

The following is an Entry and Target pair example for chroot.

[ { \"Entry\": \"/\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

", "DescribedAccess$HomeDirectoryMappings": "

Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the Entry and Target pair, where Entry shows how the path is made visible and Target is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Amazon Web Services Identity and Access Management (IAM) role provides access to paths in Target. This value can only be set when HomeDirectoryType is set to LOGICAL.

In most cases, you can use this value instead of the session policy to lock down the associated access to the designated home directory (\"chroot\"). To do this, you can set Entry to '/' and set Target to the HomeDirectory parameter value.

", "DescribedUser$HomeDirectoryMappings": "

Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the Entry and Target pair, where Entry shows how the path is made visible and Target is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Amazon Web Services Identity and Access Management (IAM) role provides access to paths in Target. This value can only be set when HomeDirectoryType is set to LOGICAL.

In most cases, you can use this value instead of the session policy to lock your user down to the designated home directory (\"chroot\"). To do this, you can set Entry to '/' and set Target to the HomeDirectory parameter value.

", - "UpdateAccessRequest$HomeDirectoryMappings": "

Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the Entry and Target pair, where Entry shows how the path is made visible and Target is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Amazon Web Services Identity and Access Management (IAM) role provides access to paths in Target. This value can only be set when HomeDirectoryType is set to LOGICAL.

The following is an Entry and Target pair example.

[ { \"Entry\": \"/directory1\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

In most cases, you can use this value instead of the session policy to lock down your user to the designated home directory (\"chroot\"). To do this, you can set Entry to / and set Target to the HomeDirectory parameter value.

The following is an Entry and Target pair example for chroot.

[ { \"Entry:\": \"/\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

", - "UpdateUserRequest$HomeDirectoryMappings": "

Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the Entry and Target pair, where Entry shows how the path is made visible and Target is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Amazon Web Services Identity and Access Management (IAM) role provides access to paths in Target. This value can only be set when HomeDirectoryType is set to LOGICAL.

The following is an Entry and Target pair example.

[ { \"Entry\": \"/directory1\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

In most cases, you can use this value instead of the session policy to lock down your user to the designated home directory (\"chroot\"). To do this, you can set Entry to '/' and set Target to the HomeDirectory parameter value.

The following is an Entry and Target pair example for chroot.

[ { \"Entry:\": \"/\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

" + "UpdateAccessRequest$HomeDirectoryMappings": "

Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the Entry and Target pair, where Entry shows how the path is made visible and Target is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Amazon Web Services Identity and Access Management (IAM) role provides access to paths in Target. This value can only be set when HomeDirectoryType is set to LOGICAL.

The following is an Entry and Target pair example.

[ { \"Entry\": \"/directory1\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

In most cases, you can use this value instead of the session policy to lock down your user to the designated home directory (\"chroot\"). To do this, you can set Entry to / and set Target to the HomeDirectory parameter value.

The following is an Entry and Target pair example for chroot.

[ { \"Entry\": \"/\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

", + "UpdateUserRequest$HomeDirectoryMappings": "

Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the Entry and Target pair, where Entry shows how the path is made visible and Target is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Amazon Web Services Identity and Access Management (IAM) role provides access to paths in Target. This value can only be set when HomeDirectoryType is set to LOGICAL.

The following is an Entry and Target pair example.

[ { \"Entry\": \"/directory1\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

In most cases, you can use this value instead of the session policy to lock down your user to the designated home directory (\"chroot\"). To do this, you can set Entry to '/' and set Target to the HomeDirectory parameter value.

The following is an Entry and Target pair example for chroot.

[ { \"Entry\": \"/\", \"Target\": \"/bucket_name/home/mydirectory\" } ]

" } }, "HomeDirectoryType": { @@ -1366,14 +1366,14 @@ "WorkflowStepType": { "base": null, "refs": { - "ExecutionStepResult$StepType": "

One of the available step types.

  • Copy: copy the file to another location

  • Custom: custom step with a lambda target

  • Delete: delete the file

  • Tag: add a tag to the file

", - "WorkflowStep$Type": "

Currently, the following step types are supported.

  • Copy: copy the file to another location

  • Custom: custom step with a lambda target

  • Delete: delete the file

  • Tag: add a tag to the file

" + "ExecutionStepResult$StepType": "

One of the available step types.

  • COPY: copy the file to another location

  • CUSTOM: custom step with a lambda target

  • DELETE: delete the file

  • TAG: add a tag to the file

", + "WorkflowStep$Type": "

Currently, the following step types are supported.

  • COPY: copy the file to another location

  • CUSTOM: custom step with a lambda target

  • DELETE: delete the file

  • TAG: add a tag to the file

" } }, "WorkflowSteps": { "base": null, "refs": { - "CreateWorkflowRequest$Steps": "

Specifies the details for the steps that are in the specified workflow.

The TYPE specifies which of the following actions is being taken for this step.

  • Copy: copy the file to another location

  • Custom: custom step with a lambda target

  • Delete: delete the file

  • Tag: add a tag to the file

Currently, copying and tagging are supported only on S3.

For file location, you specify either the S3 bucket and key, or the EFS filesystem ID and path.

", + "CreateWorkflowRequest$Steps": "

Specifies the details for the steps that are in the specified workflow.

The TYPE specifies which of the following actions is being taken for this step.

  • COPY: copy the file to another location

  • CUSTOM: custom step with a lambda target

  • DELETE: delete the file

  • TAG: add a tag to the file

Currently, copying and tagging are supported only on S3.

For file location, you specify either the S3 bucket and key, or the EFS filesystem ID and path.

", "CreateWorkflowRequest$OnExceptionSteps": "

Specifies the steps (actions) to take if errors are encountered during execution of the workflow.

For custom steps, the lambda function needs to send FAILURE to the call back API to kick off the exception steps. Additionally, if the lambda does not send SUCCESS before it times out, the exception steps are executed.

", "DescribedWorkflow$Steps": "

Specifies the details for the steps that are in the specified workflow.

", "DescribedWorkflow$OnExceptionSteps": "

Specifies the steps (actions) to take if errors are encountered during execution of the workflow.

" diff --git a/apis/worklink/2018-09-25/api-2.json b/apis/worklink/2018-09-25/api-2.json index 6d9c699560a..247cf1fbb30 100644 --- a/apis/worklink/2018-09-25/api-2.json +++ b/apis/worklink/2018-09-25/api-2.json @@ -28,7 +28,9 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ResourceAlreadyExistsException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "AssociateWebsiteAuthorizationProvider":{ "name":"AssociateWebsiteAuthorizationProvider", @@ -45,7 +47,9 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ResourceAlreadyExistsException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "AssociateWebsiteCertificateAuthority":{ "name":"AssociateWebsiteCertificateAuthority", @@ -62,7 +66,9 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ResourceAlreadyExistsException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "CreateFleet":{ "name":"CreateFleet", @@ -79,7 +85,9 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ResourceAlreadyExistsException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "DeleteFleet":{ "name":"DeleteFleet", @@ -95,7 +103,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "DescribeAuditStreamConfiguration":{ "name":"DescribeAuditStreamConfiguration", @@ -111,7 +121,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "DescribeCompanyNetworkConfiguration":{ "name":"DescribeCompanyNetworkConfiguration", @@ -127,7 +139,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "DescribeDevice":{ "name":"DescribeDevice", @@ -143,7 +157,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "DescribeDevicePolicyConfiguration":{ "name":"DescribeDevicePolicyConfiguration", @@ -159,7 +175,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "DescribeDomain":{ "name":"DescribeDomain", @@ -175,7 +193,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "DescribeFleetMetadata":{ "name":"DescribeFleetMetadata", @@ -191,7 +211,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "DescribeIdentityProviderConfiguration":{ "name":"DescribeIdentityProviderConfiguration", @@ -207,7 +229,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "DescribeWebsiteCertificateAuthority":{ "name":"DescribeWebsiteCertificateAuthority", @@ -223,7 +247,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "DisassociateDomain":{ "name":"DisassociateDomain", @@ -239,7 +265,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "DisassociateWebsiteAuthorizationProvider":{ "name":"DisassociateWebsiteAuthorizationProvider", @@ -256,7 +284,9 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ResourceAlreadyExistsException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "DisassociateWebsiteCertificateAuthority":{ "name":"DisassociateWebsiteCertificateAuthority", @@ -272,7 +302,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "ListDevices":{ "name":"ListDevices", @@ -288,7 +320,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "ListDomains":{ "name":"ListDomains", @@ -304,7 +338,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "ListFleets":{ "name":"ListFleets", @@ -319,7 +355,9 @@ {"shape":"InternalServerErrorException"}, {"shape":"InvalidRequestException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "ListTagsForResource":{ "name":"ListTagsForResource", @@ -331,7 +369,9 @@ "output":{"shape":"ListTagsForResourceResponse"}, "errors":[ {"shape":"InvalidRequestException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "ListWebsiteAuthorizationProviders":{ "name":"ListWebsiteAuthorizationProviders", @@ -347,7 +387,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "ListWebsiteCertificateAuthorities":{ "name":"ListWebsiteCertificateAuthorities", @@ -362,7 +404,9 @@ {"shape":"InternalServerErrorException"}, {"shape":"InvalidRequestException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "RestoreDomainAccess":{ "name":"RestoreDomainAccess", @@ -378,7 +422,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "RevokeDomainAccess":{ "name":"RevokeDomainAccess", @@ -394,7 +440,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "SignOutUser":{ "name":"SignOutUser", @@ -410,7 +458,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "TagResource":{ "name":"TagResource", @@ -422,7 +472,9 @@ "output":{"shape":"TagResourceResponse"}, "errors":[ {"shape":"InvalidRequestException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "UntagResource":{ "name":"UntagResource", @@ -434,7 +486,9 @@ "output":{"shape":"UntagResourceResponse"}, "errors":[ {"shape":"InvalidRequestException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "UpdateAuditStreamConfiguration":{ "name":"UpdateAuditStreamConfiguration", @@ -450,7 +504,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "UpdateCompanyNetworkConfiguration":{ "name":"UpdateCompanyNetworkConfiguration", @@ -466,7 +522,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "UpdateDevicePolicyConfiguration":{ "name":"UpdateDevicePolicyConfiguration", @@ -482,7 +540,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "UpdateDomainMetadata":{ "name":"UpdateDomainMetadata", @@ -498,7 +558,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "UpdateFleetMetadata":{ "name":"UpdateFleetMetadata", @@ -514,7 +576,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." }, "UpdateIdentityProviderConfiguration":{ "name":"UpdateIdentityProviderConfiguration", @@ -530,7 +594,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"TooManyRequestsException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK." } }, "shapes":{ diff --git a/gems/aws-partitions/CHANGELOG.md b/gems/aws-partitions/CHANGELOG.md index 7f1b98bcedf..fb1a901a95f 100644 --- a/gems/aws-partitions/CHANGELOG.md +++ b/gems/aws-partitions/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.578.0 (2022-04-19) +------------------ + +* Feature - Updated the partitions source data the determines the AWS service regions and endpoints. + 1.577.0 (2022-04-14) ------------------ diff --git a/gems/aws-partitions/VERSION b/gems/aws-partitions/VERSION index 1b5e7d09b63..8e8031afb27 100644 --- a/gems/aws-partitions/VERSION +++ b/gems/aws-partitions/VERSION @@ -1 +1 @@ -1.577.0 +1.578.0 diff --git a/gems/aws-partitions/partitions.json b/gems/aws-partitions/partitions.json index a22fd662719..13cbfa6565e 100644 --- a/gems/aws-partitions/partitions.json +++ b/gems/aws-partitions/partitions.json @@ -6582,6 +6582,16 @@ "us-west-2" : { } } }, + "iottwinmaker" : { + "endpoints" : { + "ap-southeast-1" : { }, + "ap-southeast-2" : { }, + "eu-central-1" : { }, + "eu-west-1" : { }, + "us-east-1" : { }, + "us-west-2" : { } + } + }, "iotwireless" : { "endpoints" : { "ap-northeast-1" : { @@ -8993,10 +9003,22 @@ "ap-northeast-2" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, - "ca-central-1" : { }, + "ca-central-1" : { + "variants" : [ { + "hostname" : "qldb-fips.ca-central-1.amazonaws.com", + "tags" : [ "fips" ] + } ] + }, "eu-central-1" : { }, "eu-west-1" : { }, "eu-west-2" : { }, + "fips-ca-central-1" : { + "credentialScope" : { + "region" : "ca-central-1" + }, + "deprecated" : true, + "hostname" : "qldb-fips.ca-central-1.amazonaws.com" + }, "fips-us-east-1" : { "credentialScope" : { "region" : "us-east-1" diff --git a/gems/aws-sdk-autoscaling/CHANGELOG.md b/gems/aws-sdk-autoscaling/CHANGELOG.md index ac1ac2a8aa3..23baff857cf 100644 --- a/gems/aws-sdk-autoscaling/CHANGELOG.md +++ b/gems/aws-sdk-autoscaling/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.79.0 (2022-04-19) +------------------ + +* Feature - EC2 Auto Scaling now adds default instance warm-up times for all scaling activities, health check replacements, and other replacement events in the Auto Scaling instance lifecycle. + 1.78.0 (2022-02-24) ------------------ diff --git a/gems/aws-sdk-autoscaling/VERSION b/gems/aws-sdk-autoscaling/VERSION index 54227249d1f..b3a8c61e6a8 100644 --- a/gems/aws-sdk-autoscaling/VERSION +++ b/gems/aws-sdk-autoscaling/VERSION @@ -1 +1 @@ -1.78.0 +1.79.0 diff --git a/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling.rb b/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling.rb index 270864c61dd..d2e013f47df 100644 --- a/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling.rb +++ b/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling.rb @@ -59,6 +59,6 @@ # @!group service module Aws::AutoScaling - GEM_VERSION = '1.78.0' + GEM_VERSION = '1.79.0' end diff --git a/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/auto_scaling_group.rb b/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/auto_scaling_group.rb index 919713a791f..606fda2295a 100644 --- a/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/auto_scaling_group.rb +++ b/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/auto_scaling_group.rb @@ -118,9 +118,7 @@ def health_check_type data[:health_check_type] end - # The amount of time, in seconds, that Amazon EC2 Auto Scaling waits - # before checking the health status of an EC2 instance that has come - # into service and marking it unhealthy due to a failed health check. + # The duration of the health check grace period, in seconds. # @return [Integer] def health_check_grace_period data[:health_check_grace_period] @@ -220,23 +218,18 @@ def context # The unit of measurement for the value specified for desired capacity. # Amazon EC2 Auto Scaling supports `DesiredCapacityType` for - # attribute-based instance type selection only. For more information, - # see [Creating an Auto Scaling group using attribute-based instance - # type selection][1] in the *Amazon EC2 Auto Scaling User Guide*. - # - # By default, Amazon EC2 Auto Scaling specifies `units`, which - # translates into number of instances. - # - # Valid values: `units` \| `vcpu` \| `memory-mib` - # - # - # - # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html + # attribute-based instance type selection only. # @return [String] def desired_capacity_type data[:desired_capacity_type] end + # The duration of the default instance warmup, in seconds. + # @return [Integer] + def default_instance_warmup + data[:default_instance_warmup] + end + # @!endgroup # @return [Client] @@ -815,14 +808,16 @@ def enable_metrics_collection(options = {}) # Required if the policy type is `SimpleScaling`. (Not used with any # other policy type.) # @option options [Integer] :cooldown - # The duration of the policy's cooldown period, in seconds. When a - # cooldown period is specified here, it overrides the default cooldown - # period defined for the Auto Scaling group. + # A cooldown period, in seconds, that applies to a specific simple + # scaling policy. When a cooldown period is specified here, it overrides + # the default cooldown. # # Valid only if the policy type is `SimpleScaling`. For more # information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in # the *Amazon EC2 Auto Scaling User Guide*. # + # Default: None + # # # # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html @@ -839,13 +834,22 @@ def enable_metrics_collection(options = {}) # Required if the policy type is `StepScaling`. (Not used with any other # policy type.) # @option options [Integer] :estimated_instance_warmup + # *Not needed if the default instance warmup is defined for the group.* + # # The estimated time, in seconds, until a newly launched instance can - # contribute to the CloudWatch metrics. If not provided, the default is - # to use the value from the default cooldown period for the Auto Scaling - # group. + # contribute to the CloudWatch metrics. This warm-up period applies to + # instances launched due to a specific target tracking or step scaling + # policy. When a warm-up period is specified here, it overrides the + # default instance warmup. # # Valid only if the policy type is `TargetTrackingScaling` or # `StepScaling`. + # + # The default is to use the value for the default instance warmup + # defined for the group. If default instance warmup is null, then + # `EstimatedInstanceWarmup` falls back to the value of default cooldown. + # + # # @option options [Types::TargetTrackingConfiguration] :target_tracking_configuration # A target tracking scaling policy. Provides support for predefined or # custom metrics. @@ -1177,6 +1181,7 @@ def suspend_processes(options = {}) # capacity_rebalance: false, # context: "Context", # desired_capacity_type: "XmlStringMaxLen255", + # default_instance_warmup: 1, # }) # @param [Hash] options ({}) # @option options [String] :launch_configuration_name @@ -1215,10 +1220,10 @@ def suspend_processes(options = {}) # size of the group and less than or equal to the maximum size of the # group. # @option options [Integer] :default_cooldown - # The amount of time, in seconds, after a scaling activity completes - # before another scaling activity can start. The default value is `300`. - # This setting applies when using simple scaling policies, but not when - # using other scaling policies or scheduled scaling. For more + # *Only needed if you use simple scaling policies.* + # + # The amount of time, in seconds, between one scaling activity ending + # and another one starting due to simple scaling policies. For more # information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in # the *Amazon EC2 Auto Scaling User Guide*. # @@ -1235,22 +1240,25 @@ def suspend_processes(options = {}) # @option options [Integer] :health_check_grace_period # The amount of time, in seconds, that Amazon EC2 Auto Scaling waits # before checking the health status of an EC2 instance that has come - # into service and marking it unhealthy due to a failed health check. - # The default value is `0`. For more information, see [Health check - # grace period][1] in the *Amazon EC2 Auto Scaling User Guide*. - # - # Required if you are adding an `ELB` health check. + # into service and marking it unhealthy due to a failed Elastic Load + # Balancing or custom health check. This is useful if your instances do + # not immediately pass these health checks after they enter the + # `InService` state. For more information, see [Health check grace + # period][1] in the *Amazon EC2 Auto Scaling User Guide*. # # # # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period # @option options [String] :placement_group # The name of an existing placement group into which to launch your - # instances, if any. A placement group is a logical grouping of - # instances within a single Availability Zone. You cannot specify - # multiple Availability Zones and a placement group. For more - # information, see [Placement Groups][1] in the *Amazon EC2 User Guide - # for Linux Instances*. + # instances. For more information, see [Placement groups][1] in the + # *Amazon EC2 User Guide for Linux Instances*. + # + # A *cluster* placement group is a logical grouping of instances within + # a single Availability Zone. You cannot specify multiple Availability + # Zones and a cluster placement group. + # + # # # # @@ -1325,6 +1333,29 @@ def suspend_processes(options = {}) # # # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html + # @option options [Integer] :default_instance_warmup + # The amount of time, in seconds, until a newly launched instance can + # contribute to the Amazon CloudWatch metrics. This delay lets an + # instance finish initializing before Amazon EC2 Auto Scaling aggregates + # instance metrics, resulting in more reliable usage data. Set this + # value equal to the amount of time that it takes for resource + # consumption to become stable after an instance reaches the `InService` + # state. For more information, see [Set the default instance warmup for + # an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling User Guide*. + # + # To manage your warm-up settings at the group level, we recommend that + # you set the default instance warmup, *even if its value is set to 0 + # seconds*. This also optimizes the performance of scaling policies that + # scale continuously, such as target tracking and step scaling policies. + # + # If you need to remove a value that you previously set, include the + # property but specify `-1` for the value. However, we strongly + # recommend keeping the default instance warmup enabled by specifying a + # minimum value of `0`. + # + # + # + # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-default-instance-warmup.html # @return [AutoScalingGroup] def update(options = {}) options = options.merge(auto_scaling_group_name: @name) diff --git a/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/client.rb b/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/client.rb index 6ffef8646d3..49891f0d169 100644 --- a/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/client.rb +++ b/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/client.rb @@ -872,13 +872,15 @@ def complete_lifecycle_action(params = {}, options = {}) # group. # # @option params [Integer] :default_cooldown - # The amount of time, in seconds, after a scaling activity completes - # before another scaling activity can start. The default value is `300`. - # This setting applies when using simple scaling policies, but not when - # using other scaling policies or scheduled scaling. For more + # *Only needed if you use simple scaling policies.* + # + # The amount of time, in seconds, between one scaling activity ending + # and another one starting due to simple scaling policies. For more # information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in # the *Amazon EC2 Auto Scaling User Guide*. # + # Default: `300` seconds + # # # # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html @@ -921,13 +923,17 @@ def complete_lifecycle_action(params = {}, options = {}) # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html # # @option params [Integer] :health_check_grace_period + # ** + # # The amount of time, in seconds, that Amazon EC2 Auto Scaling waits # before checking the health status of an EC2 instance that has come - # into service and marking it unhealthy due to a failed health check. - # The default value is `0`. For more information, see [Health check - # grace period][1] in the *Amazon EC2 Auto Scaling User Guide*. + # into service and marking it unhealthy due to a failed Elastic Load + # Balancing or custom health check. This is useful if your instances do + # not immediately pass these health checks after they enter the + # `InService` state. For more information, see [Health check grace + # period][1] in the *Amazon EC2 Auto Scaling User Guide*. # - # Required if you are adding an `ELB` health check. + # Default: `0` seconds # # # @@ -935,11 +941,14 @@ def complete_lifecycle_action(params = {}, options = {}) # # @option params [String] :placement_group # The name of an existing placement group into which to launch your - # instances, if any. A placement group is a logical grouping of - # instances within a single Availability Zone. You cannot specify - # multiple Availability Zones and a placement group. For more - # information, see [Placement Groups][1] in the *Amazon EC2 User Guide - # for Linux Instances*. + # instances. For more information, see [Placement groups][1] in the + # *Amazon EC2 User Guide for Linux Instances*. + # + # A *cluster* placement group is a logical grouping of instances within + # a single Availability Zone. You cannot specify multiple Availability + # Zones and a cluster placement group. + # + # # # # @@ -1051,6 +1060,32 @@ def complete_lifecycle_action(params = {}, options = {}) # # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html # + # @option params [Integer] :default_instance_warmup + # The amount of time, in seconds, until a newly launched instance can + # contribute to the Amazon CloudWatch metrics. This delay lets an + # instance finish initializing before Amazon EC2 Auto Scaling aggregates + # instance metrics, resulting in more reliable usage data. Set this + # value equal to the amount of time that it takes for resource + # consumption to become stable after an instance reaches the `InService` + # state. For more information, see [Set the default instance warmup for + # an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling User Guide*. + # + # To manage your warm-up settings at the group level, we recommend that + # you set the default instance warmup, *even if its value is set to 0 + # seconds*. This also optimizes the performance of scaling policies that + # scale continuously, such as target tracking and step scaling policies. + # + # If you need to remove a value that you previously set, include the + # property but specify `-1` for the value. However, we strongly + # recommend keeping the default instance warmup enabled by specifying a + # minimum value of `0`. + # + # Default: None + # + # + # + # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-default-instance-warmup.html + # # @return [Struct] Returns an empty {Seahorse::Client::Response response}. # # @@ -1255,6 +1290,7 @@ def complete_lifecycle_action(params = {}, options = {}) # max_instance_lifetime: 1, # context: "Context", # desired_capacity_type: "XmlStringMaxLen255", + # default_instance_warmup: 1, # }) # # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup AWS API Documentation @@ -1322,25 +1358,24 @@ def create_auto_scaling_group(params = {}, options = {}) # [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html # # @option params [String] :classic_link_vpc_id + # *EC2-Classic retires on August 15, 2022. This parameter is not + # supported after that date.* + # # The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances # to. For more information, see [ClassicLink][1] in the *Amazon EC2 User - # Guide for Linux Instances* and [Linking EC2-Classic instances to a - # VPC][2] in the *Amazon EC2 Auto Scaling User Guide*. - # - # This parameter can only be used if you are launching EC2-Classic - # instances. + # Guide for Linux Instances*. # # # # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html - # [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink # # @option params [Array] :classic_link_vpc_security_groups + # *EC2-Classic retires on August 15, 2022. This parameter is not + # supported after that date.* + # # The IDs of one or more security groups for the specified # ClassicLink-enabled VPC. For more information, see [ClassicLink][1] in - # the *Amazon EC2 User Guide for Linux Instances* and [Linking - # EC2-Classic instances to a VPC][2] in the *Amazon EC2 Auto Scaling - # User Guide*. + # the *Amazon EC2 User Guide for Linux Instances*. # # If you specify the `ClassicLinkVPCId` parameter, you must specify this # parameter. @@ -1348,7 +1383,6 @@ def create_auto_scaling_group(params = {}, options = {}) # # # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html - # [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink # # @option params [String] :user_data # The user data to make available to the launched EC2 instances. For @@ -2328,6 +2362,7 @@ def describe_adjustment_types(params = {}, options = {}) # resp.auto_scaling_groups[0].warm_pool_size #=> Integer # resp.auto_scaling_groups[0].context #=> String # resp.auto_scaling_groups[0].desired_capacity_type #=> String + # resp.auto_scaling_groups[0].default_instance_warmup #=> Integer # resp.next_token #=> String # # @@ -4890,14 +4925,16 @@ def put_notification_configuration(params = {}, options = {}) # other policy type.) # # @option params [Integer] :cooldown - # The duration of the policy's cooldown period, in seconds. When a - # cooldown period is specified here, it overrides the default cooldown - # period defined for the Auto Scaling group. + # A cooldown period, in seconds, that applies to a specific simple + # scaling policy. When a cooldown period is specified here, it overrides + # the default cooldown. # # Valid only if the policy type is `SimpleScaling`. For more # information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in # the *Amazon EC2 Auto Scaling User Guide*. # + # Default: None + # # # # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html @@ -4917,14 +4954,23 @@ def put_notification_configuration(params = {}, options = {}) # policy type.) # # @option params [Integer] :estimated_instance_warmup + # *Not needed if the default instance warmup is defined for the group.* + # # The estimated time, in seconds, until a newly launched instance can - # contribute to the CloudWatch metrics. If not provided, the default is - # to use the value from the default cooldown period for the Auto Scaling - # group. + # contribute to the CloudWatch metrics. This warm-up period applies to + # instances launched due to a specific target tracking or step scaling + # policy. When a warm-up period is specified here, it overrides the + # default instance warmup. # # Valid only if the policy type is `TargetTrackingScaling` or # `StepScaling`. # + # The default is to use the value for the default instance warmup + # defined for the group. If default instance warmup is null, then + # `EstimatedInstanceWarmup` falls back to the value of default cooldown. + # + # + # # @option params [Types::TargetTrackingConfiguration] :target_tracking_configuration # A target tracking scaling policy. Provides support for predefined or # custom metrics. @@ -6167,10 +6213,10 @@ def terminate_instance_in_auto_scaling_group(params = {}, options = {}) # group. # # @option params [Integer] :default_cooldown - # The amount of time, in seconds, after a scaling activity completes - # before another scaling activity can start. The default value is `300`. - # This setting applies when using simple scaling policies, but not when - # using other scaling policies or scheduled scaling. For more + # *Only needed if you use simple scaling policies.* + # + # The amount of time, in seconds, between one scaling activity ending + # and another one starting due to simple scaling policies. For more # information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in # the *Amazon EC2 Auto Scaling User Guide*. # @@ -6190,11 +6236,11 @@ def terminate_instance_in_auto_scaling_group(params = {}, options = {}) # @option params [Integer] :health_check_grace_period # The amount of time, in seconds, that Amazon EC2 Auto Scaling waits # before checking the health status of an EC2 instance that has come - # into service and marking it unhealthy due to a failed health check. - # The default value is `0`. For more information, see [Health check - # grace period][1] in the *Amazon EC2 Auto Scaling User Guide*. - # - # Required if you are adding an `ELB` health check. + # into service and marking it unhealthy due to a failed Elastic Load + # Balancing or custom health check. This is useful if your instances do + # not immediately pass these health checks after they enter the + # `InService` state. For more information, see [Health check grace + # period][1] in the *Amazon EC2 Auto Scaling User Guide*. # # # @@ -6202,11 +6248,14 @@ def terminate_instance_in_auto_scaling_group(params = {}, options = {}) # # @option params [String] :placement_group # The name of an existing placement group into which to launch your - # instances, if any. A placement group is a logical grouping of - # instances within a single Availability Zone. You cannot specify - # multiple Availability Zones and a placement group. For more - # information, see [Placement Groups][1] in the *Amazon EC2 User Guide - # for Linux Instances*. + # instances. For more information, see [Placement groups][1] in the + # *Amazon EC2 User Guide for Linux Instances*. + # + # A *cluster* placement group is a logical grouping of instances within + # a single Availability Zone. You cannot specify multiple Availability + # Zones and a cluster placement group. + # + # # # # @@ -6290,6 +6339,30 @@ def terminate_instance_in_auto_scaling_group(params = {}, options = {}) # # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html # + # @option params [Integer] :default_instance_warmup + # The amount of time, in seconds, until a newly launched instance can + # contribute to the Amazon CloudWatch metrics. This delay lets an + # instance finish initializing before Amazon EC2 Auto Scaling aggregates + # instance metrics, resulting in more reliable usage data. Set this + # value equal to the amount of time that it takes for resource + # consumption to become stable after an instance reaches the `InService` + # state. For more information, see [Set the default instance warmup for + # an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling User Guide*. + # + # To manage your warm-up settings at the group level, we recommend that + # you set the default instance warmup, *even if its value is set to 0 + # seconds*. This also optimizes the performance of scaling policies that + # scale continuously, such as target tracking and step scaling policies. + # + # If you need to remove a value that you previously set, include the + # property but specify `-1` for the value. However, we strongly + # recommend keeping the default instance warmup enabled by specifying a + # minimum value of `0`. + # + # + # + # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-default-instance-warmup.html + # # @return [Struct] Returns an empty {Seahorse::Client::Response response}. # # @@ -6409,6 +6482,7 @@ def terminate_instance_in_auto_scaling_group(params = {}, options = {}) # capacity_rebalance: false, # context: "Context", # desired_capacity_type: "XmlStringMaxLen255", + # default_instance_warmup: 1, # }) # # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup AWS API Documentation @@ -6433,7 +6507,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-autoscaling' - context[:gem_version] = '1.78.0' + context[:gem_version] = '1.79.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/client_api.rb b/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/client_api.rb index c4d9745868d..f7c51c7a4aa 100644 --- a/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/client_api.rb +++ b/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/client_api.rb @@ -86,6 +86,7 @@ module ClientApi CreateLaunchConfigurationType = Shapes::StructureShape.new(name: 'CreateLaunchConfigurationType') CreateOrUpdateTagsType = Shapes::StructureShape.new(name: 'CreateOrUpdateTagsType') CustomizedMetricSpecification = Shapes::StructureShape.new(name: 'CustomizedMetricSpecification') + DefaultInstanceWarmup = Shapes::IntegerShape.new(name: 'DefaultInstanceWarmup') DeleteAutoScalingGroupType = Shapes::StructureShape.new(name: 'DeleteAutoScalingGroupType') DeleteLifecycleHookAnswer = Shapes::StructureShape.new(name: 'DeleteLifecycleHookAnswer') DeleteLifecycleHookType = Shapes::StructureShape.new(name: 'DeleteLifecycleHookType') @@ -467,6 +468,7 @@ module ClientApi AutoScalingGroup.add_member(:warm_pool_size, Shapes::ShapeRef.new(shape: WarmPoolSize, location_name: "WarmPoolSize")) AutoScalingGroup.add_member(:context, Shapes::ShapeRef.new(shape: Context, location_name: "Context")) AutoScalingGroup.add_member(:desired_capacity_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "DesiredCapacityType")) + AutoScalingGroup.add_member(:default_instance_warmup, Shapes::ShapeRef.new(shape: DefaultInstanceWarmup, location_name: "DefaultInstanceWarmup")) AutoScalingGroup.struct_class = Types::AutoScalingGroup AutoScalingGroupNames.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255) @@ -581,6 +583,7 @@ module ClientApi CreateAutoScalingGroupType.add_member(:max_instance_lifetime, Shapes::ShapeRef.new(shape: MaxInstanceLifetime, location_name: "MaxInstanceLifetime")) CreateAutoScalingGroupType.add_member(:context, Shapes::ShapeRef.new(shape: Context, location_name: "Context")) CreateAutoScalingGroupType.add_member(:desired_capacity_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "DesiredCapacityType")) + CreateAutoScalingGroupType.add_member(:default_instance_warmup, Shapes::ShapeRef.new(shape: DefaultInstanceWarmup, location_name: "DefaultInstanceWarmup")) CreateAutoScalingGroupType.struct_class = Types::CreateAutoScalingGroupType CreateLaunchConfigurationType.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "LaunchConfigurationName")) @@ -1418,6 +1421,7 @@ module ClientApi UpdateAutoScalingGroupType.add_member(:capacity_rebalance, Shapes::ShapeRef.new(shape: CapacityRebalanceEnabled, location_name: "CapacityRebalance")) UpdateAutoScalingGroupType.add_member(:context, Shapes::ShapeRef.new(shape: Context, location_name: "Context")) UpdateAutoScalingGroupType.add_member(:desired_capacity_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "DesiredCapacityType")) + UpdateAutoScalingGroupType.add_member(:default_instance_warmup, Shapes::ShapeRef.new(shape: DefaultInstanceWarmup, location_name: "DefaultInstanceWarmup")) UpdateAutoScalingGroupType.struct_class = Types::UpdateAutoScalingGroupType VCpuCountRequest.add_member(:min, Shapes::ShapeRef.new(shape: NullablePositiveInteger, required: true, location_name: "Min")) diff --git a/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/launch_configuration.rb b/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/launch_configuration.rb index c9332d85697..d81fbf1181b 100644 --- a/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/launch_configuration.rb +++ b/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/launch_configuration.rb @@ -78,31 +78,21 @@ def security_groups data[:security_groups] end - # The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances - # to. For more information, see [ClassicLink][1] in the *Amazon EC2 User - # Guide for Linux Instances* and [Linking EC2-Classic instances to a - # VPC][2] in the *Amazon EC2 Auto Scaling User Guide*. - # - # + # *EC2-Classic retires on August 15, 2022. This parameter is not + # supported after that date.* # - # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html - # [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink + # The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances + # to. # @return [String] def classic_link_vpc_id data[:classic_link_vpc_id] end + # *EC2-Classic retires on August 15, 2022. This parameter is not + # supported after that date.* + # # The IDs of one or more security groups for the VPC specified in # `ClassicLinkVPCId`. - # - # For more information, see [ClassicLink][1] in the *Amazon EC2 User - # Guide for Linux Instances* and [Linking EC2-Classic instances to a - # VPC][2] in the *Amazon EC2 Auto Scaling User Guide*. - # - # - # - # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html - # [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink # @return [Array] def classic_link_vpc_security_groups data[:classic_link_vpc_security_groups] diff --git a/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/lifecycle_hook.rb b/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/lifecycle_hook.rb index 7def2dec22e..3e0d5282121 100644 --- a/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/lifecycle_hook.rb +++ b/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/lifecycle_hook.rb @@ -87,10 +87,9 @@ def heartbeat_timeout data[:heartbeat_timeout] end - # The maximum time, in seconds, that an instance can remain in a - # `Pending:Wait` or `Terminating:Wait` state. The maximum is 172800 - # seconds (48 hours) or 100 times `HeartbeatTimeout`, whichever is - # smaller. + # The maximum time, in seconds, that an instance can remain in a wait + # state. The maximum is 172800 seconds (48 hours) or 100 times + # `HeartbeatTimeout`, whichever is smaller. # @return [Integer] def global_timeout data[:global_timeout] diff --git a/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/resource.rb b/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/resource.rb index 7d0b790e70b..fd0c3ce9736 100644 --- a/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/resource.rb +++ b/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/resource.rb @@ -159,6 +159,7 @@ def client # max_instance_lifetime: 1, # context: "Context", # desired_capacity_type: "XmlStringMaxLen255", + # default_instance_warmup: 1, # }) # @param [Hash] options ({}) # @option options [required, String] :auto_scaling_group_name @@ -232,13 +233,15 @@ def client # specify a desired capacity, the default is the minimum size of the # group. # @option options [Integer] :default_cooldown - # The amount of time, in seconds, after a scaling activity completes - # before another scaling activity can start. The default value is `300`. - # This setting applies when using simple scaling policies, but not when - # using other scaling policies or scheduled scaling. For more + # *Only needed if you use simple scaling policies.* + # + # The amount of time, in seconds, between one scaling activity ending + # and another one starting due to simple scaling policies. For more # information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in # the *Amazon EC2 Auto Scaling User Guide*. # + # Default: `300` seconds + # # # # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html @@ -276,24 +279,31 @@ def client # # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html # @option options [Integer] :health_check_grace_period + # ** + # # The amount of time, in seconds, that Amazon EC2 Auto Scaling waits # before checking the health status of an EC2 instance that has come - # into service and marking it unhealthy due to a failed health check. - # The default value is `0`. For more information, see [Health check - # grace period][1] in the *Amazon EC2 Auto Scaling User Guide*. + # into service and marking it unhealthy due to a failed Elastic Load + # Balancing or custom health check. This is useful if your instances do + # not immediately pass these health checks after they enter the + # `InService` state. For more information, see [Health check grace + # period][1] in the *Amazon EC2 Auto Scaling User Guide*. # - # Required if you are adding an `ELB` health check. + # Default: `0` seconds # # # # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period # @option options [String] :placement_group # The name of an existing placement group into which to launch your - # instances, if any. A placement group is a logical grouping of - # instances within a single Availability Zone. You cannot specify - # multiple Availability Zones and a placement group. For more - # information, see [Placement Groups][1] in the *Amazon EC2 User Guide - # for Linux Instances*. + # instances. For more information, see [Placement groups][1] in the + # *Amazon EC2 User Guide for Linux Instances*. + # + # A *cluster* placement group is a logical grouping of instances within + # a single Availability Zone. You cannot specify multiple Availability + # Zones and a cluster placement group. + # + # # # # @@ -394,6 +404,31 @@ def client # # # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html + # @option options [Integer] :default_instance_warmup + # The amount of time, in seconds, until a newly launched instance can + # contribute to the Amazon CloudWatch metrics. This delay lets an + # instance finish initializing before Amazon EC2 Auto Scaling aggregates + # instance metrics, resulting in more reliable usage data. Set this + # value equal to the amount of time that it takes for resource + # consumption to become stable after an instance reaches the `InService` + # state. For more information, see [Set the default instance warmup for + # an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling User Guide*. + # + # To manage your warm-up settings at the group level, we recommend that + # you set the default instance warmup, *even if its value is set to 0 + # seconds*. This also optimizes the performance of scaling policies that + # scale continuously, such as target tracking and step scaling policies. + # + # If you need to remove a value that you previously set, include the + # property but specify `-1` for the value. However, we strongly + # recommend keeping the default instance warmup enabled by specifying a + # minimum value of `0`. + # + # Default: None + # + # + # + # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-default-instance-warmup.html # @return [AutoScalingGroup] def create_group(options = {}) @client.create_auto_scaling_group(options) @@ -485,24 +520,23 @@ def create_group(options = {}) # [1]: https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html # [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html # @option options [String] :classic_link_vpc_id + # *EC2-Classic retires on August 15, 2022. This parameter is not + # supported after that date.* + # # The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances # to. For more information, see [ClassicLink][1] in the *Amazon EC2 User - # Guide for Linux Instances* and [Linking EC2-Classic instances to a - # VPC][2] in the *Amazon EC2 Auto Scaling User Guide*. - # - # This parameter can only be used if you are launching EC2-Classic - # instances. + # Guide for Linux Instances*. # # # # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html - # [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink # @option options [Array] :classic_link_vpc_security_groups + # *EC2-Classic retires on August 15, 2022. This parameter is not + # supported after that date.* + # # The IDs of one or more security groups for the specified # ClassicLink-enabled VPC. For more information, see [ClassicLink][1] in - # the *Amazon EC2 User Guide for Linux Instances* and [Linking - # EC2-Classic instances to a VPC][2] in the *Amazon EC2 Auto Scaling - # User Guide*. + # the *Amazon EC2 User Guide for Linux Instances*. # # If you specify the `ClassicLinkVPCId` parameter, you must specify this # parameter. @@ -510,7 +544,6 @@ def create_group(options = {}) # # # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html - # [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink # @option options [String] :user_data # The user data to make available to the launched EC2 instances. For # more information, see [Instance metadata and user data][1] (Linux) and diff --git a/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb b/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb index 1c9ad2e697b..238fd77adf6 100644 --- a/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb +++ b/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb @@ -391,9 +391,7 @@ class AttachLoadBalancersType < Struct.new( # @return [String] # # @!attribute [rw] health_check_grace_period - # The amount of time, in seconds, that Amazon EC2 Auto Scaling waits - # before checking the health status of an EC2 instance that has come - # into service and marking it unhealthy due to a failed health check. + # The duration of the health check grace period, in seconds. # @return [Integer] # # @!attribute [rw] instances @@ -471,20 +469,13 @@ class AttachLoadBalancersType < Struct.new( # @!attribute [rw] desired_capacity_type # The unit of measurement for the value specified for desired # capacity. Amazon EC2 Auto Scaling supports `DesiredCapacityType` for - # attribute-based instance type selection only. For more information, - # see [Creating an Auto Scaling group using attribute-based instance - # type selection][1] in the *Amazon EC2 Auto Scaling User Guide*. - # - # By default, Amazon EC2 Auto Scaling specifies `units`, which - # translates into number of instances. - # - # Valid values: `units` \| `vcpu` \| `memory-mib` - # - # - # - # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html + # attribute-based instance type selection only. # @return [String] # + # @!attribute [rw] default_instance_warmup + # The duration of the default instance warmup, in seconds. + # @return [Integer] + # # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AutoScalingGroup AWS API Documentation # class AutoScalingGroup < Struct.new( @@ -519,7 +510,8 @@ class AutoScalingGroup < Struct.new( :warm_pool_configuration, :warm_pool_size, :context, - :desired_capacity_type) + :desired_capacity_type, + :default_instance_warmup) SENSITIVE = [] include Aws::Structure end @@ -1108,6 +1100,7 @@ class CompleteLifecycleActionType < Struct.new( # max_instance_lifetime: 1, # context: "Context", # desired_capacity_type: "XmlStringMaxLen255", + # default_instance_warmup: 1, # } # # @!attribute [rw] auto_scaling_group_name @@ -1198,13 +1191,15 @@ class CompleteLifecycleActionType < Struct.new( # @return [Integer] # # @!attribute [rw] default_cooldown - # The amount of time, in seconds, after a scaling activity completes - # before another scaling activity can start. The default value is - # `300`. This setting applies when using simple scaling policies, but - # not when using other scaling policies or scheduled scaling. For more + # *Only needed if you use simple scaling policies.* + # + # The amount of time, in seconds, between one scaling activity ending + # and another one starting due to simple scaling policies. For more # information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] # in the *Amazon EC2 Auto Scaling User Guide*. # + # Default: `300` seconds + # # # # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html @@ -1253,13 +1248,17 @@ class CompleteLifecycleActionType < Struct.new( # @return [String] # # @!attribute [rw] health_check_grace_period + # ** + # # The amount of time, in seconds, that Amazon EC2 Auto Scaling waits # before checking the health status of an EC2 instance that has come - # into service and marking it unhealthy due to a failed health check. - # The default value is `0`. For more information, see [Health check - # grace period][1] in the *Amazon EC2 Auto Scaling User Guide*. + # into service and marking it unhealthy due to a failed Elastic Load + # Balancing or custom health check. This is useful if your instances + # do not immediately pass these health checks after they enter the + # `InService` state. For more information, see [Health check grace + # period][1] in the *Amazon EC2 Auto Scaling User Guide*. # - # Required if you are adding an `ELB` health check. + # Default: `0` seconds # # # @@ -1268,11 +1267,14 @@ class CompleteLifecycleActionType < Struct.new( # # @!attribute [rw] placement_group # The name of an existing placement group into which to launch your - # instances, if any. A placement group is a logical grouping of - # instances within a single Availability Zone. You cannot specify - # multiple Availability Zones and a placement group. For more - # information, see [Placement Groups][1] in the *Amazon EC2 User Guide - # for Linux Instances*. + # instances. For more information, see [Placement groups][1] in the + # *Amazon EC2 User Guide for Linux Instances*. + # + # A *cluster* placement group is a logical grouping of instances + # within a single Availability Zone. You cannot specify multiple + # Availability Zones and a cluster placement group. + # + # # # # @@ -1399,6 +1401,35 @@ class CompleteLifecycleActionType < Struct.new( # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html # @return [String] # + # @!attribute [rw] default_instance_warmup + # The amount of time, in seconds, until a newly launched instance can + # contribute to the Amazon CloudWatch metrics. This delay lets an + # instance finish initializing before Amazon EC2 Auto Scaling + # aggregates instance metrics, resulting in more reliable usage data. + # Set this value equal to the amount of time that it takes for + # resource consumption to become stable after an instance reaches the + # `InService` state. For more information, see [Set the default + # instance warmup for an Auto Scaling group][1] in the *Amazon EC2 + # Auto Scaling User Guide*. + # + # To manage your warm-up settings at the group level, we recommend + # that you set the default instance warmup, *even if its value is set + # to 0 seconds*. This also optimizes the performance of scaling + # policies that scale continuously, such as target tracking and step + # scaling policies. + # + # If you need to remove a value that you previously set, include the + # property but specify `-1` for the value. However, we strongly + # recommend keeping the default instance warmup enabled by specifying + # a minimum value of `0`. + # + # Default: None + # + # + # + # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-default-instance-warmup.html + # @return [Integer] + # # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroupType AWS API Documentation # class CreateAutoScalingGroupType < Struct.new( @@ -1426,7 +1457,8 @@ class CreateAutoScalingGroupType < Struct.new( :service_linked_role_arn, :max_instance_lifetime, :context, - :desired_capacity_type) + :desired_capacity_type, + :default_instance_warmup) SENSITIVE = [] include Aws::Structure end @@ -1522,26 +1554,25 @@ class CreateAutoScalingGroupType < Struct.new( # @return [Array] # # @!attribute [rw] classic_link_vpc_id + # *EC2-Classic retires on August 15, 2022. This parameter is not + # supported after that date.* + # # The ID of a ClassicLink-enabled VPC to link your EC2-Classic # instances to. For more information, see [ClassicLink][1] in the - # *Amazon EC2 User Guide for Linux Instances* and [Linking EC2-Classic - # instances to a VPC][2] in the *Amazon EC2 Auto Scaling User Guide*. - # - # This parameter can only be used if you are launching EC2-Classic - # instances. + # *Amazon EC2 User Guide for Linux Instances*. # # # # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html - # [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink # @return [String] # # @!attribute [rw] classic_link_vpc_security_groups + # *EC2-Classic retires on August 15, 2022. This parameter is not + # supported after that date.* + # # The IDs of one or more security groups for the specified # ClassicLink-enabled VPC. For more information, see [ClassicLink][1] - # in the *Amazon EC2 User Guide for Linux Instances* and [Linking - # EC2-Classic instances to a VPC][2] in the *Amazon EC2 Auto Scaling - # User Guide*. + # in the *Amazon EC2 User Guide for Linux Instances*. # # If you specify the `ClassicLinkVPCId` parameter, you must specify # this parameter. @@ -1549,7 +1580,6 @@ class CreateAutoScalingGroupType < Struct.new( # # # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html - # [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink # @return [Array] # # @!attribute [rw] user_data @@ -4488,29 +4518,19 @@ class InvalidNextToken < Struct.new( # @return [Array] # # @!attribute [rw] classic_link_vpc_id - # The ID of a ClassicLink-enabled VPC to link your EC2-Classic - # instances to. For more information, see [ClassicLink][1] in the - # *Amazon EC2 User Guide for Linux Instances* and [Linking EC2-Classic - # instances to a VPC][2] in the *Amazon EC2 Auto Scaling User Guide*. - # - # + # *EC2-Classic retires on August 15, 2022. This parameter is not + # supported after that date.* # - # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html - # [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink + # The ID of a ClassicLink-enabled VPC to link your EC2-Classic + # instances to. # @return [String] # # @!attribute [rw] classic_link_vpc_security_groups + # *EC2-Classic retires on August 15, 2022. This parameter is not + # supported after that date.* + # # The IDs of one or more security groups for the VPC specified in # `ClassicLinkVPCId`. - # - # For more information, see [ClassicLink][1] in the *Amazon EC2 User - # Guide for Linux Instances* and [Linking EC2-Classic instances to a - # VPC][2] in the *Amazon EC2 Auto Scaling User Guide*. - # - # - # - # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html - # [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink # @return [Array] # # @!attribute [rw] user_data @@ -5095,10 +5115,9 @@ class LaunchTemplateSpecification < Struct.new( # @return [Integer] # # @!attribute [rw] global_timeout - # The maximum time, in seconds, that an instance can remain in a - # `Pending:Wait` or `Terminating:Wait` state. The maximum is 172800 - # seconds (48 hours) or 100 times `HeartbeatTimeout`, whichever is - # smaller. + # The maximum time, in seconds, that an instance can remain in a wait + # state. The maximum is 172800 seconds (48 hours) or 100 times + # `HeartbeatTimeout`, whichever is smaller. # @return [Integer] # # @!attribute [rw] default_result @@ -5936,14 +5955,14 @@ class PolicyARNType < Struct.new( # * `ASGAverageCPUUtilization` - Average CPU utilization of the Auto # Scaling group. # - # * `ASGAverageNetworkIn` - Average number of bytes received (per - # instance per minute) for the Auto Scaling group. + # * `ASGAverageNetworkIn` - Average number of bytes received on all + # network interfaces by the Auto Scaling group. # - # * `ASGAverageNetworkOut` - Average number of bytes sent out (per - # instance per minute) for the Auto Scaling group. + # * `ASGAverageNetworkOut` - Average number of bytes sent out on all + # network interfaces by the Auto Scaling group. # # * `ALBRequestCountPerTarget` - Average Application Load Balancer - # request count (per target per minute) for your Auto Scaling group. + # request count per target for your Auto Scaling group. # @return [String] # # @!attribute [rw] resource_label @@ -7065,14 +7084,16 @@ class PutNotificationConfigurationType < Struct.new( # @return [Integer] # # @!attribute [rw] cooldown - # The duration of the policy's cooldown period, in seconds. When a - # cooldown period is specified here, it overrides the default cooldown - # period defined for the Auto Scaling group. + # A cooldown period, in seconds, that applies to a specific simple + # scaling policy. When a cooldown period is specified here, it + # overrides the default cooldown. # # Valid only if the policy type is `SimpleScaling`. For more # information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] # in the *Amazon EC2 Auto Scaling User Guide*. # + # Default: None + # # # # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html @@ -7095,13 +7116,24 @@ class PutNotificationConfigurationType < Struct.new( # @return [Array] # # @!attribute [rw] estimated_instance_warmup + # *Not needed if the default instance warmup is defined for the + # group.* + # # The estimated time, in seconds, until a newly launched instance can - # contribute to the CloudWatch metrics. If not provided, the default - # is to use the value from the default cooldown period for the Auto - # Scaling group. + # contribute to the CloudWatch metrics. This warm-up period applies to + # instances launched due to a specific target tracking or step scaling + # policy. When a warm-up period is specified here, it overrides the + # default instance warmup. # # Valid only if the policy type is `TargetTrackingScaling` or # `StepScaling`. + # + # The default is to use the value for the default instance warmup + # defined for the group. If default instance warmup is null, then + # `EstimatedInstanceWarmup` falls back to the value of default + # cooldown. + # + # # @return [Integer] # # @!attribute [rw] target_tracking_configuration @@ -7422,11 +7454,11 @@ class RecordLifecycleActionHeartbeatType < Struct.new( # } # # @!attribute [rw] min_healthy_percentage - # The amount of capacity in the Auto Scaling group that must remain - # healthy during an instance refresh to allow the operation to - # continue. The value is expressed as a percentage of the desired - # capacity of the Auto Scaling group (rounded up to the nearest - # integer). The default is `90`. + # The amount of capacity in the Auto Scaling group that must pass your + # group's health checks to allow the operation to continue. The value + # is expressed as a percentage of the desired capacity of the Auto + # Scaling group (rounded up to the nearest integer). The default is + # `90`. # # Setting the minimum healthy percentage to 100 percent limits the # rate of replacement to one instance at a time. In contrast, setting @@ -7435,10 +7467,17 @@ class RecordLifecycleActionHeartbeatType < Struct.new( # @return [Integer] # # @!attribute [rw] instance_warmup - # The number of seconds until a newly launched instance is configured - # and ready to use. During this time, Amazon EC2 Auto Scaling does not - # immediately move on to the next replacement. The default is to use - # the value for the health check grace period defined for the group. + # *Not needed if the default instance warmup is defined for the + # group.* + # + # The duration of the instance warmup, in seconds. + # + # The default is to use the value for the default instance warmup + # defined for the group. If default instance warmup is null, then + # `InstanceWarmup` falls back to the value of the health check grace + # period. + # + # # @return [Integer] # # @!attribute [rw] checkpoint_percentages @@ -8605,6 +8644,7 @@ class TotalLocalStorageGBRequest < Struct.new( # capacity_rebalance: false, # context: "Context", # desired_capacity_type: "XmlStringMaxLen255", + # default_instance_warmup: 1, # } # # @!attribute [rw] auto_scaling_group_name @@ -8660,10 +8700,10 @@ class TotalLocalStorageGBRequest < Struct.new( # @return [Integer] # # @!attribute [rw] default_cooldown - # The amount of time, in seconds, after a scaling activity completes - # before another scaling activity can start. The default value is - # `300`. This setting applies when using simple scaling policies, but - # not when using other scaling policies or scheduled scaling. For more + # *Only needed if you use simple scaling policies.* + # + # The amount of time, in seconds, between one scaling activity ending + # and another one starting due to simple scaling policies. For more # information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] # in the *Amazon EC2 Auto Scaling User Guide*. # @@ -8686,11 +8726,11 @@ class TotalLocalStorageGBRequest < Struct.new( # @!attribute [rw] health_check_grace_period # The amount of time, in seconds, that Amazon EC2 Auto Scaling waits # before checking the health status of an EC2 instance that has come - # into service and marking it unhealthy due to a failed health check. - # The default value is `0`. For more information, see [Health check - # grace period][1] in the *Amazon EC2 Auto Scaling User Guide*. - # - # Required if you are adding an `ELB` health check. + # into service and marking it unhealthy due to a failed Elastic Load + # Balancing or custom health check. This is useful if your instances + # do not immediately pass these health checks after they enter the + # `InService` state. For more information, see [Health check grace + # period][1] in the *Amazon EC2 Auto Scaling User Guide*. # # # @@ -8699,11 +8739,14 @@ class TotalLocalStorageGBRequest < Struct.new( # # @!attribute [rw] placement_group # The name of an existing placement group into which to launch your - # instances, if any. A placement group is a logical grouping of - # instances within a single Availability Zone. You cannot specify - # multiple Availability Zones and a placement group. For more - # information, see [Placement Groups][1] in the *Amazon EC2 User Guide - # for Linux Instances*. + # instances. For more information, see [Placement groups][1] in the + # *Amazon EC2 User Guide for Linux Instances*. + # + # A *cluster* placement group is a logical grouping of instances + # within a single Availability Zone. You cannot specify multiple + # Availability Zones and a cluster placement group. + # + # # # # @@ -8796,6 +8839,33 @@ class TotalLocalStorageGBRequest < Struct.new( # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html # @return [String] # + # @!attribute [rw] default_instance_warmup + # The amount of time, in seconds, until a newly launched instance can + # contribute to the Amazon CloudWatch metrics. This delay lets an + # instance finish initializing before Amazon EC2 Auto Scaling + # aggregates instance metrics, resulting in more reliable usage data. + # Set this value equal to the amount of time that it takes for + # resource consumption to become stable after an instance reaches the + # `InService` state. For more information, see [Set the default + # instance warmup for an Auto Scaling group][1] in the *Amazon EC2 + # Auto Scaling User Guide*. + # + # To manage your warm-up settings at the group level, we recommend + # that you set the default instance warmup, *even if its value is set + # to 0 seconds*. This also optimizes the performance of scaling + # policies that scale continuously, such as target tracking and step + # scaling policies. + # + # If you need to remove a value that you previously set, include the + # property but specify `-1` for the value. However, we strongly + # recommend keeping the default instance warmup enabled by specifying + # a minimum value of `0`. + # + # + # + # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-default-instance-warmup.html + # @return [Integer] + # # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroupType AWS API Documentation # class UpdateAutoScalingGroupType < Struct.new( @@ -8818,7 +8888,8 @@ class UpdateAutoScalingGroupType < Struct.new( :max_instance_lifetime, :capacity_rebalance, :context, - :desired_capacity_type) + :desired_capacity_type, + :default_instance_warmup) SENSITIVE = [] include Aws::Structure end diff --git a/gems/aws-sdk-kendra/CHANGELOG.md b/gems/aws-sdk-kendra/CHANGELOG.md index d707d2b1d03..087bac7aa01 100644 --- a/gems/aws-sdk-kendra/CHANGELOG.md +++ b/gems/aws-sdk-kendra/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.49.0 (2022-04-19) +------------------ + +* Feature - Amazon Kendra now provides a data source connector for Quip. For more information, see https://docs.aws.amazon.com/kendra/latest/dg/data-source-quip.html + 1.48.0 (2022-04-06) ------------------ diff --git a/gems/aws-sdk-kendra/VERSION b/gems/aws-sdk-kendra/VERSION index 9db5ea12f52..7f3a46a841e 100644 --- a/gems/aws-sdk-kendra/VERSION +++ b/gems/aws-sdk-kendra/VERSION @@ -1 +1 @@ -1.48.0 +1.49.0 diff --git a/gems/aws-sdk-kendra/lib/aws-sdk-kendra.rb b/gems/aws-sdk-kendra/lib/aws-sdk-kendra.rb index a97e2cd0544..72b6984005b 100644 --- a/gems/aws-sdk-kendra/lib/aws-sdk-kendra.rb +++ b/gems/aws-sdk-kendra/lib/aws-sdk-kendra.rb @@ -48,6 +48,6 @@ # @!group service module Aws::Kendra - GEM_VERSION = '1.48.0' + GEM_VERSION = '1.49.0' end diff --git a/gems/aws-sdk-kendra/lib/aws-sdk-kendra/client.rb b/gems/aws-sdk-kendra/lib/aws-sdk-kendra/client.rb index fe1417b5a2c..7f165c53fea 100644 --- a/gems/aws-sdk-kendra/lib/aws-sdk-kendra/client.rb +++ b/gems/aws-sdk-kendra/lib/aws-sdk-kendra/client.rb @@ -925,7 +925,7 @@ def clear_query_suggestions(params = {}, options = {}) # resp = client.create_data_source({ # name: "DataSourceName", # required # index_id: "IndexId", # required - # type: "S3", # required, accepts S3, SHAREPOINT, DATABASE, SALESFORCE, ONEDRIVE, SERVICENOW, CUSTOM, CONFLUENCE, GOOGLEDRIVE, WEBCRAWLER, WORKDOCS, FSX, SLACK, BOX + # type: "S3", # required, accepts S3, SHAREPOINT, DATABASE, SALESFORCE, ONEDRIVE, SERVICENOW, CUSTOM, CONFLUENCE, GOOGLEDRIVE, WEBCRAWLER, WORKDOCS, FSX, SLACK, BOX, QUIP # configuration: { # s3_configuration: { # bucket_name: "S3BucketName", # required @@ -1322,6 +1322,41 @@ def clear_query_suggestions(params = {}, options = {}) # security_group_ids: ["VpcSecurityGroupId"], # required # }, # }, + # quip_configuration: { + # domain: "Domain", # required + # secret_arn: "SecretArn", # required + # crawl_file_comments: false, + # crawl_chat_rooms: false, + # crawl_attachments: false, + # folder_ids: ["FolderId"], + # thread_field_mappings: [ + # { + # data_source_field_name: "DataSourceFieldName", # required + # date_field_format: "DataSourceDateFieldFormat", + # index_field_name: "IndexFieldName", # required + # }, + # ], + # message_field_mappings: [ + # { + # data_source_field_name: "DataSourceFieldName", # required + # date_field_format: "DataSourceDateFieldFormat", + # index_field_name: "IndexFieldName", # required + # }, + # ], + # attachment_field_mappings: [ + # { + # data_source_field_name: "DataSourceFieldName", # required + # date_field_format: "DataSourceDateFieldFormat", + # index_field_name: "IndexFieldName", # required + # }, + # ], + # inclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"], + # exclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"], + # vpc_configuration: { + # subnet_ids: ["SubnetId"], # required + # security_group_ids: ["VpcSecurityGroupId"], # required + # }, + # }, # }, # description: "Description", # schedule: "ScanSchedule", @@ -2189,7 +2224,7 @@ def delete_thesaurus(params = {}, options = {}) # resp.id #=> String # resp.index_id #=> String # resp.name #=> String - # resp.type #=> String, one of "S3", "SHAREPOINT", "DATABASE", "SALESFORCE", "ONEDRIVE", "SERVICENOW", "CUSTOM", "CONFLUENCE", "GOOGLEDRIVE", "WEBCRAWLER", "WORKDOCS", "FSX", "SLACK", "BOX" + # resp.type #=> String, one of "S3", "SHAREPOINT", "DATABASE", "SALESFORCE", "ONEDRIVE", "SERVICENOW", "CUSTOM", "CONFLUENCE", "GOOGLEDRIVE", "WEBCRAWLER", "WORKDOCS", "FSX", "SLACK", "BOX", "QUIP" # resp.configuration.s3_configuration.bucket_name #=> String # resp.configuration.s3_configuration.inclusion_prefixes #=> Array # resp.configuration.s3_configuration.inclusion_prefixes[0] #=> String @@ -2478,6 +2513,33 @@ def delete_thesaurus(params = {}, options = {}) # resp.configuration.box_configuration.vpc_configuration.subnet_ids[0] #=> String # resp.configuration.box_configuration.vpc_configuration.security_group_ids #=> Array # resp.configuration.box_configuration.vpc_configuration.security_group_ids[0] #=> String + # resp.configuration.quip_configuration.domain #=> String + # resp.configuration.quip_configuration.secret_arn #=> String + # resp.configuration.quip_configuration.crawl_file_comments #=> Boolean + # resp.configuration.quip_configuration.crawl_chat_rooms #=> Boolean + # resp.configuration.quip_configuration.crawl_attachments #=> Boolean + # resp.configuration.quip_configuration.folder_ids #=> Array + # resp.configuration.quip_configuration.folder_ids[0] #=> String + # resp.configuration.quip_configuration.thread_field_mappings #=> Array + # resp.configuration.quip_configuration.thread_field_mappings[0].data_source_field_name #=> String + # resp.configuration.quip_configuration.thread_field_mappings[0].date_field_format #=> String + # resp.configuration.quip_configuration.thread_field_mappings[0].index_field_name #=> String + # resp.configuration.quip_configuration.message_field_mappings #=> Array + # resp.configuration.quip_configuration.message_field_mappings[0].data_source_field_name #=> String + # resp.configuration.quip_configuration.message_field_mappings[0].date_field_format #=> String + # resp.configuration.quip_configuration.message_field_mappings[0].index_field_name #=> String + # resp.configuration.quip_configuration.attachment_field_mappings #=> Array + # resp.configuration.quip_configuration.attachment_field_mappings[0].data_source_field_name #=> String + # resp.configuration.quip_configuration.attachment_field_mappings[0].date_field_format #=> String + # resp.configuration.quip_configuration.attachment_field_mappings[0].index_field_name #=> String + # resp.configuration.quip_configuration.inclusion_patterns #=> Array + # resp.configuration.quip_configuration.inclusion_patterns[0] #=> String + # resp.configuration.quip_configuration.exclusion_patterns #=> Array + # resp.configuration.quip_configuration.exclusion_patterns[0] #=> String + # resp.configuration.quip_configuration.vpc_configuration.subnet_ids #=> Array + # resp.configuration.quip_configuration.vpc_configuration.subnet_ids[0] #=> String + # resp.configuration.quip_configuration.vpc_configuration.security_group_ids #=> Array + # resp.configuration.quip_configuration.vpc_configuration.security_group_ids[0] #=> String # resp.created_at #=> Time # resp.updated_at #=> Time # resp.description #=> String @@ -3312,7 +3374,7 @@ def list_data_source_sync_jobs(params = {}, options = {}) # resp.summary_items #=> Array # resp.summary_items[0].name #=> String # resp.summary_items[0].id #=> String - # resp.summary_items[0].type #=> String, one of "S3", "SHAREPOINT", "DATABASE", "SALESFORCE", "ONEDRIVE", "SERVICENOW", "CUSTOM", "CONFLUENCE", "GOOGLEDRIVE", "WEBCRAWLER", "WORKDOCS", "FSX", "SLACK", "BOX" + # resp.summary_items[0].type #=> String, one of "S3", "SHAREPOINT", "DATABASE", "SALESFORCE", "ONEDRIVE", "SERVICENOW", "CUSTOM", "CONFLUENCE", "GOOGLEDRIVE", "WEBCRAWLER", "WORKDOCS", "FSX", "SLACK", "BOX", "QUIP" # resp.summary_items[0].created_at #=> Time # resp.summary_items[0].updated_at #=> Time # resp.summary_items[0].status #=> String, one of "CREATING", "DELETING", "FAILED", "UPDATING", "ACTIVE" @@ -4852,6 +4914,41 @@ def untag_resource(params = {}, options = {}) # security_group_ids: ["VpcSecurityGroupId"], # required # }, # }, + # quip_configuration: { + # domain: "Domain", # required + # secret_arn: "SecretArn", # required + # crawl_file_comments: false, + # crawl_chat_rooms: false, + # crawl_attachments: false, + # folder_ids: ["FolderId"], + # thread_field_mappings: [ + # { + # data_source_field_name: "DataSourceFieldName", # required + # date_field_format: "DataSourceDateFieldFormat", + # index_field_name: "IndexFieldName", # required + # }, + # ], + # message_field_mappings: [ + # { + # data_source_field_name: "DataSourceFieldName", # required + # date_field_format: "DataSourceDateFieldFormat", + # index_field_name: "IndexFieldName", # required + # }, + # ], + # attachment_field_mappings: [ + # { + # data_source_field_name: "DataSourceFieldName", # required + # date_field_format: "DataSourceDateFieldFormat", + # index_field_name: "IndexFieldName", # required + # }, + # ], + # inclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"], + # exclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"], + # vpc_configuration: { + # subnet_ids: ["SubnetId"], # required + # security_group_ids: ["VpcSecurityGroupId"], # required + # }, + # }, # }, # description: "Description", # schedule: "ScanSchedule", @@ -5322,7 +5419,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-kendra' - context[:gem_version] = '1.48.0' + context[:gem_version] = '1.49.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-kendra/lib/aws-sdk-kendra/client_api.rb b/gems/aws-sdk-kendra/lib/aws-sdk-kendra/client_api.rb index 1ceaa2ae0e0..38425b2f958 100644 --- a/gems/aws-sdk-kendra/lib/aws-sdk-kendra/client_api.rb +++ b/gems/aws-sdk-kendra/lib/aws-sdk-kendra/client_api.rb @@ -182,6 +182,7 @@ module ClientApi DocumentStatus = Shapes::StringShape.new(name: 'DocumentStatus') DocumentStatusList = Shapes::ListShape.new(name: 'DocumentStatusList') DocumentsMetadataConfiguration = Shapes::StructureShape.new(name: 'DocumentsMetadataConfiguration') + Domain = Shapes::StringShape.new(name: 'Domain') Duration = Shapes::StringShape.new(name: 'Duration') Endpoint = Shapes::StringShape.new(name: 'Endpoint') EndpointType = Shapes::StringShape.new(name: 'EndpointType') @@ -225,6 +226,8 @@ module ClientApi FaqSummaryItems = Shapes::ListShape.new(name: 'FaqSummaryItems') FeedbackToken = Shapes::StringShape.new(name: 'FeedbackToken') FileSystemId = Shapes::StringShape.new(name: 'FileSystemId') + FolderId = Shapes::StringShape.new(name: 'FolderId') + FolderIdList = Shapes::ListShape.new(name: 'FolderIdList') FsxConfiguration = Shapes::StructureShape.new(name: 'FsxConfiguration') FsxFileSystemType = Shapes::StringShape.new(name: 'FsxFileSystemType') GetQuerySuggestionsRequest = Shapes::StructureShape.new(name: 'GetQuerySuggestionsRequest') @@ -358,6 +361,7 @@ module ClientApi QuerySuggestionsId = Shapes::StringShape.new(name: 'QuerySuggestionsId') QuerySuggestionsStatus = Shapes::StringShape.new(name: 'QuerySuggestionsStatus') QueryText = Shapes::StringShape.new(name: 'QueryText') + QuipConfiguration = Shapes::StructureShape.new(name: 'QuipConfiguration') ReadAccessType = Shapes::StringShape.new(name: 'ReadAccessType') Relevance = Shapes::StructureShape.new(name: 'Relevance') RelevanceFeedback = Shapes::StructureShape.new(name: 'RelevanceFeedback') @@ -825,6 +829,7 @@ module ClientApi DataSourceConfiguration.add_member(:fsx_configuration, Shapes::ShapeRef.new(shape: FsxConfiguration, location_name: "FsxConfiguration")) DataSourceConfiguration.add_member(:slack_configuration, Shapes::ShapeRef.new(shape: SlackConfiguration, location_name: "SlackConfiguration")) DataSourceConfiguration.add_member(:box_configuration, Shapes::ShapeRef.new(shape: BoxConfiguration, location_name: "BoxConfiguration")) + DataSourceConfiguration.add_member(:quip_configuration, Shapes::ShapeRef.new(shape: QuipConfiguration, location_name: "QuipConfiguration")) DataSourceConfiguration.struct_class = Types::DataSourceConfiguration DataSourceGroup.add_member(:group_id, Shapes::ShapeRef.new(shape: PrincipalName, required: true, location_name: "GroupId")) @@ -1233,6 +1238,8 @@ module ClientApi FaqSummaryItems.member = Shapes::ShapeRef.new(shape: FaqSummary) + FolderIdList.member = Shapes::ShapeRef.new(shape: FolderId) + FsxConfiguration.add_member(:file_system_id, Shapes::ShapeRef.new(shape: FileSystemId, required: true, location_name: "FileSystemId")) FsxConfiguration.add_member(:file_system_type, Shapes::ShapeRef.new(shape: FsxFileSystemType, required: true, location_name: "FileSystemType")) FsxConfiguration.add_member(:vpc_configuration, Shapes::ShapeRef.new(shape: DataSourceVpcConfiguration, required: true, location_name: "VpcConfiguration")) @@ -1560,6 +1567,20 @@ module ClientApi QuerySuggestionsBlockListSummaryItems.member = Shapes::ShapeRef.new(shape: QuerySuggestionsBlockListSummary) + QuipConfiguration.add_member(:domain, Shapes::ShapeRef.new(shape: Domain, required: true, location_name: "Domain")) + QuipConfiguration.add_member(:secret_arn, Shapes::ShapeRef.new(shape: SecretArn, required: true, location_name: "SecretArn")) + QuipConfiguration.add_member(:crawl_file_comments, Shapes::ShapeRef.new(shape: Boolean, location_name: "CrawlFileComments")) + QuipConfiguration.add_member(:crawl_chat_rooms, Shapes::ShapeRef.new(shape: Boolean, location_name: "CrawlChatRooms")) + QuipConfiguration.add_member(:crawl_attachments, Shapes::ShapeRef.new(shape: Boolean, location_name: "CrawlAttachments")) + QuipConfiguration.add_member(:folder_ids, Shapes::ShapeRef.new(shape: FolderIdList, location_name: "FolderIds")) + QuipConfiguration.add_member(:thread_field_mappings, Shapes::ShapeRef.new(shape: DataSourceToIndexFieldMappingList, location_name: "ThreadFieldMappings")) + QuipConfiguration.add_member(:message_field_mappings, Shapes::ShapeRef.new(shape: DataSourceToIndexFieldMappingList, location_name: "MessageFieldMappings")) + QuipConfiguration.add_member(:attachment_field_mappings, Shapes::ShapeRef.new(shape: DataSourceToIndexFieldMappingList, location_name: "AttachmentFieldMappings")) + QuipConfiguration.add_member(:inclusion_patterns, Shapes::ShapeRef.new(shape: DataSourceInclusionsExclusionsStrings, location_name: "InclusionPatterns")) + QuipConfiguration.add_member(:exclusion_patterns, Shapes::ShapeRef.new(shape: DataSourceInclusionsExclusionsStrings, location_name: "ExclusionPatterns")) + QuipConfiguration.add_member(:vpc_configuration, Shapes::ShapeRef.new(shape: DataSourceVpcConfiguration, location_name: "VpcConfiguration")) + QuipConfiguration.struct_class = Types::QuipConfiguration + Relevance.add_member(:freshness, Shapes::ShapeRef.new(shape: DocumentMetadataBoolean, location_name: "Freshness")) Relevance.add_member(:importance, Shapes::ShapeRef.new(shape: Importance, location_name: "Importance")) Relevance.add_member(:duration, Shapes::ShapeRef.new(shape: Duration, location_name: "Duration")) diff --git a/gems/aws-sdk-kendra/lib/aws-sdk-kendra/types.rb b/gems/aws-sdk-kendra/lib/aws-sdk-kendra/types.rb index b4321b0e0a5..876a0c54658 100644 --- a/gems/aws-sdk-kendra/lib/aws-sdk-kendra/types.rb +++ b/gems/aws-sdk-kendra/lib/aws-sdk-kendra/types.rb @@ -1256,7 +1256,7 @@ class BatchPutDocumentResponseFailedDocument < Struct.new( # # # - # [1]: https://docs.aws.amazon.com/endra/latest/dg/vpc-configuration.html + # [1]: https://docs.aws.amazon.com/kendra/latest/dg/vpc-configuration.html # @return [Types::DataSourceVpcConfiguration] # # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/BoxConfiguration AWS API Documentation @@ -2112,7 +2112,7 @@ class Correction < Struct.new( # { # name: "DataSourceName", # required # index_id: "IndexId", # required - # type: "S3", # required, accepts S3, SHAREPOINT, DATABASE, SALESFORCE, ONEDRIVE, SERVICENOW, CUSTOM, CONFLUENCE, GOOGLEDRIVE, WEBCRAWLER, WORKDOCS, FSX, SLACK, BOX + # type: "S3", # required, accepts S3, SHAREPOINT, DATABASE, SALESFORCE, ONEDRIVE, SERVICENOW, CUSTOM, CONFLUENCE, GOOGLEDRIVE, WEBCRAWLER, WORKDOCS, FSX, SLACK, BOX, QUIP # configuration: { # s3_configuration: { # bucket_name: "S3BucketName", # required @@ -2509,6 +2509,41 @@ class Correction < Struct.new( # security_group_ids: ["VpcSecurityGroupId"], # required # }, # }, + # quip_configuration: { + # domain: "Domain", # required + # secret_arn: "SecretArn", # required + # crawl_file_comments: false, + # crawl_chat_rooms: false, + # crawl_attachments: false, + # folder_ids: ["FolderId"], + # thread_field_mappings: [ + # { + # data_source_field_name: "DataSourceFieldName", # required + # date_field_format: "DataSourceDateFieldFormat", + # index_field_name: "IndexFieldName", # required + # }, + # ], + # message_field_mappings: [ + # { + # data_source_field_name: "DataSourceFieldName", # required + # date_field_format: "DataSourceDateFieldFormat", + # index_field_name: "IndexFieldName", # required + # }, + # ], + # attachment_field_mappings: [ + # { + # data_source_field_name: "DataSourceFieldName", # required + # date_field_format: "DataSourceDateFieldFormat", + # index_field_name: "IndexFieldName", # required + # }, + # ], + # inclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"], + # exclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"], + # vpc_configuration: { + # subnet_ids: ["SubnetId"], # required + # security_group_ids: ["VpcSecurityGroupId"], # required + # }, + # }, # }, # description: "Description", # schedule: "ScanSchedule", @@ -3780,6 +3815,41 @@ class CustomDocumentEnrichmentConfiguration < Struct.new( # security_group_ids: ["VpcSecurityGroupId"], # required # }, # }, + # quip_configuration: { + # domain: "Domain", # required + # secret_arn: "SecretArn", # required + # crawl_file_comments: false, + # crawl_chat_rooms: false, + # crawl_attachments: false, + # folder_ids: ["FolderId"], + # thread_field_mappings: [ + # { + # data_source_field_name: "DataSourceFieldName", # required + # date_field_format: "DataSourceDateFieldFormat", + # index_field_name: "IndexFieldName", # required + # }, + # ], + # message_field_mappings: [ + # { + # data_source_field_name: "DataSourceFieldName", # required + # date_field_format: "DataSourceDateFieldFormat", + # index_field_name: "IndexFieldName", # required + # }, + # ], + # attachment_field_mappings: [ + # { + # data_source_field_name: "DataSourceFieldName", # required + # date_field_format: "DataSourceDateFieldFormat", + # index_field_name: "IndexFieldName", # required + # }, + # ], + # inclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"], + # exclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"], + # vpc_configuration: { + # subnet_ids: ["SubnetId"], # required + # security_group_ids: ["VpcSecurityGroupId"], # required + # }, + # }, # } # # @!attribute [rw] s3_configuration @@ -3847,6 +3917,11 @@ class CustomDocumentEnrichmentConfiguration < Struct.new( # data source. # @return [Types::BoxConfiguration] # + # @!attribute [rw] quip_configuration + # Provides the configuration information to connect to Quip as your + # data source. + # @return [Types::QuipConfiguration] + # # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DataSourceConfiguration AWS API Documentation # class DataSourceConfiguration < Struct.new( @@ -3862,7 +3937,8 @@ class DataSourceConfiguration < Struct.new( :work_docs_configuration, :fsx_configuration, :slack_configuration, - :box_configuration) + :box_configuration, + :quip_configuration) SENSITIVE = [] include Aws::Structure end @@ -8674,6 +8750,142 @@ class QuerySuggestionsBlockListSummary < Struct.new( include Aws::Structure end + # Provides the configuration information to connect to Quip as your data + # source. + # + # @note When making an API call, you may pass QuipConfiguration + # data as a hash: + # + # { + # domain: "Domain", # required + # secret_arn: "SecretArn", # required + # crawl_file_comments: false, + # crawl_chat_rooms: false, + # crawl_attachments: false, + # folder_ids: ["FolderId"], + # thread_field_mappings: [ + # { + # data_source_field_name: "DataSourceFieldName", # required + # date_field_format: "DataSourceDateFieldFormat", + # index_field_name: "IndexFieldName", # required + # }, + # ], + # message_field_mappings: [ + # { + # data_source_field_name: "DataSourceFieldName", # required + # date_field_format: "DataSourceDateFieldFormat", + # index_field_name: "IndexFieldName", # required + # }, + # ], + # attachment_field_mappings: [ + # { + # data_source_field_name: "DataSourceFieldName", # required + # date_field_format: "DataSourceDateFieldFormat", + # index_field_name: "IndexFieldName", # required + # }, + # ], + # inclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"], + # exclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"], + # vpc_configuration: { + # subnet_ids: ["SubnetId"], # required + # security_group_ids: ["VpcSecurityGroupId"], # required + # }, + # } + # + # @!attribute [rw] domain + # The configuration information to connect to your Quip data source + # domain. + # @return [String] + # + # @!attribute [rw] secret_arn + # The Amazon Resource Name (ARN) of an Secrets Manager secret that + # contains the key-value pairs that are required to connect to your + # Quip file system. Windows is currently the only supported type. The + # secret must contain a JSON structure with the following keys: + # + # * username—The Active Directory user name, along with the Domain + # Name System (DNS) domain name. For example, + # *user@corp.example.com*. The Active Directory user account must + # have read and mounting access to the Quip file system for Windows. + # + # * password—The password of the Active Directory user account with + # read and mounting access to the Quip Windows file system. + # @return [String] + # + # @!attribute [rw] crawl_file_comments + # Specify whether to crawl file comments in your Quip data source. You + # can specify one or more of these options. + # @return [Boolean] + # + # @!attribute [rw] crawl_chat_rooms + # Specify whether to crawl chat rooms in your Quip data source. You + # can specify one or more of these options. + # @return [Boolean] + # + # @!attribute [rw] crawl_attachments + # Specify whether to crawl attachments in your Quip data source. You + # can specify one or more of these options. + # @return [Boolean] + # + # @!attribute [rw] folder_ids + # The identifier of the Quip folder IDs to index. + # @return [Array] + # + # @!attribute [rw] thread_field_mappings + # A list of field mappings to apply when indexing Quip threads. + # @return [Array] + # + # @!attribute [rw] message_field_mappings + # A list of field mappings to apply when indexing Quip messages. + # @return [Array] + # + # @!attribute [rw] attachment_field_mappings + # A list of field mappings to apply when indexing Quip attachments. + # @return [Array] + # + # @!attribute [rw] inclusion_patterns + # A list of regular expression patterns to include certain files in + # your Quip file system. Files that match the patterns are included in + # the index. Files that don't match the patterns are excluded from + # the index. If a file matches both an inclusion pattern and an + # exclusion pattern, the exclusion pattern takes precedence, and the + # file isn't included in the index. + # @return [Array] + # + # @!attribute [rw] exclusion_patterns + # A list of regular expression patterns to exclude certain files in + # your Quip file system. Files that match the patterns are excluded + # from the index. Files that don’t match the patterns are included in + # the index. If a file matches both an inclusion pattern and an + # exclusion pattern, the exclusion pattern takes precedence, and the + # file isn't included in the index. + # @return [Array] + # + # @!attribute [rw] vpc_configuration + # Configuration information for connecting to an Amazon Virtual + # Private Cloud (VPC) for your Quip. Your Quip instance must reside + # inside your VPC. + # @return [Types::DataSourceVpcConfiguration] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/QuipConfiguration AWS API Documentation + # + class QuipConfiguration < Struct.new( + :domain, + :secret_arn, + :crawl_file_comments, + :crawl_chat_rooms, + :crawl_attachments, + :folder_ids, + :thread_field_mappings, + :message_field_mappings, + :attachment_field_mappings, + :inclusion_patterns, + :exclusion_patterns, + :vpc_configuration) + SENSITIVE = [] + include Aws::Structure + end + # Provides information for manually tuning the relevance of a field in a # search. When a query includes terms that match the field, the results # are given a boost in the response based on these tuning parameters. @@ -11218,6 +11430,41 @@ class UntagResourceResponse < Aws::EmptyStructure; end # security_group_ids: ["VpcSecurityGroupId"], # required # }, # }, + # quip_configuration: { + # domain: "Domain", # required + # secret_arn: "SecretArn", # required + # crawl_file_comments: false, + # crawl_chat_rooms: false, + # crawl_attachments: false, + # folder_ids: ["FolderId"], + # thread_field_mappings: [ + # { + # data_source_field_name: "DataSourceFieldName", # required + # date_field_format: "DataSourceDateFieldFormat", + # index_field_name: "IndexFieldName", # required + # }, + # ], + # message_field_mappings: [ + # { + # data_source_field_name: "DataSourceFieldName", # required + # date_field_format: "DataSourceDateFieldFormat", + # index_field_name: "IndexFieldName", # required + # }, + # ], + # attachment_field_mappings: [ + # { + # data_source_field_name: "DataSourceFieldName", # required + # date_field_format: "DataSourceDateFieldFormat", + # index_field_name: "IndexFieldName", # required + # }, + # ], + # inclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"], + # exclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"], + # vpc_configuration: { + # subnet_ids: ["SubnetId"], # required + # security_group_ids: ["VpcSecurityGroupId"], # required + # }, + # }, # }, # description: "Description", # schedule: "ScanSchedule", diff --git a/gems/aws-sdk-kms/CHANGELOG.md b/gems/aws-sdk-kms/CHANGELOG.md index 290d649e6be..a71e40ac836 100644 --- a/gems/aws-sdk-kms/CHANGELOG.md +++ b/gems/aws-sdk-kms/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.56.0 (2022-04-19) +------------------ + +* Feature - Adds support for KMS keys and APIs that generate and verify HMAC codes + 1.55.0 (2022-02-24) ------------------ diff --git a/gems/aws-sdk-kms/VERSION b/gems/aws-sdk-kms/VERSION index 094d6ad00ce..3ebf789f5a8 100644 --- a/gems/aws-sdk-kms/VERSION +++ b/gems/aws-sdk-kms/VERSION @@ -1 +1 @@ -1.55.0 +1.56.0 diff --git a/gems/aws-sdk-kms/lib/aws-sdk-kms.rb b/gems/aws-sdk-kms/lib/aws-sdk-kms.rb index b54f7d9db2e..0b19d3c4040 100644 --- a/gems/aws-sdk-kms/lib/aws-sdk-kms.rb +++ b/gems/aws-sdk-kms/lib/aws-sdk-kms.rb @@ -48,6 +48,6 @@ # @!group service module Aws::KMS - GEM_VERSION = '1.55.0' + GEM_VERSION = '1.56.0' end diff --git a/gems/aws-sdk-kms/lib/aws-sdk-kms/client.rb b/gems/aws-sdk-kms/lib/aws-sdk-kms/client.rb index 4cb57ce51e3..4384ce85188 100644 --- a/gems/aws-sdk-kms/lib/aws-sdk-kms/client.rb +++ b/gems/aws-sdk-kms/lib/aws-sdk-kms/client.rb @@ -370,8 +370,8 @@ def initialize(*args) # Developer Guide*. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][2] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][2] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: No. You cannot perform this operation on a KMS # key in a different Amazon Web Services account. @@ -544,8 +544,8 @@ def connect_custom_key_store(params = {}, options = {}) # Creates a friendly name for a KMS key. # # Adding, deleting, or updating an alias can allow or deny permission to - # the KMS key. For details, see [Using ABAC in KMS][1] in the *Key - # Management Service Developer Guide*. + # the KMS key. For details, see [ABAC in KMS][1] in the *Key Management + # Service Developer Guide*. # # # @@ -570,8 +570,8 @@ def connect_custom_key_store(params = {}, options = {}) # created, use the ListAliases operation. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][4] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][4] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: No. You cannot perform this operation on an # alias in a different Amazon Web Services account. @@ -812,7 +812,7 @@ def create_custom_key_store(params = {}, options = {}) # and delete it without changing your key policies or IAM policies. # # For detailed information about grants, including grant terminology, - # see [Using grants][1] in the Key Management Service Developer + # see [Grants in KMS][1] in the Key Management Service Developer # Guide . For examples of working with grants in several # programming languages, see [Programming grants][2]. # @@ -835,8 +835,8 @@ def create_custom_key_store(params = {}, options = {}) # the ListGrants or ListRetirableGrants operations. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][4] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][4] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: Yes. To perform this operation on a KMS key in # a different Amazon Web Services account, specify the key ARN in the @@ -921,12 +921,13 @@ def create_custom_key_store(params = {}, options = {}) # @option params [required, Array] :operations # A list of operations that the grant permits. # - # The operation must be supported on the KMS key. For example, you - # cannot create a grant for a symmetric KMS key that allows the Sign - # operation, or a grant for an asymmetric KMS key that allows the - # GenerateDataKey operation. If you try, KMS returns a `ValidationError` - # exception. For details, see [Grant operations][1] in the *Key - # Management Service Developer Guide*. + # This list must include only operations that are permitted in a grant. + # Also, the operation must be supported on the KMS key. For example, you + # cannot create a grant for a symmetric encryption KMS key that allows + # the Sign operation, or a grant for an asymmetric KMS key that allows + # the GenerateDataKey operation. If you try, KMS returns a + # `ValidationError` exception. For details, see [Grant operations][1] in + # the *Key Management Service Developer Guide*. # # # @@ -938,27 +939,38 @@ def create_custom_key_store(params = {}, options = {}) # KMS supports the `EncryptionContextEquals` and # `EncryptionContextSubset` grant constraints. Each constraint value can # include up to 8 encryption context pairs. The encryption context value - # in each constraint cannot exceed 384 characters. - # - # These grant constraints allow the permissions in the grant only when - # the encryption context in the request matches - # (`EncryptionContextEquals`) or includes (`EncryptionContextSubset`) - # the encryption context specified in this structure. For information - # about grant constraints, see [Using grant constraints][1] in the *Key + # in each constraint cannot exceed 384 characters. For information about + # grant constraints, see [Using grant constraints][1] in the *Key # Management Service Developer Guide*. For more information about - # encryption context, see [Encryption Context][2] in the Key + # encryption context, see [Encryption context][2] in the Key # Management Service Developer Guide . # - # The encryption context grant constraints are supported only on - # operations that include an encryption context. You cannot use an - # encryption context grant constraint for cryptographic operations with - # asymmetric KMS keys or for management operations, such as DescribeKey - # or RetireGrant. + # The encryption context grant constraints allow the permissions in the + # grant only when the encryption context in the request matches + # (`EncryptionContextEquals`) or includes (`EncryptionContextSubset`) + # the encryption context specified in this structure. + # + # The encryption context grant constraints are supported only on [grant + # operations][3] that include an `EncryptionContext` parameter, such as + # cryptographic operations on symmetric encryption KMS keys. Grants with + # grant constraints can include the DescribeKey and RetireGrant + # operations, but the constraint doesn't apply to these operations. If + # a grant with a grant constraint includes the `CreateGrant` operation, + # the constraint requires that any grants created with the `CreateGrant` + # permission have an equally strict or stricter encryption context + # constraint. + # + # You cannot use an encryption context grant constraint for + # cryptographic operations with asymmetric KMS keys or HMAC KMS keys. + # These keys don't support an encryption context. + # + # # # # # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/create-grant-overview.html#grant-constraints # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context + # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations # # @option params [Array] :grant_tokens # A list of grant tokens. @@ -1020,7 +1032,7 @@ def create_custom_key_store(params = {}, options = {}) # key_id: "KeyIdType", # required # grantee_principal: "PrincipalIdType", # required # retiring_principal: "PrincipalIdType", - # operations: ["Decrypt"], # required, accepts Decrypt, Encrypt, GenerateDataKey, GenerateDataKeyWithoutPlaintext, ReEncryptFrom, ReEncryptTo, Sign, Verify, GetPublicKey, CreateGrant, RetireGrant, DescribeKey, GenerateDataKeyPair, GenerateDataKeyPairWithoutPlaintext + # operations: ["Decrypt"], # required, accepts Decrypt, Encrypt, GenerateDataKey, GenerateDataKeyWithoutPlaintext, ReEncryptFrom, ReEncryptTo, Sign, Verify, GetPublicKey, CreateGrant, RetireGrant, DescribeKey, GenerateDataKeyPair, GenerateDataKeyPairWithoutPlaintext, GenerateMac, VerifyMac # constraints: { # encryption_context_subset: { # "EncryptionContextKey" => "EncryptionContextValue", @@ -1050,35 +1062,35 @@ def create_grant(params = {}, options = {}) # Creates a unique customer managed [KMS key][1] in your Amazon Web # Services account and Region. # + # In addition to the required parameters, you can use the optional + # parameters to specify a key policy, description, tags, and other + # useful elements for any key type. + # # KMS is replacing 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. # # # - # You can use the `CreateKey` operation to create symmetric or - # asymmetric KMS keys. + # To create different types of KMS keys, use the following guidance: + # + # Symmetric encryption KMS key # - # * **Symmetric KMS keys** contain a 256-bit symmetric key that never - # leaves KMS unencrypted. To use the KMS key, you must call KMS. You - # can use a symmetric KMS key to encrypt and decrypt small amounts of - # data, but they are typically used to generate [data keys][2] and - # [data keys pairs][3]. For details, see GenerateDataKey and + # : To create a symmetric encryption KMS key, you aren't required to + # specify any parameters. The default value for `KeySpec`, + # `SYMMETRIC_DEFAULT`, and the default value for `KeyUsage`, + # `ENCRYPT_DECRYPT`, create a symmetric encryption KMS key. + # + # If you need a key for basic encryption and decryption or you are + # creating a KMS key to protect your resources in an Amazon Web + # Services service, create a symmetric encryption KMS key. The key + # material in a symmetric encryption key never leaves KMS unencrypted. + # You can use a symmetric encryption KMS key to encrypt and decrypt + # data up to 4,096 bytes, but they are typically used to generate data + # keys and data keys pairs. For details, see GenerateDataKey and # GenerateDataKeyPair. # - # * **Asymmetric KMS keys** can contain an RSA key pair or an Elliptic - # Curve (ECC) key pair. The private key in an asymmetric KMS key never - # leaves KMS unencrypted. However, you can use the GetPublicKey - # operation to download the public key so it can be used outside of - # KMS. KMS keys with RSA key pairs can be used to encrypt or decrypt - # data or sign and verify messages (but not both). KMS keys with ECC - # key pairs can be used only to sign and verify messages. - # - # For information about symmetric and asymmetric KMS keys, see [Using - # Symmetric and Asymmetric KMS keys][4] in the *Key Management Service - # Developer Guide*. # - # To create different types of KMS keys, use the following guidance: # # Asymmetric KMS keys # @@ -1088,14 +1100,37 @@ def create_grant(params = {}, options = {}) # to encrypt and decrypt or sign and verify. You can't change these # properties after the KMS key is created. # + # Asymmetric KMS keys contain an RSA key pair or an Elliptic Curve + # (ECC) key pair. The private key in an asymmetric KMS key never + # leaves AWS KMS unencrypted. However, you can use the GetPublicKey + # operation to download the public key so it can be used outside of + # AWS KMS. KMS keys with RSA key pairs can be used to encrypt or + # decrypt data or sign and verify messages (but not both). KMS keys + # with ECC key pairs can be used only to sign and verify messages. For + # information about asymmetric KMS keys, see [Asymmetric KMS keys][2] + # in the *Key Management Service Developer Guide*. # # - # Symmetric KMS keys # - # : When creating a symmetric KMS key, you don't need to specify the - # `KeySpec` or `KeyUsage` parameters. The default value for `KeySpec`, - # `SYMMETRIC_DEFAULT`, and the default value for `KeyUsage`, - # `ENCRYPT_DECRYPT`, are the only valid values for symmetric KMS keys. + # HMAC KMS key + # + # : To create an HMAC KMS key, set the `KeySpec` parameter to a key spec + # value for HMAC KMS keys. Then set the `KeyUsage` parameter to + # `GENERATE_VERIFY_MAC`. You must set the key usage even though + # `GENERATE_VERIFY_MAC` is the only valid key usage value for HMAC KMS + # keys. You can't change these properties after the KMS key is + # created. + # + # HMAC KMS keys are symmetric keys that never leave KMS unencrypted. + # You can use HMAC keys to generate (GenerateMac) and verify + # (VerifyMac) HMAC codes for messages up to 4096 bytes. + # + # HMAC KMS keys are not supported in all Amazon Web Services Regions. + # If you try to create an HMAC KMS key in an Amazon Web Services + # Region in which HMAC keys are not supported, the `CreateKey` + # operation returns an `UnsupportedOperationException`. For a list of + # Regions in which HMAC KMS keys are supported, see [HMAC keys in + # KMS][3] in the *Key Management Service Developer Guide*. # # # @@ -1110,6 +1145,12 @@ def create_grant(params = {}, options = {}) # operation. To change a replica key to a primary key, and its primary # key to a replica key, use the UpdatePrimaryRegion operation. # + # You can create multi-Region KMS keys for all supported KMS key + # types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric + # encryption KMS keys, and asymmetric signing KMS keys. You can also + # create multi-Region keys with imported key material. However, you + # can't create multi-Region keys in a custom key store. + # # This operation supports *multi-Region keys*, an KMS feature that # lets you create multiple interoperable KMS keys in different Amazon # Web Services Regions. Because these KMS keys have the same key ID, @@ -1117,57 +1158,57 @@ def create_grant(params = {}, options = {}) # to encrypt data in one Amazon Web Services Region and decrypt it in # a different Amazon Web Services Region without re-encrypting the # data or making a cross-Region call. For more information about - # multi-Region keys, see [Using multi-Region keys][5] in the *Key + # multi-Region keys, see [Multi-Region keys in KMS][4] in the *Key # Management Service Developer Guide*. # - # You can create symmetric and asymmetric multi-Region keys and - # multi-Region keys with imported key material. You cannot create - # multi-Region keys in a custom key store. # # - # - # : To import your own key material, begin by creating a symmetric KMS - # key with no key material. To do this, use the `Origin` parameter of - # `CreateKey` with a value of `EXTERNAL`. Next, use - # GetParametersForImport operation to get a public key and import + # : To import your own key material, begin by creating a symmetric + # encryption KMS key with no key material. To do this, use the + # `Origin` parameter of `CreateKey` with a value of `EXTERNAL`. Next, + # use GetParametersForImport operation to get a public key and import # token, and use the public key to encrypt your key material. Then, # use ImportKeyMaterial with your import token to import the key # material. For step-by-step instructions, see [Importing Key - # Material][6] in the Key Management Service Developer - # Guide . You cannot import the key material into an - # asymmetric KMS key. + # Material][5] in the Key Management Service Developer + # Guide . + # + # This feature supports only symmetric encryption KMS keys, including + # multi-Region symmetric encryption KMS keys. You cannot import key + # material into any other type of KMS key. # # To create a multi-Region primary key with imported key material, use # the `Origin` parameter of `CreateKey` with a value of `EXTERNAL` and # the `MultiRegion` parameter with a value of `True`. To create # replicas of the multi-Region primary key, use the ReplicateKey - # operation. For more information about multi-Region keys, see [Using - # multi-Region keys][5] in the *Key Management Service Developer - # Guide*. + # operation. For more information about multi-Region keys, see + # [Multi-Region keys in KMS][4] in the *Key Management Service + # Developer Guide*. # # # # Custom key store # - # : To create a symmetric KMS key in a [custom key store][7], use the - # `CustomKeyStoreId` parameter to specify the custom key store. You - # must also use the `Origin` parameter with a value of `AWS_CLOUDHSM`. - # The CloudHSM cluster that is associated with the custom key store - # must have at least two active HSMs in different Availability Zones - # in the Amazon Web Services Region. + # : To create a symmetric encryption KMS key in a [custom key store][6], + # use the `CustomKeyStoreId` parameter to specify the custom key + # store. You must also use the `Origin` parameter with a value of + # `AWS_CLOUDHSM`. The CloudHSM cluster that is associated with the + # custom key store must have at least two active HSMs in different + # Availability Zones in the Amazon Web Services Region. # - # You cannot create an asymmetric KMS key in a custom key store. For - # information about custom key stores in KMS see [Using Custom Key - # Stores][7] in the Key Management Service Developer Guide - # . + # Custom key stores support only symmetric encryption KMS keys. You + # cannot create an HMAC KMS key or an asymmetric KMS key in a custom + # key store. For information about custom key stores in KMS see + # [Custom key stores in KMS][6] in the Key Management Service + # Developer Guide . # # **Cross-account use**\: No. You cannot use this operation to create a # KMS key in a different Amazon Web Services account. # - # **Required permissions**\: [kms:CreateKey][8] (IAM policy). To use the - # `Tags` parameter, [kms:TagResource][8] (IAM policy). For examples and + # **Required permissions**\: [kms:CreateKey][7] (IAM policy). To use the + # `Tags` parameter, [kms:TagResource][7] (IAM policy). For examples and # information about related permissions, see [Allow a user to create KMS - # keys][9] in the *Key Management Service Developer Guide*. + # keys][8] in the *Key Management Service Developer Guide*. # # **Related operations:** # @@ -1180,14 +1221,13 @@ def create_grant(params = {}, options = {}) # # # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms-keys - # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#data-keys - # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#data-key-pairs - # [4]: https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html - # [5]: https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html - # [6]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html - # [7]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html - # [8]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html - # [9]: https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policy-example-create-key + # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html + # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html + # [4]: https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html + # [5]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html + # [6]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html + # [7]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html + # [8]: https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policy-example-create-key # # @option params [String] :policy # The key policy to attach to the KMS key. @@ -1242,14 +1282,17 @@ def create_grant(params = {}, options = {}) # @option params [String] :key_usage # Determines the [cryptographic operations][1] for which you can use the # KMS key. The default value is `ENCRYPT_DECRYPT`. This parameter is - # required only for asymmetric KMS keys. You can't change the - # `KeyUsage` value after the KMS key is created. + # optional when you are creating a symmetric encryption KMS key; + # otherwise, it is required. You can't change the `KeyUsage` value + # after the KMS key is created. # # Select only one valid value. # - # * For symmetric KMS keys, omit the parameter or specify + # * For symmetric encryption KMS keys, omit the parameter or specify # `ENCRYPT_DECRYPT`. # + # * For HMAC KMS keys (symmetric), specify `GENERATE_VERIFY_MAC`. + # # * For asymmetric KMS keys with RSA key material, specify # `ENCRYPT_DECRYPT` or `SIGN_VERIFY`. # @@ -1272,32 +1315,40 @@ def create_grant(params = {}, options = {}) # Specifies the type of KMS key to create. The default value, # `SYMMETRIC_DEFAULT`, creates a KMS key with a 256-bit symmetric key # for encryption and decryption. For help choosing a key spec for your - # KMS key, see [How to Choose Your KMS key Configuration][1] in the - # Key Management Service Developer Guide . + # KMS key, see [Choosing a KMS key type][1] in the Key Management + # Service Developer Guide . # # The `KeySpec` determines whether the KMS key contains a symmetric key - # or an asymmetric key pair. It also determines the encryption - # algorithms or signing algorithms that the KMS key supports. You can't - # change the `KeySpec` after the KMS key is created. To further restrict - # the algorithms that can be used with the KMS key, use a condition key - # in its key policy or IAM policy. For more information, see - # [kms:EncryptionAlgorithm][2] or [kms:Signing Algorithm][3] in the - # Key Management Service Developer Guide . - # - # [Amazon Web Services services that are integrated with KMS][4] use - # symmetric KMS keys to protect your data. These services do not support - # asymmetric KMS keys. For help determining whether a KMS key is - # symmetric or asymmetric, see [Identifying Symmetric and Asymmetric KMS - # keys][5] in the *Key Management Service Developer Guide*. + # or an asymmetric key pair. It also determines the algorithms that the + # KMS key supports. You can't change the `KeySpec` after the KMS key is + # created. To further restrict the algorithms that can be used with the + # KMS key, use a condition key in its key policy or IAM policy. For more + # information, see [kms:EncryptionAlgorithm][2], [kms:MacAlgorithm][3] + # or [kms:Signing Algorithm][4] in the Key Management Service + # Developer Guide . + # + # [Amazon Web Services services that are integrated with KMS][5] use + # symmetric encryption KMS keys to protect your data. These services do + # not support asymmetric KMS keys or HMAC KMS keys. # # KMS supports the following key specs for KMS keys: # - # * Symmetric key (default) + # * Symmetric encryption key (default) # # * `SYMMETRIC_DEFAULT` (AES-256-GCM) # # ^ # + # * HMAC keys (symmetric) + # + # * `HMAC_224` + # + # * `HMAC_256` + # + # * `HMAC_384` + # + # * `HMAC_512` + # # * Asymmetric RSA key pairs # # * `RSA_2048` @@ -1322,11 +1373,11 @@ def create_grant(params = {}, options = {}) # # # - # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-choose.html + # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-types.html#symm-asymm-choose # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-encryption-algorithm - # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-signing-algorithm - # [4]: http://aws.amazon.com/kms/features/#AWS_Service_Integration - # [5]: https://docs.aws.amazon.com/kms/latest/developerguide/find-symm-asymm.html + # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-mac-algorithm + # [4]: https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-signing-algorithm + # [5]: http://aws.amazon.com/kms/features/#AWS_Service_Integration # # @option params [String] :origin # The source of the key material for the KMS key. You cannot change the @@ -1337,13 +1388,13 @@ def create_grant(params = {}, options = {}) # set the value to `EXTERNAL`. For more information about importing key # material into KMS, see [Importing Key Material][1] in the *Key # Management Service Developer Guide*. This value is valid only for - # symmetric KMS keys. + # symmetric encryption KMS keys. # # To create a KMS key in an KMS [custom key store][2] and create its key # material in the associated CloudHSM cluster, set this value to # `AWS_CLOUDHSM`. You must also use the `CustomKeyStoreId` parameter to # identify the custom key store. This value is valid only for symmetric - # KMS keys. + # encryption KMS keys. # # # @@ -1358,9 +1409,9 @@ def create_grant(params = {}, options = {}) # the custom key store must have at least two active HSMs, each in a # different Availability Zone in the Region. # - # This parameter is valid only for symmetric KMS keys and regional KMS - # keys. You cannot create an asymmetric KMS key or a multi-Region key in - # a custom key store. + # This parameter is valid only for symmetric encryption KMS keys in a + # single Region. You cannot create any other type of KMS key in a custom + # key store. # # To find the ID of a custom key store, use the DescribeCustomKeyStores # operation. @@ -1403,8 +1454,8 @@ def create_grant(params = {}, options = {}) # TagResource operation. # # Tagging or untagging a KMS key can allow or deny permission to the KMS - # key. For details, see [Using ABAC in KMS][1] in the *Key Management - # Service Developer Guide*. + # key. For details, see [ABAC in KMS][1] in the *Key Management Service + # Developer Guide*. # # # @@ -1444,7 +1495,7 @@ def create_grant(params = {}, options = {}) # encrypt data in one Amazon Web Services Region and decrypt it in a # different Amazon Web Services Region without re-encrypting the data or # making a cross-Region call. For more information about multi-Region - # keys, see [Using multi-Region keys][1] in the *Key Management Service + # keys, see [Multi-Region keys in KMS][1] in the *Key Management Service # Developer Guide*. # # This value creates a *primary key*, not a replica. To create a @@ -1665,14 +1716,46 @@ def create_grant(params = {}, options = {}) # }, # Detailed information about the KMS key that this operation creates. # } # + # @example Example: To create an HMAC KMS key + # + # # This example creates a 384-bit symmetric HMAC KMS key. The GENERATE_VERIFY_MAC key usage value is required even though + # # it's the only valid value for HMAC KMS keys. The key spec and key usage can't be changed after the key is created. + # + # resp = client.create_key({ + # key_spec: "HMAC_384", # Describes the type of key material in the KMS key. + # key_usage: "GENERATE_VERIFY_MAC", # The cryptographic operations for which you can use the KMS key. + # }) + # + # resp.to_h outputs the following: + # { + # key_metadata: { + # aws_account_id: "111122223333", + # arn: "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", + # creation_date: Time.parse("2022-04-05T14:04:55-07:00"), + # customer_master_key_spec: "HMAC_384", + # description: "", + # enabled: true, + # key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", + # key_manager: "CUSTOMER", + # key_spec: "HMAC_384", + # key_state: "Enabled", + # key_usage: "GENERATE_VERIFY_MAC", + # mac_algorithms: [ + # "HMAC_SHA_384", + # ], + # multi_region: false, + # origin: "AWS_KMS", + # }, # Detailed information about the KMS key that this operation creates. + # } + # # @example Request syntax with placeholder values # # resp = client.create_key({ # policy: "PolicyType", # description: "DescriptionType", - # key_usage: "SIGN_VERIFY", # accepts SIGN_VERIFY, ENCRYPT_DECRYPT - # customer_master_key_spec: "RSA_2048", # accepts RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256, ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1, SYMMETRIC_DEFAULT - # key_spec: "RSA_2048", # accepts RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256, ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1, SYMMETRIC_DEFAULT + # key_usage: "SIGN_VERIFY", # accepts SIGN_VERIFY, ENCRYPT_DECRYPT, GENERATE_VERIFY_MAC + # customer_master_key_spec: "RSA_2048", # accepts RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256, ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1, SYMMETRIC_DEFAULT, HMAC_224, HMAC_256, HMAC_384, HMAC_512 + # key_spec: "RSA_2048", # accepts RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256, ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1, SYMMETRIC_DEFAULT, HMAC_224, HMAC_256, HMAC_384, HMAC_512 # origin: "AWS_KMS", # accepts AWS_KMS, EXTERNAL, AWS_CLOUDHSM # custom_key_store_id: "CustomKeyStoreIdType", # bypass_policy_lockout_safety_check: false, @@ -1693,7 +1776,7 @@ def create_grant(params = {}, options = {}) # resp.key_metadata.creation_date #=> Time # resp.key_metadata.enabled #=> Boolean # resp.key_metadata.description #=> String - # resp.key_metadata.key_usage #=> String, one of "SIGN_VERIFY", "ENCRYPT_DECRYPT" + # resp.key_metadata.key_usage #=> String, one of "SIGN_VERIFY", "ENCRYPT_DECRYPT", "GENERATE_VERIFY_MAC" # resp.key_metadata.key_state #=> String, one of "Creating", "Enabled", "Disabled", "PendingDeletion", "PendingImport", "PendingReplicaDeletion", "Unavailable", "Updating" # resp.key_metadata.deletion_date #=> Time # resp.key_metadata.valid_to #=> Time @@ -1702,8 +1785,8 @@ def create_grant(params = {}, options = {}) # resp.key_metadata.cloud_hsm_cluster_id #=> String # resp.key_metadata.expiration_model #=> String, one of "KEY_MATERIAL_EXPIRES", "KEY_MATERIAL_DOES_NOT_EXPIRE" # resp.key_metadata.key_manager #=> String, one of "AWS", "CUSTOMER" - # resp.key_metadata.customer_master_key_spec #=> String, one of "RSA_2048", "RSA_3072", "RSA_4096", "ECC_NIST_P256", "ECC_NIST_P384", "ECC_NIST_P521", "ECC_SECG_P256K1", "SYMMETRIC_DEFAULT" - # resp.key_metadata.key_spec #=> String, one of "RSA_2048", "RSA_3072", "RSA_4096", "ECC_NIST_P256", "ECC_NIST_P384", "ECC_NIST_P521", "ECC_SECG_P256K1", "SYMMETRIC_DEFAULT" + # resp.key_metadata.customer_master_key_spec #=> String, one of "RSA_2048", "RSA_3072", "RSA_4096", "ECC_NIST_P256", "ECC_NIST_P384", "ECC_NIST_P521", "ECC_SECG_P256K1", "SYMMETRIC_DEFAULT", "HMAC_224", "HMAC_256", "HMAC_384", "HMAC_512" + # resp.key_metadata.key_spec #=> String, one of "RSA_2048", "RSA_3072", "RSA_4096", "ECC_NIST_P256", "ECC_NIST_P384", "ECC_NIST_P521", "ECC_SECG_P256K1", "SYMMETRIC_DEFAULT", "HMAC_224", "HMAC_256", "HMAC_384", "HMAC_512" # resp.key_metadata.encryption_algorithms #=> Array # resp.key_metadata.encryption_algorithms[0] #=> String, one of "SYMMETRIC_DEFAULT", "RSAES_OAEP_SHA_1", "RSAES_OAEP_SHA_256" # resp.key_metadata.signing_algorithms #=> Array @@ -1716,6 +1799,8 @@ def create_grant(params = {}, options = {}) # resp.key_metadata.multi_region_configuration.replica_keys[0].arn #=> String # resp.key_metadata.multi_region_configuration.replica_keys[0].region #=> String # resp.key_metadata.pending_deletion_window_in_days #=> Integer + # resp.key_metadata.mac_algorithms #=> Array + # resp.key_metadata.mac_algorithms[0] #=> String, one of "HMAC_SHA_224", "HMAC_SHA_256", "HMAC_SHA_384", "HMAC_SHA_512" # # @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateKey AWS API Documentation # @@ -1740,29 +1825,30 @@ def create_key(params = {}, options = {}) # * GenerateDataKeyPairWithoutPlaintext # # You can use this operation to decrypt ciphertext that was encrypted - # under a symmetric or asymmetric KMS key. When the KMS key is - # asymmetric, you must specify the KMS key and the encryption algorithm - # that was used to encrypt the ciphertext. For information about - # symmetric and asymmetric KMS keys, see [Using Symmetric and Asymmetric - # KMS keys][1] in the *Key Management Service Developer Guide*. + # under a symmetric encryption KMS key or an asymmetric encryption KMS + # key. When the KMS key is asymmetric, you must specify the KMS key and + # the encryption algorithm that was used to encrypt the ciphertext. For + # information about asymmetric KMS keys, see [Asymmetric KMS keys][1] in + # the *Key Management Service Developer Guide*. # - # The Decrypt operation also decrypts ciphertext that was encrypted + # The `Decrypt` operation also decrypts ciphertext that was encrypted # outside of KMS by the public key in an KMS asymmetric KMS key. - # However, it cannot decrypt ciphertext produced by other libraries, - # such as the [Amazon Web Services Encryption SDK][2] or [Amazon S3 - # client-side encryption][3]. These libraries return a ciphertext format - # that is incompatible with KMS. - # - # If the ciphertext was encrypted under a symmetric KMS key, the `KeyId` - # parameter is optional. KMS can get this information from metadata that - # it adds to the symmetric ciphertext blob. This feature adds durability - # to your implementation by ensuring that authorized users can decrypt - # ciphertext decades after it was encrypted, even if they've lost track - # of the key ID. However, specifying the KMS key is always recommended - # as a best practice. When you use the `KeyId` parameter to specify a - # KMS key, KMS only uses the KMS key you specify. If the ciphertext was - # encrypted under a different KMS key, the `Decrypt` operation fails. - # This practice ensures that you use the KMS key that you intend. + # However, it cannot decrypt symmetric ciphertext produced by other + # libraries, such as the [Amazon Web Services Encryption SDK][2] or + # [Amazon S3 client-side encryption][3]. These libraries return a + # ciphertext format that is incompatible with KMS. + # + # If the ciphertext was encrypted under a symmetric encryption KMS key, + # the `KeyId` parameter is optional. KMS can get this information from + # metadata that it adds to the symmetric ciphertext blob. This feature + # adds durability to your implementation by ensuring that authorized + # users can decrypt ciphertext decades after it was encrypted, even if + # they've lost track of the key ID. However, specifying the KMS key is + # always recommended as a best practice. When you use the `KeyId` + # parameter to specify a KMS key, KMS only uses the KMS key you specify. + # If the ciphertext was encrypted under a different KMS key, the + # `Decrypt` operation fails. This practice ensures that you use the KMS + # key that you intend. # # Whenever possible, use key policies to give users permission to call # the `Decrypt` operation on a particular KMS key, instead of using IAM @@ -1781,8 +1867,8 @@ def create_key(params = {}, options = {}) # Service Developer Guide*. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][7] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][7] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: Yes. To perform this operation with a KMS key # in a different Amazon Web Services account, specify the key ARN or @@ -1817,17 +1903,19 @@ def create_key(params = {}, options = {}) # @option params [Hash] :encryption_context # Specifies the encryption context to use when decrypting the data. An # encryption context is valid only for [cryptographic operations][1] - # with a symmetric KMS key. The standard asymmetric encryption - # algorithms that KMS uses do not support an encryption context. + # with a symmetric encryption KMS key. The standard asymmetric + # encryption algorithms and HMAC algorithms that KMS uses do not support + # an encryption context. # # An *encryption context* is a collection of non-secret key-value pairs - # that represents additional authenticated data. When you use an + # that represent additional authenticated data. When you use an # encryption context to encrypt data, you must specify the same (an # exact case-sensitive match) encryption context to decrypt the data. An - # encryption context is optional when encrypting with a symmetric KMS - # key, but it is highly recommended. + # encryption context is supported only on operations with symmetric + # encryption KMS keys. On operations with symmetric encryption KMS keys, + # an encryption context is optional, but it is strongly recommended. # - # For more information, see [Encryption Context][2] in the *Key + # For more information, see [Encryption context][2] in the *Key # Management Service Developer Guide*. # # @@ -1849,14 +1937,18 @@ def create_key(params = {}, options = {}) # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token # # @option params [String] :key_id - # Specifies the KMS key that KMS uses to decrypt the ciphertext. Enter a - # key ID of the KMS key that was used to encrypt the ciphertext. + # Specifies the KMS key that KMS uses to decrypt the ciphertext. + # + # Enter a key ID of the KMS key that was used to encrypt the ciphertext. + # If you identify a different KMS key, the `Decrypt` operation throws an + # `IncorrectKeyException`. # # This parameter is required only when the ciphertext was encrypted - # under an asymmetric KMS key. If you used a symmetric KMS key, KMS can - # get the KMS key from metadata that it adds to the symmetric ciphertext - # blob. However, it is always recommended as a best practice. This - # practice ensures that you use the KMS key that you intend. + # under an asymmetric KMS key. If you used a symmetric encryption KMS + # key, KMS can get the KMS key from metadata that it adds to the + # symmetric ciphertext blob. However, it is always recommended as a best + # practice. This practice ensures that you use the KMS key that you + # intend. # # To specify a KMS key, use its key ID, key ARN, alias name, or alias # ARN. When using an alias name, prefix it with `"alias/"`. To specify a @@ -1886,7 +1978,7 @@ def create_key(params = {}, options = {}) # This parameter is required only when the ciphertext was encrypted # under an asymmetric KMS key. The default value, `SYMMETRIC_DEFAULT`, # represents the only supported algorithm that is valid for symmetric - # KMS keys. + # encryption KMS keys. # # @return [Types::DecryptResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # @@ -1940,8 +2032,8 @@ def decrypt(params = {}, options = {}) # Deletes the specified alias. # # Adding, deleting, or updating an alias can allow or deny permission to - # the KMS key. For details, see [Using ABAC in KMS][1] in the *Key - # Management Service Developer Guide*. + # the KMS key. For details, see [ABAC in KMS][1] in the *Key Management + # Service Developer Guide*. # # # @@ -2116,8 +2208,8 @@ def delete_custom_key_store(params = {}, options = {}) # reimport the same key material into the KMS key. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][2] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][2] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: No. You cannot perform this operation on a KMS # key in a different Amazon Web Services account. @@ -2343,14 +2435,13 @@ def describe_custom_key_stores(params = {}, options = {}) # This detailed information includes the key ARN, creation date (and # deletion date, if applicable), the key state, and the origin and # expiration date (if any) of the key material. It includes fields, like - # `KeySpec`, that help you distinguish symmetric from asymmetric KMS - # keys. It also provides information that is particularly important to - # asymmetric keys, such as the key usage (encryption or signing) and the - # encryption algorithms or signing algorithms that the KMS key supports. - # For KMS keys in custom key stores, it includes information about the - # custom key store, such as the key store ID and the CloudHSM cluster - # ID. For multi-Region keys, it displays the primary key and all related - # replica keys. + # `KeySpec`, that help you distinguish different types of KMS keys. It + # also displays the key usage (encryption, signing, or generating and + # verifying MACs) and the algorithms that the KMS key supports. For KMS + # keys in custom key stores, it includes information about the custom + # key store, such as the key store ID and the CloudHSM cluster ID. For + # multi-Region keys, it displays the primary key and all related replica + # keys. # # `DescribeKey` does not return the following information: # @@ -2368,11 +2459,10 @@ def describe_custom_key_stores(params = {}, options = {}) # * Key policies and grants on the KMS key. To get this information, use # GetKeyPolicy and ListGrants. # - # If you call the `DescribeKey` operation on a *predefined Amazon Web - # Services alias*, that is, an Amazon Web Services alias with no key ID, - # KMS creates an [Amazon Web Services managed key][2]. Then, it - # associates the alias with the new KMS key, and returns the `KeyId` and - # `Arn` of the new KMS key in the response. + # In general, `DescribeKey` is a non-mutating operation. It returns data + # about KMS keys, but doesn't change them. However, Amazon Web Services + # services use `DescribeKey` to create [Amazon Web Services managed + # keys][2] from a *predefined Amazon Web Services alias* with no key ID. # # **Cross-account use**\: Yes. To perform this operation with a KMS key # in a different Amazon Web Services account, specify the key ARN or @@ -2454,10 +2544,10 @@ def describe_custom_key_stores(params = {}, options = {}) # # @example Example: To get details about a KMS key # - # # The following example gets metadata about a symmetric KMS key. + # # The following example gets metadata for a symmetric encryption KMS key. # # resp = client.describe_key({ - # key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The identifier of the KMS key that you want information about. You can use the key ID or the Amazon Resource Name (ARN) of the KMS key. + # key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # An identifier for the KMS key. You can use the key ID, key ARN, alias name, alias ARN of the KMS key. # }) # # resp.to_h outputs the following: @@ -2482,6 +2572,121 @@ def describe_custom_key_stores(params = {}, options = {}) # }, # An object that contains information about the specified KMS key. # } # + # @example Example: To get details about an RSA asymmetric KMS key + # + # # The following example gets metadata for an asymmetric RSA KMS key used for signing and verification. + # + # resp = client.describe_key({ + # key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # An identifier for the KMS key. You can use the key ID, key ARN, alias name, alias ARN of the KMS key. + # }) + # + # resp.to_h outputs the following: + # { + # key_metadata: { + # aws_account_id: "111122223333", + # arn: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", + # creation_date: Time.parse(1571767572.317), + # customer_master_key_spec: "RSA_2048", + # description: "", + # enabled: false, + # key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", + # key_manager: "CUSTOMER", + # key_spec: "RSA_2048", + # key_state: "Disabled", + # key_usage: "SIGN_VERIFY", + # multi_region: false, + # origin: "AWS_KMS", + # signing_algorithms: [ + # "RSASSA_PKCS1_V1_5_SHA_256", + # "RSASSA_PKCS1_V1_5_SHA_384", + # "RSASSA_PKCS1_V1_5_SHA_512", + # "RSASSA_PSS_SHA_256", + # "RSASSA_PSS_SHA_384", + # "RSASSA_PSS_SHA_512", + # ], + # }, # An object that contains information about the specified KMS key. + # } + # + # @example Example: To get details about a multi-Region key + # + # # The following example gets metadata for a multi-Region replica key. This multi-Region key is a symmetric encryption key. + # # DescribeKey returns information about the primary key and all of its replicas. + # + # resp = client.describe_key({ + # key_id: "arn:aws:kms:ap-northeast-1:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab", # An identifier for the KMS key. You can use the key ID, key ARN, alias name, alias ARN of the KMS key. + # }) + # + # resp.to_h outputs the following: + # { + # key_metadata: { + # aws_account_id: "111122223333", + # arn: "arn:aws:kms:ap-northeast-1:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab", + # creation_date: Time.parse(1586329200.918), + # customer_master_key_spec: "SYMMETRIC_DEFAULT", + # description: "", + # enabled: true, + # encryption_algorithms: [ + # "SYMMETRIC_DEFAULT", + # ], + # key_id: "mrk-1234abcd12ab34cd56ef1234567890ab", + # key_manager: "CUSTOMER", + # key_state: "Enabled", + # key_usage: "ENCRYPT_DECRYPT", + # multi_region: true, + # multi_region_configuration: { + # multi_region_key_type: "PRIMARY", + # primary_key: { + # arn: "arn:aws:kms:us-west-2:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab", + # region: "us-west-2", + # }, + # replica_keys: [ + # { + # arn: "arn:aws:kms:eu-west-1:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab", + # region: "eu-west-1", + # }, + # { + # arn: "arn:aws:kms:ap-northeast-1:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab", + # region: "ap-northeast-1", + # }, + # { + # arn: "arn:aws:kms:sa-east-1:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab", + # region: "sa-east-1", + # }, + # ], + # }, + # origin: "AWS_KMS", + # }, # An object that contains information about the specified KMS key. + # } + # + # @example Example: To get details about an HMAC KMS key + # + # # The following example gets the metadata of an HMAC KMS key. + # + # resp = client.describe_key({ + # key_id: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", # An identifier for the KMS key. You can use the key ID, key ARN, alias name, alias ARN of the KMS key. + # }) + # + # resp.to_h outputs the following: + # { + # key_metadata: { + # aws_account_id: "123456789012", + # arn: "arn:aws:kms:us-west-2:123456789012:key/1234abcd-12ab-34cd-56ef-1234567890ab", + # creation_date: Time.parse(1566160362.664), + # customer_master_key_spec: "HMAC_256", + # description: "Development test key", + # enabled: true, + # key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", + # key_manager: "CUSTOMER", + # key_state: "Enabled", + # key_usage: "GENERATE_VERIFY_MAC", + # mac_algorithms: [ + # "HMAC_SHA_256", + # ], + # multi_region: false, + # origin: "AWS_KMS", + # }, # An object that contains information about the specified KMS key. + # } + # # @example Request syntax with placeholder values # # resp = client.describe_key({ @@ -2497,7 +2702,7 @@ def describe_custom_key_stores(params = {}, options = {}) # resp.key_metadata.creation_date #=> Time # resp.key_metadata.enabled #=> Boolean # resp.key_metadata.description #=> String - # resp.key_metadata.key_usage #=> String, one of "SIGN_VERIFY", "ENCRYPT_DECRYPT" + # resp.key_metadata.key_usage #=> String, one of "SIGN_VERIFY", "ENCRYPT_DECRYPT", "GENERATE_VERIFY_MAC" # resp.key_metadata.key_state #=> String, one of "Creating", "Enabled", "Disabled", "PendingDeletion", "PendingImport", "PendingReplicaDeletion", "Unavailable", "Updating" # resp.key_metadata.deletion_date #=> Time # resp.key_metadata.valid_to #=> Time @@ -2506,8 +2711,8 @@ def describe_custom_key_stores(params = {}, options = {}) # resp.key_metadata.cloud_hsm_cluster_id #=> String # resp.key_metadata.expiration_model #=> String, one of "KEY_MATERIAL_EXPIRES", "KEY_MATERIAL_DOES_NOT_EXPIRE" # resp.key_metadata.key_manager #=> String, one of "AWS", "CUSTOMER" - # resp.key_metadata.customer_master_key_spec #=> String, one of "RSA_2048", "RSA_3072", "RSA_4096", "ECC_NIST_P256", "ECC_NIST_P384", "ECC_NIST_P521", "ECC_SECG_P256K1", "SYMMETRIC_DEFAULT" - # resp.key_metadata.key_spec #=> String, one of "RSA_2048", "RSA_3072", "RSA_4096", "ECC_NIST_P256", "ECC_NIST_P384", "ECC_NIST_P521", "ECC_SECG_P256K1", "SYMMETRIC_DEFAULT" + # resp.key_metadata.customer_master_key_spec #=> String, one of "RSA_2048", "RSA_3072", "RSA_4096", "ECC_NIST_P256", "ECC_NIST_P384", "ECC_NIST_P521", "ECC_SECG_P256K1", "SYMMETRIC_DEFAULT", "HMAC_224", "HMAC_256", "HMAC_384", "HMAC_512" + # resp.key_metadata.key_spec #=> String, one of "RSA_2048", "RSA_3072", "RSA_4096", "ECC_NIST_P256", "ECC_NIST_P384", "ECC_NIST_P521", "ECC_SECG_P256K1", "SYMMETRIC_DEFAULT", "HMAC_224", "HMAC_256", "HMAC_384", "HMAC_512" # resp.key_metadata.encryption_algorithms #=> Array # resp.key_metadata.encryption_algorithms[0] #=> String, one of "SYMMETRIC_DEFAULT", "RSAES_OAEP_SHA_1", "RSAES_OAEP_SHA_256" # resp.key_metadata.signing_algorithms #=> Array @@ -2520,6 +2725,8 @@ def describe_custom_key_stores(params = {}, options = {}) # resp.key_metadata.multi_region_configuration.replica_keys[0].arn #=> String # resp.key_metadata.multi_region_configuration.replica_keys[0].region #=> String # resp.key_metadata.pending_deletion_window_in_days #=> Integer + # resp.key_metadata.mac_algorithms #=> Array + # resp.key_metadata.mac_algorithms[0] #=> String, one of "HMAC_SHA_224", "HMAC_SHA_256", "HMAC_SHA_384", "HMAC_SHA_512" # # @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeKey AWS API Documentation # @@ -2534,12 +2741,12 @@ def describe_key(params = {}, options = {}) # prevents use of the KMS key for [cryptographic operations][1]. # # For more information about how key state affects the use of a KMS key, - # see [Key state: Effect on your KMS key][2] in the Key - # Management Service Developer Guide . + # see [Key states of KMS keys][2] in the Key Management Service + # Developer Guide . # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][2] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][2] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: No. You cannot perform this operation on a KMS # key in a different Amazon Web Services account. @@ -2596,21 +2803,22 @@ def disable_key(params = {}, options = {}) end # Disables [automatic rotation of the key material][1] for the specified - # symmetric KMS key. + # symmetric encryption KMS key. # - # You cannot enable automatic rotation of [asymmetric KMS keys][2], KMS - # keys with [imported key material][3], or KMS keys in a [custom key - # store][4]. To enable or disable automatic rotation of a set of related - # [multi-Region keys][5], set the property on the primary key. + # You cannot enable automatic rotation of [asymmetric KMS keys][2], + # [HMAC KMS keys][3], KMS keys with [imported key material][4], or KMS + # keys in a [custom key store][5]. To enable or disable automatic + # rotation of a set of related [multi-Region keys][6], set the property + # on the primary key. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][6] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][7] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: No. You cannot perform this operation on a KMS # key in a different Amazon Web Services account. # - # **Required permissions**\: [kms:DisableKeyRotation][7] (key policy) + # **Required permissions**\: [kms:DisableKeyRotation][8] (key policy) # # **Related operations:** # @@ -2621,17 +2829,19 @@ def disable_key(params = {}, options = {}) # # # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html - # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#asymmetric-cmks - # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html - # [4]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html - # [5]: https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html#mrk-replica-key - # [6]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html - # [7]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html + # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html + # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html + # [4]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html + # [5]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html + # [6]: https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate + # [7]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html + # [8]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html # # @option params [required, String] :key_id - # Identifies a symmetric KMS key. You cannot enable or disable automatic - # rotation of [asymmetric KMS keys][1], KMS keys with [imported key - # material][2], or KMS keys in a [custom key store][3]. + # Identifies a symmetric encryption KMS key. You cannot enable or + # disable automatic rotation of [asymmetric KMS keys][1], [HMAC KMS + # keys][2], KMS keys with [imported key material][3], or KMS keys in a + # [custom key store][4]. # # Specify the key ID or key ARN of the KMS key. # @@ -2648,8 +2858,9 @@ def disable_key(params = {}, options = {}) # # # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html#asymmetric-cmks - # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html - # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html + # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html + # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html + # [4]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html # # @return [Struct] Returns an empty {Seahorse::Client::Response response}. # @@ -2767,8 +2978,8 @@ def disconnect_custom_key_store(params = {}, options = {}) # KMS key for [cryptographic operations][1]. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][2] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][2] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: No. You cannot perform this operation on a KMS # key in a different Amazon Web Services account. @@ -2825,21 +3036,22 @@ def enable_key(params = {}, options = {}) end # Enables [automatic rotation of the key material][1] for the specified - # symmetric KMS key. + # symmetric encryption KMS key. # - # You cannot enable automatic rotation of [asymmetric KMS keys][2], KMS - # keys with [imported key material][3], or KMS keys in a [custom key - # store][4]. To enable or disable automatic rotation of a set of related - # [multi-Region keys][5], set the property on the primary key. + # You cannot enable automatic rotation of [asymmetric KMS keys][2], + # [HMAC KMS keys][3], KMS keys with [imported key material][4], or KMS + # keys in a [custom key store][5]. To enable or disable automatic + # rotation of a set of related [multi-Region keys][6], set the property + # on the primary key. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][6] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][7] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: No. You cannot perform this operation on a KMS # key in a different Amazon Web Services account. # - # **Required permissions**\: [kms:EnableKeyRotation][7] (key policy) + # **Required permissions**\: [kms:EnableKeyRotation][8] (key policy) # # **Related operations:** # @@ -2850,19 +3062,20 @@ def enable_key(params = {}, options = {}) # # # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html - # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#asymmetric-cmks - # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html - # [4]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html - # [5]: https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html#mrk-replica-key - # [6]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html - # [7]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html + # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html + # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html + # [4]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html + # [5]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html + # [6]: https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate + # [7]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html + # [8]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html # # @option params [required, String] :key_id - # Identifies a symmetric KMS key. You cannot enable automatic rotation - # of [asymmetric KMS keys][1], KMS keys with [imported key material][2], - # or KMS keys in a [custom key store][3]. To enable or disable automatic - # rotation of a set of related [multi-Region keys][4], set the property - # on the primary key. + # Identifies a symmetric encryption KMS key. You cannot enable automatic + # rotation of [asymmetric KMS keys][1], [HMAC KMS keys][2], KMS keys + # with [imported key material][3], or KMS keys in a [custom key + # store][4]. To enable or disable automatic rotation of a set of related + # [multi-Region keys][5], set the property on the primary key. # # Specify the key ID or key ARN of the KMS key. # @@ -2878,10 +3091,11 @@ def enable_key(params = {}, options = {}) # # # - # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#asymmetric-cmks - # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html - # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html - # [4]: https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html#mrk-replica-key + # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html + # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html + # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html + # [4]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html + # [5]: https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate # # @return [Struct] Returns an empty {Seahorse::Client::Response response}. # @@ -2909,36 +3123,22 @@ def enable_key_rotation(params = {}, options = {}) req.send_request(options) end - # Encrypts plaintext into ciphertext by using a KMS key. The `Encrypt` - # operation has two primary use cases: - # - # * You can encrypt small amounts of arbitrary data, such as a personal - # identifier or database password, or other sensitive information. - # - # * You can use the `Encrypt` operation to move encrypted data from one - # Amazon Web Services Region to another. For example, in Region A, - # generate a data key and use the plaintext key to encrypt your data. - # Then, in Region A, use the `Encrypt` operation to encrypt the - # plaintext data key under a KMS key in Region B. Now, you can move - # the encrypted data and the encrypted data key to Region B. When - # necessary, you can decrypt the encrypted data key and the encrypted - # data entirely within in Region B. - # - # You don't need to use the `Encrypt` operation to encrypt a data key. - # The GenerateDataKey and GenerateDataKeyPair operations return a - # plaintext data key and an encrypted copy of that data key. - # - # When you encrypt data, you must specify a symmetric or asymmetric KMS - # key to use in the encryption operation. The KMS key must have a - # `KeyUsage` value of `ENCRYPT_DECRYPT.` To find the `KeyUsage` of a KMS - # key, use the DescribeKey operation. - # - # If you use a symmetric KMS key, you can use an encryption context to - # add additional security to your encryption operation. If you specify - # an `EncryptionContext` when encrypting data, you must specify the same - # encryption context (a case-sensitive exact match) when decrypting the - # data. Otherwise, the request to decrypt fails with an - # `InvalidCiphertextException`. For more information, see [Encryption + # Encrypts plaintext of up to 4,096 bytes using a KMS key. You can use a + # symmetric or asymmetric KMS key with a `KeyUsage` of + # `ENCRYPT_DECRYPT`. + # + # You can use this operation to encrypt small amounts of arbitrary data, + # such as a personal identifier or database password, or other sensitive + # information. You don't need to use the `Encrypt` operation to encrypt + # a data key. The GenerateDataKey and GenerateDataKeyPair operations + # return a plaintext data key and an encrypted copy of that data key. + # + # If you use a symmetric encryption KMS key, you can use an encryption + # context to add additional security to your encryption operation. If + # you specify an `EncryptionContext` when encrypting data, you must + # specify the same encryption context (a case-sensitive exact match) + # when decrypting the data. Otherwise, the request to decrypt fails with + # an `InvalidCiphertextException`. For more information, see [Encryption # Context][1] in the *Key Management Service Developer Guide*. # # If you specify an asymmetric KMS key, you must also specify the @@ -2953,15 +3153,15 @@ def enable_key_rotation(params = {}, options = {}) # fails. # # You are not required to supply the key ID and encryption algorithm - # when you decrypt with symmetric KMS keys because KMS stores this - # information in the ciphertext blob. KMS cannot store metadata in + # when you decrypt with symmetric encryption KMS keys because KMS stores + # this information in the ciphertext blob. KMS cannot store metadata in # ciphertext generated with asymmetric keys. The standard format for # asymmetric key ciphertext does not include configurable fields. # # The maximum size of the data that you can encrypt varies with the type # of KMS key and the encryption algorithm that you choose. # - # * Symmetric KMS keys + # * Symmetric encryption KMS keys # # * `SYMMETRIC_DEFAULT`\: 4096 bytes # @@ -2986,8 +3186,8 @@ def enable_key_rotation(params = {}, options = {}) # * `RSAES_OAEP_SHA_256`\: 446 bytes # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][2] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][2] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: Yes. To perform this operation with a KMS key # in a different Amazon Web Services account, specify the key ARN or @@ -3010,7 +3210,9 @@ def enable_key_rotation(params = {}, options = {}) # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html # # @option params [required, String] :key_id - # Identifies the KMS key to use in the encryption operation. + # Identifies the KMS key to use in the encryption operation. The KMS key + # must have a `KeyUsage` of `ENCRYPT_DECRYPT`. To find the `KeyUsage` of + # a KMS key, use the DescribeKey operation. # # To specify a KMS key, use its key ID, key ARN, alias name, or alias # ARN. When using an alias name, prefix it with `"alias/"`. To specify a @@ -3037,18 +3239,19 @@ def enable_key_rotation(params = {}, options = {}) # @option params [Hash] :encryption_context # Specifies the encryption context that will be used to encrypt the # data. An encryption context is valid only for [cryptographic - # operations][1] with a symmetric KMS key. The standard asymmetric - # encryption algorithms that KMS uses do not support an encryption - # context. + # operations][1] with a symmetric encryption KMS key. The standard + # asymmetric encryption algorithms and HMAC algorithms that KMS uses do + # not support an encryption context. # # An *encryption context* is a collection of non-secret key-value pairs - # that represents additional authenticated data. When you use an + # that represent additional authenticated data. When you use an # encryption context to encrypt data, you must specify the same (an # exact case-sensitive match) encryption context to decrypt the data. An - # encryption context is optional when encrypting with a symmetric KMS - # key, but it is highly recommended. + # encryption context is supported only on operations with symmetric + # encryption KMS keys. On operations with symmetric encryption KMS keys, + # an encryption context is optional, but it is strongly recommended. # - # For more information, see [Encryption Context][2] in the *Key + # For more information, see [Encryption context][2] in the *Key # Management Service Developer Guide*. # # @@ -3075,9 +3278,9 @@ def enable_key_rotation(params = {}, options = {}) # that you specify. # # This parameter is required only for asymmetric KMS keys. The default - # value, `SYMMETRIC_DEFAULT`, is the algorithm used for symmetric KMS - # keys. If you are using an asymmetric KMS key, we recommend - # RSAES\_OAEP\_SHA\_256. + # value, `SYMMETRIC_DEFAULT`, is the algorithm used for symmetric + # encryption KMS keys. If you are using an asymmetric KMS key, we + # recommend RSAES\_OAEP\_SHA\_256. # # @return [Types::EncryptResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # @@ -3128,19 +3331,17 @@ def encrypt(params = {}, options = {}) req.send_request(options) end - # Generates a unique symmetric data key for client-side encryption. This + # Returns a unique symmetric data key for use outside of KMS. This # operation returns a plaintext copy of the data key and a copy that is - # encrypted under a KMS key that you specify. You can use the plaintext - # key to encrypt your data outside of KMS and store the encrypted data - # key with the encrypted data. - # - # `GenerateDataKey` returns a unique data key for each request. The - # bytes in the plaintext key are not related to the caller or the KMS - # key. - # - # To generate a data key, specify the symmetric KMS key that will be - # used to encrypt the data key. You cannot use an asymmetric KMS key to - # generate data keys. To get the type of your KMS key, use the + # encrypted under a symmetric encryption KMS key that you specify. The + # bytes in the plaintext key are random; they are not related to the + # caller or the KMS key. You can use the plaintext key to encrypt your + # data outside of KMS and store the encrypted data key with the + # encrypted data. + # + # To generate a data key, specify the symmetric encryption KMS key that + # will be used to encrypt the data key. You cannot use an asymmetric KMS + # key to encrypt data keys. To get the type of your KMS key, use the # DescribeKey operation. You must also specify the length of the data # key. Use either the `KeySpec` or `NumberOfBytes` parameters (but not # both). For 128-bit and 256-bit data keys, use the `KeySpec` parameter. @@ -3151,7 +3352,7 @@ def encrypt(params = {}, options = {}) # GenerateDataKeyPairWithoutPlaintext operation. To get a # cryptographically secure random byte string, use GenerateRandom. # - # You can use the optional encryption context to add additional security + # You can use an optional encryption context to add additional security # to the encryption operation. If you specify an `EncryptionContext`, # you must specify the same encryption context (a case-sensitive exact # match) when decrypting the encrypted data key. Otherwise, the request @@ -3166,8 +3367,8 @@ def encrypt(params = {}, options = {}) # Service Developer Guide*. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][4] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][4] in the *Key + # Management Service Developer Guide*. # # **How to use your data key** # @@ -3226,7 +3427,10 @@ def encrypt(params = {}, options = {}) # [8]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html # # @option params [required, String] :key_id - # Identifies the symmetric KMS key that encrypts the data key. + # Specifies the symmetric encryption KMS key that encrypts the data key. + # You cannot specify an asymmetric KMS key or a KMS key in a custom key + # store. To get the type and origin of your KMS key, use the DescribeKey + # operation. # # To specify a KMS key, use its key ID, key ARN, alias name, or alias # ARN. When using an alias name, prefix it with `"alias/"`. To specify a @@ -3252,13 +3456,14 @@ def encrypt(params = {}, options = {}) # data key. # # An *encryption context* is a collection of non-secret key-value pairs - # that represents additional authenticated data. When you use an + # that represent additional authenticated data. When you use an # encryption context to encrypt data, you must specify the same (an # exact case-sensitive match) encryption context to decrypt the data. An - # encryption context is optional when encrypting with a symmetric KMS - # key, but it is highly recommended. + # encryption context is supported only on operations with symmetric + # encryption KMS keys. On operations with symmetric encryption KMS keys, + # an encryption context is optional, but it is strongly recommended. # - # For more information, see [Encryption Context][1] in the *Key + # For more information, see [Encryption context][1] in the *Key # Management Service Developer Guide*. # # @@ -3346,11 +3551,13 @@ def generate_data_key(params = {}, options = {}) req.send_request(options) end - # Generates a unique asymmetric data key pair. The `GenerateDataKeyPair` + # Returns a unique asymmetric data key pair for use outside of KMS. This # operation returns a plaintext public key, a plaintext private key, and - # a copy of the private key that is encrypted under the symmetric KMS - # key you specify. You can use the data key pair to perform asymmetric - # cryptography and implement digital signatures outside of KMS. + # a copy of the private key that is encrypted under the symmetric + # encryption KMS key you specify. You can use the data key pair to + # perform asymmetric cryptography and implement digital signatures + # outside of KMS. The bytes in the keys are random; they not related to + # the caller or to the KMS key that is used to encrypt the private key. # # You can use the public key that `GenerateDataKeyPair` returns to # encrypt data or verify a signature outside of KMS. Then, store the @@ -3358,10 +3565,10 @@ def generate_data_key(params = {}, options = {}) # data or sign a message, you can use the Decrypt operation to decrypt # the encrypted private key. # - # To generate a data key pair, you must specify a symmetric KMS key to - # encrypt the private key in a data key pair. You cannot use an - # asymmetric KMS key or a KMS key in a custom key store. To get the type - # and origin of your KMS key, use the DescribeKey operation. + # To generate a data key pair, you must specify a symmetric encryption + # KMS key to encrypt the private key in a data key pair. You cannot use + # an asymmetric KMS key or a KMS key in a custom key store. To get the + # type and origin of your KMS key, use the DescribeKey operation. # # Use the `KeyPairSpec` parameter to choose an RSA or Elliptic Curve # (ECC) data key pair. KMS recommends that your use ECC key pairs for @@ -3379,13 +3586,13 @@ def generate_data_key(params = {}, options = {}) # to decrypt the encrypted private key in the data key pair. # # `GenerateDataKeyPair` returns a unique data key pair for each request. - # The bytes in the keys are not related to the caller or the KMS key - # that is used to encrypt the private key. The public key is a - # DER-encoded X.509 SubjectPublicKeyInfo, as specified in [RFC 5280][1]. - # The private key is a DER-encoded PKCS8 PrivateKeyInfo, as specified in - # [RFC 5958][2]. + # The bytes in the keys are random; they are not related to the caller + # or the KMS key that is used to encrypt the private key. The public key + # is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in [RFC + # 5280][1]. The private key is a DER-encoded PKCS8 PrivateKeyInfo, as + # specified in [RFC 5958][2]. # - # You can use the optional encryption context to add additional security + # You can use an optional encryption context to add additional security # to the encryption operation. If you specify an `EncryptionContext`, # you must specify the same encryption context (a case-sensitive exact # match) when decrypting the encrypted data key. Otherwise, the request @@ -3394,8 +3601,8 @@ def generate_data_key(params = {}, options = {}) # Service Developer Guide*. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][4] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][4] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: Yes. To perform this operation with a KMS key # in a different Amazon Web Services account, specify the key ARN or @@ -3428,13 +3635,14 @@ def generate_data_key(params = {}, options = {}) # private key in the data key pair. # # An *encryption context* is a collection of non-secret key-value pairs - # that represents additional authenticated data. When you use an + # that represent additional authenticated data. When you use an # encryption context to encrypt data, you must specify the same (an # exact case-sensitive match) encryption context to decrypt the data. An - # encryption context is optional when encrypting with a symmetric KMS - # key, but it is highly recommended. + # encryption context is supported only on operations with symmetric + # encryption KMS keys. On operations with symmetric encryption KMS keys, + # an encryption context is optional, but it is strongly recommended. # - # For more information, see [Encryption Context][1] in the *Key + # For more information, see [Encryption context][1] in the *Key # Management Service Developer Guide*. # # @@ -3442,10 +3650,10 @@ def generate_data_key(params = {}, options = {}) # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context # # @option params [required, String] :key_id - # Specifies the symmetric KMS key that encrypts the private key in the - # data key pair. You cannot specify an asymmetric KMS key or a KMS key - # in a custom key store. To get the type and origin of your KMS key, use - # the DescribeKey operation. + # Specifies the symmetric encryption KMS key that encrypts the private + # key in the data key pair. You cannot specify an asymmetric KMS key or + # a KMS key in a custom key store. To get the type and origin of your + # KMS key, use the DescribeKey operation. # # To specify a KMS key, use its key ID, key ARN, alias name, or alias # ARN. When using an alias name, prefix it with `"alias/"`. To specify a @@ -3499,16 +3707,16 @@ def generate_data_key(params = {}, options = {}) # @example Example: To generate an RSA key pair for encryption and decryption # # # This example generates an RSA data key pair for encryption and decryption. The operation returns a plaintext public key - # # and private key, and a copy of the private key that is encrypted under a symmetric KMS key that you specify. + # # and private key, and a copy of the private key that is encrypted under a symmetric encryption KMS key that you specify. # # resp = client.generate_data_key_pair({ - # key_id: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The key ID of the symmetric KMS key that encrypts the private RSA key in the data key pair. + # key_id: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The key ID of the symmetric encryption KMS key that encrypts the private RSA key in the data key pair. # key_pair_spec: "RSA_3072", # The requested key spec of the RSA data key pair. # }) # # resp.to_h outputs the following: # { - # key_id: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The key ARN of the symmetric KMS key that was used to encrypt the private key. + # key_id: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The key ARN of the symmetric encryption KMS key that was used to encrypt the private key. # key_pair_spec: "RSA_3072", # The actual key spec of the RSA data key pair. # private_key_ciphertext_blob: "", # The encrypted private key of the RSA data key pair. # private_key_plaintext: "", # The plaintext private key of the RSA data key pair. @@ -3543,11 +3751,12 @@ def generate_data_key_pair(params = {}, options = {}) req.send_request(options) end - # Generates a unique asymmetric data key pair. The - # `GenerateDataKeyPairWithoutPlaintext` operation returns a plaintext - # public key and a copy of the private key that is encrypted under the - # symmetric KMS key you specify. Unlike GenerateDataKeyPair, this - # operation does not return a plaintext private key. + # Returns a unique asymmetric data key pair for use outside of KMS. This + # operation returns a plaintext public key and a copy of the private key + # that is encrypted under the symmetric encryption KMS key you specify. + # Unlike GenerateDataKeyPair, this operation does not return a plaintext + # private key. The bytes in the keys are random; they are not related to + # the caller or to the KMS key that is used to encrypt the private key. # # You can use the public key that `GenerateDataKeyPairWithoutPlaintext` # returns to encrypt data or verify a signature outside of KMS. Then, @@ -3555,10 +3764,10 @@ def generate_data_key_pair(params = {}, options = {}) # decrypt data or sign a message, you can use the Decrypt operation to # decrypt the encrypted private key. # - # To generate a data key pair, you must specify a symmetric KMS key to - # encrypt the private key in a data key pair. You cannot use an - # asymmetric KMS key or a KMS key in a custom key store. To get the type - # and origin of your KMS key, use the DescribeKey operation. + # To generate a data key pair, you must specify a symmetric encryption + # KMS key to encrypt the private key in a data key pair. You cannot use + # an asymmetric KMS key or a KMS key in a custom key store. To get the + # type and origin of your KMS key, use the DescribeKey operation. # # Use the `KeyPairSpec` parameter to choose an RSA or Elliptic Curve # (ECC) data key pair. KMS recommends that your use ECC key pairs for @@ -3572,7 +3781,7 @@ def generate_data_key_pair(params = {}, options = {}) # a DER-encoded X.509 SubjectPublicKeyInfo, as specified in [RFC # 5280][1]. # - # You can use the optional encryption context to add additional security + # You can use an optional encryption context to add additional security # to the encryption operation. If you specify an `EncryptionContext`, # you must specify the same encryption context (a case-sensitive exact # match) when decrypting the encrypted data key. Otherwise, the request @@ -3581,8 +3790,8 @@ def generate_data_key_pair(params = {}, options = {}) # Service Developer Guide*. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][3] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][3] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: Yes. To perform this operation with a KMS key # in a different Amazon Web Services account, specify the key ARN or @@ -3615,13 +3824,14 @@ def generate_data_key_pair(params = {}, options = {}) # private key in the data key pair. # # An *encryption context* is a collection of non-secret key-value pairs - # that represents additional authenticated data. When you use an + # that represent additional authenticated data. When you use an # encryption context to encrypt data, you must specify the same (an # exact case-sensitive match) encryption context to decrypt the data. An - # encryption context is optional when encrypting with a symmetric KMS - # key, but it is highly recommended. + # encryption context is supported only on operations with symmetric + # encryption KMS keys. On operations with symmetric encryption KMS keys, + # an encryption context is optional, but it is strongly recommended. # - # For more information, see [Encryption Context][1] in the *Key + # For more information, see [Encryption context][1] in the *Key # Management Service Developer Guide*. # # @@ -3629,10 +3839,10 @@ def generate_data_key_pair(params = {}, options = {}) # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context # # @option params [required, String] :key_id - # Specifies the KMS key that encrypts the private key in the data key - # pair. You must specify a symmetric KMS key. You cannot use an - # asymmetric KMS key or a KMS key in a custom key store. To get the type - # and origin of your KMS key, use the DescribeKey operation. + # Specifies the symmetric encryption KMS key that encrypts the private + # key in the data key pair. You cannot specify an asymmetric KMS key or + # a KMS key in a custom key store. To get the type and origin of your + # KMS key, use the DescribeKey operation. # # To specify a KMS key, use its key ID, key ARN, alias name, or alias # ARN. When using an alias name, prefix it with `"alias/"`. To specify a @@ -3685,16 +3895,16 @@ def generate_data_key_pair(params = {}, options = {}) # @example Example: To generate an asymmetric data key pair without a plaintext key # # # This example returns an asymmetric elliptic curve (ECC) data key pair. The private key is encrypted under the symmetric - # # KMS key that you specify. This operation doesn't return a plaintext (unencrypted) private key. + # # encryption KMS key that you specify. This operation doesn't return a plaintext (unencrypted) private key. # # resp = client.generate_data_key_pair_without_plaintext({ - # key_id: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The symmetric KMS key that encrypts the private key of the ECC data key pair. + # key_id: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The symmetric encryption KMS key that encrypts the private key of the ECC data key pair. # key_pair_spec: "ECC_NIST_P521", # The requested key spec of the ECC asymmetric data key pair. # }) # # resp.to_h outputs the following: # { - # key_id: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The key ARN of the symmetric KMS key that encrypted the private key in the ECC asymmetric data key pair. + # key_id: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The key ARN of the symmetric encryption KMS key that encrypted the private key in the ECC asymmetric data key pair. # key_pair_spec: "ECC_NIST_P521", # The actual key spec of the ECC asymmetric data key pair. # private_key_ciphertext_blob: "", # The encrypted private key of the asymmetric ECC data key pair. # public_key: "", # The public key (plaintext). @@ -3727,40 +3937,40 @@ def generate_data_key_pair_without_plaintext(params = {}, options = {}) req.send_request(options) end - # Generates a unique symmetric data key. This operation returns a data - # key that is encrypted under a KMS key that you specify. To request an - # asymmetric data key pair, use the GenerateDataKeyPair or - # GenerateDataKeyPairWithoutPlaintext operations. + # Returns a unique symmetric data key for use outside of KMS. This + # operation returns a data key that is encrypted under a symmetric + # encryption KMS key that you specify. The bytes in the key are random; + # they are not related to the caller or to the KMS key. # # `GenerateDataKeyWithoutPlaintext` is identical to the GenerateDataKey - # operation except that returns only the encrypted copy of the data key. + # operation except that it does not return a plaintext copy of the data + # key. + # # This operation is useful for systems that need to encrypt data at some # point, but not immediately. When you need to encrypt the data, you - # call the Decrypt operation on the encrypted copy of the key. - # - # It's also useful in distributed systems with different levels of - # trust. For example, you might store encrypted data in containers. One - # component of your system creates new containers and stores an - # encrypted data key with each container. Then, a different component - # puts the data into the containers. That component first decrypts the - # data key, uses the plaintext data key to encrypt data, puts the - # encrypted data into the container, and then destroys the plaintext - # data key. In this system, the component that creates the containers - # never sees the plaintext data key. - # - # `GenerateDataKeyWithoutPlaintext` returns a unique data key for each - # request. The bytes in the keys are not related to the caller or KMS - # key that is used to encrypt the private key. - # - # To generate a data key, you must specify the symmetric KMS key that is - # used to encrypt the data key. You cannot use an asymmetric KMS key to - # generate a data key. To get the type of your KMS key, use the - # DescribeKey operation. + # call the Decrypt operation on the encrypted copy of the key. It's + # also useful in distributed systems with different levels of trust. For + # example, you might store encrypted data in containers. One component + # of your system creates new containers and stores an encrypted data key + # with each container. Then, a different component puts the data into + # the containers. That component first decrypts the data key, uses the + # plaintext data key to encrypt data, puts the encrypted data into the + # container, and then destroys the plaintext data key. In this system, + # the component that creates the containers never sees the plaintext + # data key. + # + # To request an asymmetric data key pair, use the GenerateDataKeyPair or + # GenerateDataKeyPairWithoutPlaintext operations. + # + # To generate a data key, you must specify the symmetric encryption KMS + # key that is used to encrypt the data key. You cannot use an asymmetric + # KMS key or a key in a custom key store to generate a data key. To get + # the type of your KMS key, use the DescribeKey operation. # # If the operation succeeds, you will find the encrypted copy of the # data key in the `CiphertextBlob` field. # - # You can use the optional encryption context to add additional security + # You can use an optional encryption context to add additional security # to the encryption operation. If you specify an `EncryptionContext`, # you must specify the same encryption context (a case-sensitive exact # match) when decrypting the encrypted data key. Otherwise, the request @@ -3769,8 +3979,8 @@ def generate_data_key_pair_without_plaintext(params = {}, options = {}) # Service Developer Guide*. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][2] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][2] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: Yes. To perform this operation with a KMS key # in a different Amazon Web Services account, specify the key ARN or @@ -3798,7 +4008,10 @@ def generate_data_key_pair_without_plaintext(params = {}, options = {}) # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html # # @option params [required, String] :key_id - # The identifier of the symmetric KMS key that encrypts the data key. + # Specifies the symmetric encryption KMS key that encrypts the data key. + # You cannot specify an asymmetric KMS key or a KMS key in a custom key + # store. To get the type and origin of your KMS key, use the DescribeKey + # operation. # # To specify a KMS key, use its key ID, key ARN, alias name, or alias # ARN. When using an alias name, prefix it with `"alias/"`. To specify a @@ -3824,13 +4037,14 @@ def generate_data_key_pair_without_plaintext(params = {}, options = {}) # data key. # # An *encryption context* is a collection of non-secret key-value pairs - # that represents additional authenticated data. When you use an + # that represent additional authenticated data. When you use an # encryption context to encrypt data, you must specify the same (an # exact case-sensitive match) encryption context to decrypt the data. An - # encryption context is optional when encrypting with a symmetric KMS - # key, but it is highly recommended. + # encryption context is supported only on operations with symmetric + # encryption KMS keys. On operations with symmetric encryption KMS keys, + # an encryption context is optional, but it is strongly recommended. # - # For more information, see [Encryption Context][1] in the *Key + # For more information, see [Encryption context][1] in the *Key # Management Service Developer Guide*. # # @@ -3908,6 +4122,126 @@ def generate_data_key_without_plaintext(params = {}, options = {}) req.send_request(options) end + # Generates a hash-based message authentication code (HMAC) for a + # message using an HMAC KMS key and a MAC algorithm that the key + # supports. The MAC algorithm computes the HMAC for the message and the + # key as described in [RFC 2104][1]. + # + # You can use the HMAC that this operation generates with the VerifyMac + # operation to demonstrate that the original message has not changed. + # Also, because a secret key is used to create the hash, you can verify + # that the party that generated the hash has the required secret key. + # This operation is part of KMS support for HMAC KMS keys. For details, + # see [HMAC keys in KMS][2] in the Key Management Service + # Developer Guide . + # + # The KMS key that you use for this operation must be in a compatible + # key state. For details, see [Key states of KMS keys][3] in the *Key + # Management Service Developer Guide*. + # + # **Cross-account use**\: Yes. To perform this operation with a KMS key + # in a different Amazon Web Services account, specify the key ARN or + # alias ARN in the value of the `KeyId` parameter. + # + # **Required permissions**\: [kms:GenerateMac][4] (key policy) + # + # **Related operations**\: VerifyMac + # + # + # + # [1]: https://datatracker.ietf.org/doc/html/rfc2104 + # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html + # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html + # [4]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html + # + # @option params [required, String, StringIO, File] :message + # The message to be hashed. Specify a message of up to 4,096 bytes. + # + # `GenerateMac` and VerifyMac do not provide special handling for + # message digests. If you generate an HMAC for a hash digest of a + # message, you must verify the HMAC of the same hash digest. + # + # @option params [required, String] :key_id + # The HMAC KMS key to use in the operation. The MAC algorithm computes + # the HMAC for the message and the key as described in [RFC 2104][1]. + # + # To identify an HMAC KMS key, use the DescribeKey operation and see the + # `KeySpec` field in the response. + # + # + # + # [1]: https://datatracker.ietf.org/doc/html/rfc2104 + # + # @option params [required, String] :mac_algorithm + # The MAC algorithm used in the operation. + # + # The algorithm must be compatible with the HMAC KMS key that you + # specify. To find the MAC algorithms that your HMAC KMS key supports, + # use the DescribeKey operation and see the `MacAlgorithms` field in the + # `DescribeKey` response. + # + # @option params [Array] :grant_tokens + # A list of grant tokens. + # + # Use a grant token when your permission to call this operation comes + # from a new grant that has not yet achieved *eventual consistency*. For + # more information, see [Grant token][1] and [Using a grant token][2] in + # the *Key Management Service Developer Guide*. + # + # + # + # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token + # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token + # + # @return [Types::GenerateMacResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::GenerateMacResponse#mac #mac} => String + # * {Types::GenerateMacResponse#mac_algorithm #mac_algorithm} => String + # * {Types::GenerateMacResponse#key_id #key_id} => String + # + # + # @example Example: To generate an HMAC for a message + # + # # This example generates an HMAC for a message, an HMAC KMS key, and a MAC algorithm. The algorithm must be supported by + # # the specified HMAC KMS key. + # + # resp = client.generate_mac({ + # key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The HMAC KMS key input to the HMAC algorithm. + # mac_algorithm: "HMAC_SHA_384", # The HMAC algorithm requested for the operation. + # message: "Hello World", # The message input to the HMAC algorithm. + # }) + # + # resp.to_h outputs the following: + # { + # key_id: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The key ARN of the HMAC KMS key used in the operation. + # mac: "", # The HMAC tag that results from this operation. + # mac_algorithm: "HMAC_SHA_384", # The HMAC algorithm used in the operation. + # } + # + # @example Request syntax with placeholder values + # + # resp = client.generate_mac({ + # message: "data", # required + # key_id: "KeyIdType", # required + # mac_algorithm: "HMAC_SHA_224", # required, accepts HMAC_SHA_224, HMAC_SHA_256, HMAC_SHA_384, HMAC_SHA_512 + # grant_tokens: ["GrantTokenType"], + # }) + # + # @example Response structure + # + # resp.mac #=> String + # resp.mac_algorithm #=> String, one of "HMAC_SHA_224", "HMAC_SHA_256", "HMAC_SHA_384", "HMAC_SHA_512" + # resp.key_id #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateMac AWS API Documentation + # + # @overload generate_mac(params = {}) + # @param [Hash] params ({}) + def generate_mac(params = {}, options = {}) + req = build_request(:generate_mac, params) + req.send_request(options) + end + # Returns a random byte string that is cryptographically secure. # # By default, the random byte string is generated in KMS. To generate @@ -4057,15 +4391,16 @@ def get_key_policy(params = {}, options = {}) # Gets a Boolean value that indicates whether [automatic rotation of the # key material][1] is enabled for the specified KMS key. # - # You cannot enable automatic rotation of [asymmetric KMS keys][2], KMS - # keys with [imported key material][3], or KMS keys in a [custom key - # store][4]. To enable or disable automatic rotation of a set of related - # [multi-Region keys][5], set the property on the primary key. The key - # rotation status for these KMS keys is always `false`. + # You cannot enable automatic rotation of [asymmetric KMS keys][2], + # [HMAC KMS keys][3], KMS keys with [imported key material][4], or KMS + # keys in a [custom key store][5]. To enable or disable automatic + # rotation of a set of related [multi-Region keys][6], set the property + # on the primary key. The key rotation status for these KMS keys is + # always `false`. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][6] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][7] in the *Key + # Management Service Developer Guide*. # # * Disabled: The key rotation status does not change when you disable a # KMS key. However, while the KMS key is disabled, KMS does not rotate @@ -4080,7 +4415,7 @@ def get_key_policy(params = {}, options = {}) # a different Amazon Web Services account, specify the key ARN in the # value of the `KeyId` parameter. # - # **Required permissions**\: [kms:GetKeyRotationStatus][7] (key policy) + # **Required permissions**\: [kms:GetKeyRotationStatus][8] (key policy) # # **Related operations:** # @@ -4091,12 +4426,13 @@ def get_key_policy(params = {}, options = {}) # # # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html - # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#asymmetric-cmks - # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html - # [4]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html - # [5]: https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html#mrk-replica-key - # [6]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html - # [7]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html + # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html + # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html + # [4]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html + # [5]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html + # [6]: https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate + # [7]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html + # [8]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html # # @option params [required, String] :key_id # Gets the rotation status for the specified KMS key. @@ -4151,21 +4487,22 @@ def get_key_rotation_status(params = {}, options = {}) req.send_request(options) end - # Returns the items you need to import key material into a symmetric, - # customer managed KMS key. For more information about importing key - # material into KMS, see [Importing Key Material][1] in the *Key - # Management Service Developer Guide*. + # Returns the items you need to import key material into a symmetric + # encryption KMS key. For more information about importing key material + # into KMS, see [Importing key material][1] in the *Key Management + # Service Developer Guide*. # # This operation returns a public key and an import token. Use the # public key to encrypt the symmetric key material. Store the import # token to send with a subsequent ImportKeyMaterial request. # - # You must specify the key ID of the symmetric KMS key into which you - # will import key material. This KMS key's `Origin` must be `EXTERNAL`. - # You must also specify the wrapping algorithm and type of wrapping key - # (public key) that you will use to encrypt the key material. You cannot - # perform this operation on an asymmetric KMS key or on any KMS key in a - # different Amazon Web Services account. + # You must specify the key ID of the symmetric encryption KMS key into + # which you will import key material. This KMS key's `Origin` must be + # `EXTERNAL`. You must also specify the wrapping algorithm and type of + # wrapping key (public key) that you will use to encrypt the key + # material. You cannot perform this operation on an asymmetric KMS key, + # an HMAC KMS key, or on any KMS key in a different Amazon Web Services + # account. # # To import key material, you must use the public key and import token # from the same response. These items are valid for 24 hours. The @@ -4175,8 +4512,8 @@ def get_key_rotation_status(params = {}, options = {}) # `GetParametersForImport` request. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][2] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][2] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: No. You cannot perform this operation on a KMS # key in a different Amazon Web Services account. @@ -4197,8 +4534,8 @@ def get_key_rotation_status(params = {}, options = {}) # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html # # @option params [required, String] :key_id - # The identifier of the symmetric KMS key into which you will import key - # material. The `Origin` of the KMS key must be `EXTERNAL`. + # The identifier of the symmetric encryption KMS key into which you will + # import key material. The `Origin` of the KMS key must be `EXTERNAL`. # # Specify the key ID or key ARN of the KMS key. # @@ -4281,9 +4618,8 @@ def get_parameters_for_import(params = {}, options = {}) # callers with `kms:GetPublicKey` permission can download the public key # of an asymmetric KMS key. You can share the public key to allow others # to encrypt messages and verify signatures outside of KMS. For - # information about symmetric and asymmetric KMS keys, see [Using - # Symmetric and Asymmetric KMS keys][1] in the *Key Management Service - # Developer Guide*. + # information about asymmetric KMS keys, see [Asymmetric KMS keys][1] in + # the *Key Management Service Developer Guide*. # # You do not need to download the public key. Instead, you can use the # public key within KMS by calling the Encrypt, ReEncrypt, or Verify @@ -4315,8 +4651,8 @@ def get_parameters_for_import(params = {}, options = {}) # in a verification operation. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][7] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][7] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: Yes. To perform this operation with a KMS key # in a different Amazon Web Services account, specify the key ARN or @@ -4416,9 +4752,9 @@ def get_parameters_for_import(params = {}, options = {}) # # resp.key_id #=> String # resp.public_key #=> String - # resp.customer_master_key_spec #=> String, one of "RSA_2048", "RSA_3072", "RSA_4096", "ECC_NIST_P256", "ECC_NIST_P384", "ECC_NIST_P521", "ECC_SECG_P256K1", "SYMMETRIC_DEFAULT" - # resp.key_spec #=> String, one of "RSA_2048", "RSA_3072", "RSA_4096", "ECC_NIST_P256", "ECC_NIST_P384", "ECC_NIST_P521", "ECC_SECG_P256K1", "SYMMETRIC_DEFAULT" - # resp.key_usage #=> String, one of "SIGN_VERIFY", "ENCRYPT_DECRYPT" + # resp.customer_master_key_spec #=> String, one of "RSA_2048", "RSA_3072", "RSA_4096", "ECC_NIST_P256", "ECC_NIST_P384", "ECC_NIST_P521", "ECC_SECG_P256K1", "SYMMETRIC_DEFAULT", "HMAC_224", "HMAC_256", "HMAC_384", "HMAC_512" + # resp.key_spec #=> String, one of "RSA_2048", "RSA_3072", "RSA_4096", "ECC_NIST_P256", "ECC_NIST_P384", "ECC_NIST_P521", "ECC_SECG_P256K1", "SYMMETRIC_DEFAULT", "HMAC_224", "HMAC_256", "HMAC_384", "HMAC_512" + # resp.key_usage #=> String, one of "SIGN_VERIFY", "ENCRYPT_DECRYPT", "GENERATE_VERIFY_MAC" # resp.encryption_algorithms #=> Array # resp.encryption_algorithms[0] #=> String, one of "SYMMETRIC_DEFAULT", "RSAES_OAEP_SHA_1", "RSAES_OAEP_SHA_256" # resp.signing_algorithms #=> Array @@ -4433,16 +4769,17 @@ def get_public_key(params = {}, options = {}) req.send_request(options) end - # Imports key material into an existing symmetric KMS KMS key that was - # created without key material. After you successfully import key - # material into a KMS key, you can [reimport the same key material][1] - # into that KMS key, but you cannot import different key material. - # - # You cannot perform this operation on an asymmetric KMS key or on any - # KMS key in a different Amazon Web Services account. For more - # information about creating KMS keys with no key material and then - # importing key material, see [Importing Key Material][2] in the *Key - # Management Service Developer Guide*. + # Imports key material into an existing symmetric encryption KMS key + # that was created without key material. After you successfully import + # key material into a KMS key, you can [reimport the same key + # material][1] into that KMS key, but you cannot import different key + # material. + # + # You cannot perform this operation on an asymmetric KMS key, an HMAC + # KMS key, or on any KMS key in a different Amazon Web Services account. + # For more information about creating KMS keys with no key material and + # then importing key material, see [Importing Key Material][2] in the + # *Key Management Service Developer Guide*. # # Before using this operation, call GetParametersForImport. Its response # includes a public key and an import token. Use the public key to @@ -4484,8 +4821,8 @@ def get_public_key(params = {}, options = {}) # Service Developer Guide*. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][4] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][4] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: No. You cannot perform this operation on a KMS # key in a different Amazon Web Services account. @@ -4507,10 +4844,13 @@ def get_public_key(params = {}, options = {}) # [5]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html # # @option params [required, String] :key_id - # The identifier of the symmetric KMS key that receives the imported key - # material. The KMS key's `Origin` must be `EXTERNAL`. This must be the - # same KMS key specified in the `KeyID` parameter of the corresponding - # GetParametersForImport request. + # The identifier of the symmetric encryption KMS key that receives the + # imported key material. This must be the same KMS key specified in the + # `KeyID` parameter of the corresponding GetParametersForImport request. + # The `Origin` of the KMS key must be `EXTERNAL`. You cannot perform + # this operation on an asymmetric KMS key, an HMAC KMS key, a KMS key in + # a custom key store, or on a KMS key in a different Amazon Web Services + # account # # Specify the key ID or key ARN of the KMS key. # @@ -4752,7 +5092,7 @@ def list_aliases(params = {}, options = {}) # list by grant ID or grantee principal. # # For detailed information about grants, including grant terminology, - # see [Using grants][1] in the Key Management Service Developer + # see [Grants in KMS][1] in the Key Management Service Developer # Guide . For examples of working with grants in several # programming languages, see [Programming grants][2]. # @@ -4922,7 +5262,7 @@ def list_aliases(params = {}, options = {}) # resp.grants[0].retiring_principal #=> String # resp.grants[0].issuing_account #=> String # resp.grants[0].operations #=> Array - # resp.grants[0].operations[0] #=> String, one of "Decrypt", "Encrypt", "GenerateDataKey", "GenerateDataKeyWithoutPlaintext", "ReEncryptFrom", "ReEncryptTo", "Sign", "Verify", "GetPublicKey", "CreateGrant", "RetireGrant", "DescribeKey", "GenerateDataKeyPair", "GenerateDataKeyPairWithoutPlaintext" + # resp.grants[0].operations[0] #=> String, one of "Decrypt", "Encrypt", "GenerateDataKey", "GenerateDataKeyWithoutPlaintext", "ReEncryptFrom", "ReEncryptTo", "Sign", "Verify", "GetPublicKey", "CreateGrant", "RetireGrant", "DescribeKey", "GenerateDataKeyPair", "GenerateDataKeyPairWithoutPlaintext", "GenerateMac", "VerifyMac" # resp.grants[0].constraints.encryption_context_subset #=> Hash # resp.grants[0].constraints.encryption_context_subset["EncryptionContextKey"] #=> String # resp.grants[0].constraints.encryption_context_equals #=> Hash @@ -5278,7 +5618,7 @@ def list_resource_tags(params = {}, options = {}) # a grant, use the RetireGrant operation. # # For detailed information about grants, including grant terminology, - # see [Using grants][1] in the Key Management Service Developer + # see [Grants in KMS][1] in the Key Management Service Developer # Guide . For examples of working with grants in several # programming languages, see [Programming grants][2]. # @@ -5390,7 +5730,7 @@ def list_resource_tags(params = {}, options = {}) # resp.grants[0].retiring_principal #=> String # resp.grants[0].issuing_account #=> String # resp.grants[0].operations #=> Array - # resp.grants[0].operations[0] #=> String, one of "Decrypt", "Encrypt", "GenerateDataKey", "GenerateDataKeyWithoutPlaintext", "ReEncryptFrom", "ReEncryptTo", "Sign", "Verify", "GetPublicKey", "CreateGrant", "RetireGrant", "DescribeKey", "GenerateDataKeyPair", "GenerateDataKeyPairWithoutPlaintext" + # resp.grants[0].operations[0] #=> String, one of "Decrypt", "Encrypt", "GenerateDataKey", "GenerateDataKeyWithoutPlaintext", "ReEncryptFrom", "ReEncryptTo", "Sign", "Verify", "GetPublicKey", "CreateGrant", "RetireGrant", "DescribeKey", "GenerateDataKeyPair", "GenerateDataKeyPairWithoutPlaintext", "GenerateMac", "VerifyMac" # resp.grants[0].constraints.encryption_context_subset #=> Hash # resp.grants[0].constraints.encryption_context_subset["EncryptionContextKey"] #=> String # resp.grants[0].constraints.encryption_context_equals #=> Hash @@ -5540,7 +5880,7 @@ def put_key_policy(params = {}, options = {}) # [encryption context][2] of a ciphertext. # # The `ReEncrypt` operation can decrypt ciphertext that was encrypted by - # using an KMS KMS key in an KMS operation, such as Encrypt or + # using a KMS key in an KMS operation, such as Encrypt or # GenerateDataKey. It can also decrypt ciphertext that was encrypted by # using the public key of an [asymmetric KMS key][3] outside of KMS. # However, it cannot decrypt ciphertext produced by other libraries, @@ -5558,25 +5898,24 @@ def put_key_policy(params = {}, options = {}) # algorithm that was used. This information is required to decrypt the # data. # - # * If your ciphertext was encrypted under a symmetric KMS key, the - # `SourceKeyId` parameter is optional. KMS can get this information - # from metadata that it adds to the symmetric ciphertext blob. This - # feature adds durability to your implementation by ensuring that - # authorized users can decrypt ciphertext decades after it was - # encrypted, even if they've lost track of the key ID. However, - # specifying the source KMS key is always recommended as a best - # practice. When you use the `SourceKeyId` parameter to specify a KMS - # key, KMS uses only the KMS key you specify. If the ciphertext was - # encrypted under a different KMS key, the `ReEncrypt` operation + # * If your ciphertext was encrypted under a symmetric encryption KMS + # key, the `SourceKeyId` parameter is optional. KMS can get this + # information from metadata that it adds to the symmetric ciphertext + # blob. This feature adds durability to your implementation by + # ensuring that authorized users can decrypt ciphertext decades after + # it was encrypted, even if they've lost track of the key ID. + # However, specifying the source KMS key is always recommended as a + # best practice. When you use the `SourceKeyId` parameter to specify a + # KMS key, KMS uses only the KMS key you specify. If the ciphertext + # was encrypted under a different KMS key, the `ReEncrypt` operation # fails. This practice ensures that you use the KMS key that you # intend. # # * To reencrypt the data, you must use the `DestinationKeyId` parameter # specify the KMS key that re-encrypts the data after it is decrypted. - # You can select a symmetric or asymmetric KMS key. If the destination - # KMS key is an asymmetric KMS key, you must also provide the - # encryption algorithm. The algorithm that you choose must be - # compatible with the KMS key. + # If the destination KMS key is an asymmetric KMS key, you must also + # provide the encryption algorithm. The algorithm that you choose must + # be compatible with the KMS key. # # When you use an asymmetric KMS key to encrypt or reencrypt data, be # sure to record the KMS key and encryption algorithm that you choose. @@ -5586,14 +5925,15 @@ def put_key_policy(params = {}, options = {}) # fails. # # You are not required to supply the key ID and encryption algorithm - # when you decrypt with symmetric KMS keys because KMS stores this - # information in the ciphertext blob. KMS cannot store metadata in - # ciphertext generated with asymmetric keys. The standard format for - # asymmetric key ciphertext does not include configurable fields. + # when you decrypt with symmetric encryption KMS keys because KMS + # stores this information in the ciphertext blob. KMS cannot store + # metadata in ciphertext generated with asymmetric keys. The standard + # format for asymmetric key ciphertext does not include configurable + # fields. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][6] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][6] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: Yes. The source KMS key and destination KMS # key can be in different Amazon Web Services accounts. Either or both @@ -5644,13 +5984,14 @@ def put_key_policy(params = {}, options = {}) # ciphertext. # # An *encryption context* is a collection of non-secret key-value pairs - # that represents additional authenticated data. When you use an + # that represent additional authenticated data. When you use an # encryption context to encrypt data, you must specify the same (an # exact case-sensitive match) encryption context to decrypt the data. An - # encryption context is optional when encrypting with a symmetric KMS - # key, but it is highly recommended. + # encryption context is supported only on operations with symmetric + # encryption KMS keys. On operations with symmetric encryption KMS keys, + # an encryption context is optional, but it is strongly recommended. # - # For more information, see [Encryption Context][1] in the *Key + # For more information, see [Encryption context][1] in the *Key # Management Service Developer Guide*. # # @@ -5659,14 +6000,18 @@ def put_key_policy(params = {}, options = {}) # # @option params [String] :source_key_id # Specifies the KMS key that KMS will use to decrypt the ciphertext - # before it is re-encrypted. Enter a key ID of the KMS key that was used - # to encrypt the ciphertext. + # before it is re-encrypted. + # + # Enter a key ID of the KMS key that was used to encrypt the ciphertext. + # If you identify a different KMS key, the `ReEncrypt` operation throws + # an `IncorrectKeyException`. # # This parameter is required only when the ciphertext was encrypted - # under an asymmetric KMS key. If you used a symmetric KMS key, KMS can - # get the KMS key from metadata that it adds to the symmetric ciphertext - # blob. However, it is always recommended as a best practice. This - # practice ensures that you use the KMS key that you intend. + # under an asymmetric KMS key. If you used a symmetric encryption KMS + # key, KMS can get the KMS key from metadata that it adds to the + # symmetric ciphertext blob. However, it is always recommended as a best + # practice. This practice ensures that you use the KMS key that you + # intend. # # To specify a KMS key, use its key ID, key ARN, alias name, or alias # ARN. When using an alias name, prefix it with `"alias/"`. To specify a @@ -5689,9 +6034,9 @@ def put_key_policy(params = {}, options = {}) # # @option params [required, String] :destination_key_id # A unique identifier for the KMS key that is used to reencrypt the - # data. Specify a symmetric or asymmetric KMS key with a `KeyUsage` - # value of `ENCRYPT_DECRYPT`. To find the `KeyUsage` value of a KMS key, - # use the DescribeKey operation. + # data. Specify a symmetric encryption KMS key or an asymmetric KMS key + # with a `KeyUsage` value of `ENCRYPT_DECRYPT`. To find the `KeyUsage` + # value of a KMS key, use the DescribeKey operation. # # To specify a KMS key, use its key ID, key ARN, alias name, or alias # ARN. When using an alias name, prefix it with `"alias/"`. To specify a @@ -5717,17 +6062,18 @@ def put_key_policy(params = {}, options = {}) # data. # # A destination encryption context is valid only when the destination - # KMS key is a symmetric KMS key. The standard ciphertext format for - # asymmetric KMS keys does not include fields for metadata. + # KMS key is a symmetric encryption KMS key. The standard ciphertext + # format for asymmetric KMS keys does not include fields for metadata. # # An *encryption context* is a collection of non-secret key-value pairs - # that represents additional authenticated data. When you use an + # that represent additional authenticated data. When you use an # encryption context to encrypt data, you must specify the same (an # exact case-sensitive match) encryption context to decrypt the data. An - # encryption context is optional when encrypting with a symmetric KMS - # key, but it is highly recommended. + # encryption context is supported only on operations with symmetric + # encryption KMS keys. On operations with symmetric encryption KMS keys, + # an encryption context is optional, but it is strongly recommended. # - # For more information, see [Encryption Context][1] in the *Key + # For more information, see [Encryption context][1] in the *Key # Management Service Developer Guide*. # # @@ -5737,8 +6083,8 @@ def put_key_policy(params = {}, options = {}) # @option params [String] :source_encryption_algorithm # Specifies the encryption algorithm that KMS will use to decrypt the # ciphertext before it is reencrypted. The default value, - # `SYMMETRIC_DEFAULT`, represents the algorithm used for symmetric KMS - # keys. + # `SYMMETRIC_DEFAULT`, represents the algorithm used for symmetric + # encryption KMS keys. # # Specify the same algorithm that was used to encrypt the ciphertext. If # you specify a different algorithm, the decrypt attempt fails. @@ -5750,7 +6096,7 @@ def put_key_policy(params = {}, options = {}) # Specifies the encryption algorithm that KMS will use to reecrypt the # data after it has decrypted it. The default value, # `SYMMETRIC_DEFAULT`, represents the encryption algorithm used for - # symmetric KMS keys. + # symmetric encryption KMS keys. # # This parameter is required only when the destination KMS key is an # asymmetric KMS key. @@ -5841,7 +6187,7 @@ def re_encrypt(params = {}, options = {}) # encrypt data in one Amazon Web Services Region and decrypt it in a # different Amazon Web Services Region without re-encrypting the data or # making a cross-Region call. For more information about multi-Region - # keys, see [Using multi-Region keys][1] in the *Key Management Service + # keys, see [Multi-Region keys in KMS][1] in the *Key Management Service # Developer Guide*. # # A *replica key* is a fully-functional KMS key that can be used @@ -5852,8 +6198,8 @@ def re_encrypt(params = {}, options = {}) # [automatic key rotation status][6]. KMS automatically synchronizes # these shared properties among related multi-Region keys. All other # properties of a replica key can differ, including its [key policy][7], - # [tags][8], [aliases][9], and [key state][10]. KMS pricing and quotas - # for KMS keys apply to each primary key and replica key. + # [tags][8], [aliases][9], and [Key states of KMS keys][10]. KMS pricing + # and quotas for KMS keys apply to each primary key and replica key. # # When this operation completes, the new replica key has a transient key # state of `Creating`. This key state changes to `Enabled` (or @@ -5863,9 +6209,17 @@ def re_encrypt(params = {}, options = {}) # If you are creating and using the replica key programmatically, retry # on `KMSInvalidStateException` or call `DescribeKey` to check its # `KeyState` value before using it. For details about the `Creating` key - # state, see [Key state: Effect on your KMS - # key](kms/latest/developerguide/key-state.html) in the *Key Management - # Service Developer Guide*. + # state, see [Key states of KMS keys][10] in the *Key Management Service + # Developer Guide*. + # + # You cannot create more than one replica of a primary key in any + # Region. If the Region already includes a replica of the key you're + # trying to replicate, `ReplicateKey` returns an + # `AlreadyExistsException` error. If the key state of the existing + # replica is `PendingDeletion`, you can cancel the scheduled key + # deletion (CancelKeyDeletion) or wait for the key to be deleted. The + # new replica key you create will have the same [shared properties][11] + # as the original replica key. # # The CloudTrail log of a `ReplicateKey` operation records a # `ReplicateKey` operation in the primary key's Region and a CreateKey @@ -5918,6 +6272,7 @@ def re_encrypt(params = {}, options = {}) # [8]: https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html # [9]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html # [10]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html + # [11]: https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html#mrk-sync-properties # # @option params [required, String] :key_id # Identifies the multi-Region primary key that is being replicated. To @@ -5945,24 +6300,33 @@ def re_encrypt(params = {}, options = {}) # [KMS service endpoints][1] in the *Amazon Web Services General # Reference*. # + # HMAC KMS keys are not supported in all Amazon Web Services Regions. If + # you try to replicate an HMAC KMS key in an Amazon Web Services Region + # in which HMAC keys are not supported, the `ReplicateKey` operation + # returns an `UnsupportedOperationException`. For a list of Regions in + # which HMAC KMS keys are supported, see [HMAC keys in KMS][2] in the + # *Key Management Service Developer Guide*. + # + # + # # The replica must be in a different Amazon Web Services Region than its # primary key and other replicas of that primary key, but in the same # Amazon Web Services partition. KMS must be available in the replica # Region. If the Region is not enabled by default, the Amazon Web - # Services account must be enabled in the Region. - # - # For information about Amazon Web Services partitions, see [Amazon - # Resource Names (ARNs) in the *Amazon Web Services General - # Reference*.][2] For information about enabling and disabling Regions, - # see [Enabling a Region][3] and [Disabling a Region][4] in the *Amazon - # Web Services General Reference*. + # Services account must be enabled in the Region. For information about + # Amazon Web Services partitions, see [Amazon Resource Names (ARNs)][3] + # in the *Amazon Web Services General Reference*. For information about + # enabling and disabling Regions, see [Enabling a Region][4] and + # [Disabling a Region][5] in the *Amazon Web Services General + # Reference*. # # # # [1]: https://docs.aws.amazon.com/general/latest/gr/kms.html#kms_region - # [2]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html - # [3]: https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-enable - # [4]: https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-disable + # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html + # [3]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html + # [4]: https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-enable + # [5]: https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-disable # # @option params [String] :policy # The key policy to attach to the KMS key. This parameter is optional. @@ -6036,8 +6400,8 @@ def re_encrypt(params = {}, options = {}) # TagResource operation. # # Tagging or untagging a KMS key can allow or deny permission to the KMS - # key. For details, see [Using ABAC in KMS][1] in the *Key Management - # Service Developer Guide*. + # key. For details, see [ABAC in KMS][1] in the *Key Management Service + # Developer Guide*. # # # @@ -6142,7 +6506,7 @@ def re_encrypt(params = {}, options = {}) # resp.replica_key_metadata.creation_date #=> Time # resp.replica_key_metadata.enabled #=> Boolean # resp.replica_key_metadata.description #=> String - # resp.replica_key_metadata.key_usage #=> String, one of "SIGN_VERIFY", "ENCRYPT_DECRYPT" + # resp.replica_key_metadata.key_usage #=> String, one of "SIGN_VERIFY", "ENCRYPT_DECRYPT", "GENERATE_VERIFY_MAC" # resp.replica_key_metadata.key_state #=> String, one of "Creating", "Enabled", "Disabled", "PendingDeletion", "PendingImport", "PendingReplicaDeletion", "Unavailable", "Updating" # resp.replica_key_metadata.deletion_date #=> Time # resp.replica_key_metadata.valid_to #=> Time @@ -6151,8 +6515,8 @@ def re_encrypt(params = {}, options = {}) # resp.replica_key_metadata.cloud_hsm_cluster_id #=> String # resp.replica_key_metadata.expiration_model #=> String, one of "KEY_MATERIAL_EXPIRES", "KEY_MATERIAL_DOES_NOT_EXPIRE" # resp.replica_key_metadata.key_manager #=> String, one of "AWS", "CUSTOMER" - # resp.replica_key_metadata.customer_master_key_spec #=> String, one of "RSA_2048", "RSA_3072", "RSA_4096", "ECC_NIST_P256", "ECC_NIST_P384", "ECC_NIST_P521", "ECC_SECG_P256K1", "SYMMETRIC_DEFAULT" - # resp.replica_key_metadata.key_spec #=> String, one of "RSA_2048", "RSA_3072", "RSA_4096", "ECC_NIST_P256", "ECC_NIST_P384", "ECC_NIST_P521", "ECC_SECG_P256K1", "SYMMETRIC_DEFAULT" + # resp.replica_key_metadata.customer_master_key_spec #=> String, one of "RSA_2048", "RSA_3072", "RSA_4096", "ECC_NIST_P256", "ECC_NIST_P384", "ECC_NIST_P521", "ECC_SECG_P256K1", "SYMMETRIC_DEFAULT", "HMAC_224", "HMAC_256", "HMAC_384", "HMAC_512" + # resp.replica_key_metadata.key_spec #=> String, one of "RSA_2048", "RSA_3072", "RSA_4096", "ECC_NIST_P256", "ECC_NIST_P384", "ECC_NIST_P521", "ECC_SECG_P256K1", "SYMMETRIC_DEFAULT", "HMAC_224", "HMAC_256", "HMAC_384", "HMAC_512" # resp.replica_key_metadata.encryption_algorithms #=> Array # resp.replica_key_metadata.encryption_algorithms[0] #=> String, one of "SYMMETRIC_DEFAULT", "RSAES_OAEP_SHA_1", "RSAES_OAEP_SHA_256" # resp.replica_key_metadata.signing_algorithms #=> Array @@ -6165,6 +6529,8 @@ def re_encrypt(params = {}, options = {}) # resp.replica_key_metadata.multi_region_configuration.replica_keys[0].arn #=> String # resp.replica_key_metadata.multi_region_configuration.replica_keys[0].region #=> String # resp.replica_key_metadata.pending_deletion_window_in_days #=> Integer + # resp.replica_key_metadata.mac_algorithms #=> Array + # resp.replica_key_metadata.mac_algorithms[0] #=> String, one of "HMAC_SHA_224", "HMAC_SHA_256", "HMAC_SHA_384", "HMAC_SHA_512" # resp.replica_policy #=> String # resp.replica_tags #=> Array # resp.replica_tags[0].tag_key #=> String @@ -6186,14 +6552,13 @@ def replicate_key(params = {}, options = {}) # # This operation can be called by the *retiring principal* for a grant, # by the *grantee principal* if the grant allows the `RetireGrant` - # operation, and by the Amazon Web Services account (root user) in which - # the grant is created. It can also be called by principals to whom - # permission for retiring a grant is delegated. For details, see - # [Retiring and revoking grants][2] in the *Key Management Service - # Developer Guide*. + # operation, and by the Amazon Web Services account in which the grant + # is created. It can also be called by principals to whom permission for + # retiring a grant is delegated. For details, see [Retiring and revoking + # grants][2] in the *Key Management Service Developer Guide*. # # For detailed information about grants, including grant terminology, - # see [Using grants][3] in the Key Management Service Developer + # see [Grants in KMS][3] in the Key Management Service Developer # Guide . For examples of working with grants in several # programming languages, see [Programming grants][4]. # @@ -6291,7 +6656,7 @@ def retire_grant(params = {}, options = {}) # Service Developer Guide . # # For detailed information about grants, including grant terminology, - # see [Using grants][3] in the Key Management Service Developer + # see [Grants in KMS][3] in the Key Management Service Developer # Guide . For examples of working with grants in several # programming languages, see [Programming grants][4]. # @@ -6408,8 +6773,8 @@ def revoke_grant(params = {}, options = {}) # Guide*. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][5] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][5] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: No. You cannot perform this operation on a KMS # key in a different Amazon Web Services account. @@ -6503,11 +6868,11 @@ def schedule_key_deletion(params = {}, options = {}) end # Creates a [digital signature][1] for a message or message digest by - # using the private key in an asymmetric KMS key. To verify the + # using the private key in an asymmetric signing KMS key. To verify the # signature, use the Verify operation, or use the public key in the same - # asymmetric KMS key outside of KMS. For information about symmetric and - # asymmetric KMS keys, see [Using Symmetric and Asymmetric KMS keys][2] - # in the *Key Management Service Developer Guide*. + # asymmetric KMS key outside of KMS. For information about asymmetric + # KMS keys, see [Asymmetric KMS keys][2] in the *Key Management Service + # Developer Guide*. # # Digital signatures are generated and verified by using asymmetric key # pair, such as an RSA or ECC pair that is represented by an asymmetric @@ -6541,8 +6906,8 @@ def schedule_key_deletion(params = {}, options = {}) # KMS. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][3] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][3] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: Yes. To perform this operation with a KMS key # in a different Amazon Web Services account, specify the key ARN or @@ -6669,8 +7034,8 @@ def sign(params = {}, options = {}) # Adds or edits tags on a [customer managed key][1]. # # Tagging or untagging a KMS key can allow or deny permission to the KMS - # key. For details, see [Using ABAC in KMS][2] in the *Key Management - # Service Developer Guide*. + # key. For details, see [ABAC in KMS][2] in the *Key Management Service + # Developer Guide*. # # # @@ -6692,8 +7057,8 @@ def sign(params = {}, options = {}) # General Reference*. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][9] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][9] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: No. You cannot perform this operation on a KMS # key in a different Amazon Web Services account. @@ -6790,8 +7155,8 @@ def tag_resource(params = {}, options = {}) # specify the tag key and the KMS key. # # Tagging or untagging a KMS key can allow or deny permission to the KMS - # key. For details, see [Using ABAC in KMS][2] in the *Key Management - # Service Developer Guide*. + # key. For details, see [ABAC in KMS][2] in the *Key Management Service + # Developer Guide*. # # # @@ -6806,8 +7171,8 @@ def tag_resource(params = {}, options = {}) # General Reference*. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][5] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][5] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: No. You cannot perform this operation on a KMS # key in a different Amazon Web Services account. @@ -6888,8 +7253,8 @@ def untag_resource(params = {}, options = {}) # Amazon Web Services account and Region. # # Adding, deleting, or updating an alias can allow or deny permission to - # the KMS key. For details, see [Using ABAC in KMS][1] in the *Key - # Management Service Developer Guide*. + # the KMS key. For details, see [ABAC in KMS][1] in the *Key Management + # Service Developer Guide*. # # # @@ -6911,8 +7276,8 @@ def untag_resource(params = {}, options = {}) # ListAliases operation. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][2] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][2] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: No. You cannot perform this operation on a KMS # key in a different Amazon Web Services account. @@ -7177,8 +7542,8 @@ def update_custom_key_store(params = {}, options = {}) # key, use DescribeKey. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][1] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][1] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: No. You cannot perform this operation on a KMS # key in a different Amazon Web Services account. @@ -7260,7 +7625,7 @@ def update_key_description(params = {}, options = {}) # encrypt data in one Amazon Web Services Region and decrypt it in a # different Amazon Web Services Region without re-encrypting the data or # making a cross-Region call. For more information about multi-Region - # keys, see [Using multi-Region keys][2] in the *Key Management Service + # keys, see [Multi-Region keys in KMS][2] in the *Key Management Service # Developer Guide*. # # The *primary key* of a multi-Region key is the source for properties @@ -7290,9 +7655,8 @@ def update_key_description(params = {}, options = {}) # can use the keys in cryptographic operations, but you cannot replicate # the new primary key or perform certain management operations, such as # enabling or disabling these keys. For details about the `Updating` key - # state, see [Key state: Effect on your KMS - # key](kms/latest/developerguide/key-state.html) in the *Key Management - # Service Developer Guide*. + # state, see [Key states of KMS keys][9] in the *Key Management Service + # Developer Guide*. # # This operation does not return any output. To verify that primary key # is changed, use the DescribeKey operation. @@ -7325,6 +7689,7 @@ def update_key_description(params = {}, options = {}) # [6]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-origin # [7]: https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html # [8]: https://docs.aws.amazon.com/kms/latest/APIReference/API_ScheduleKeyDeletion.html + # [9]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html # # @option params [required, String] :key_id # Identifies the current primary key. When the operation completes, this @@ -7381,9 +7746,9 @@ def update_primary_region(params = {}, options = {}) # # A digital signature is generated by using the private key in an # asymmetric KMS key. The signature is verified by using the public key - # in the same asymmetric KMS key. For information about symmetric and - # asymmetric KMS keys, see [Using Symmetric and Asymmetric KMS keys][1] - # in the *Key Management Service Developer Guide*. + # in the same asymmetric KMS key. For information about asymmetric KMS + # keys, see [Asymmetric KMS keys][1] in the *Key Management Service + # Developer Guide*. # # To verify a digital signature, you can use the `Verify` operation. # Specify the same asymmetric KMS key, message, and signing algorithm @@ -7400,8 +7765,8 @@ def update_primary_region(params = {}, options = {}) # signatures. # # The KMS key that you use for this operation must be in a compatible - # key state. For details, see [Key state: Effect on your KMS key][2] in - # the *Key Management Service Developer Guide*. + # key state. For details, see [Key states of KMS keys][2] in the *Key + # Management Service Developer Guide*. # # **Cross-account use**\: Yes. To perform this operation with a KMS key # in a different Amazon Web Services account, specify the key ARN or @@ -7503,7 +7868,7 @@ def update_primary_region(params = {}, options = {}) # resp.to_h outputs the following: # { # key_id: "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The key ARN of the asymmetric KMS key that was used to verify the digital signature. - # signature_valid: true, # Indicates whether the signature was verified (true) or failed verification (false). + # signature_valid: true, # A value of 'true' Indicates that the signature was verified. If verification fails, the call to Verify fails. # signing_algorithm: "ECDSA_SHA_384", # The signing algorithm that was used to verify the signature. # } # @@ -7533,6 +7898,128 @@ def verify(params = {}, options = {}) req.send_request(options) end + # Verifies the hash-based message authentication code (HMAC) for a + # specified message, HMAC KMS key, and MAC algorithm. To verify the + # HMAC, `VerifyMac` computes an HMAC using the message, HMAC KMS key, + # and MAC algorithm that you specify, and compares the computed HMAC to + # the HMAC that you specify. If the HMACs are identical, the + # verification succeeds; otherwise, it fails. + # + # Verification indicates that the message hasn't changed since the HMAC + # was calculated, and the specified key was used to generate and verify + # the HMAC. + # + # This operation is part of KMS support for HMAC KMS keys. For details, + # see [HMAC keys in KMS][1] in the *Key Management Service Developer + # Guide*. + # + # The KMS key that you use for this operation must be in a compatible + # key state. For details, see [Key states of KMS keys][2] in the *Key + # Management Service Developer Guide*. + # + # **Cross-account use**\: Yes. To perform this operation with a KMS key + # in a different Amazon Web Services account, specify the key ARN or + # alias ARN in the value of the `KeyId` parameter. + # + # **Required permissions**\: [kms:VerifyMac][3] (key policy) + # + # **Related operations**\: GenerateMac + # + # + # + # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html + # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html + # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html + # + # @option params [required, String, StringIO, File] :message + # The message that will be used in the verification. Enter the same + # message that was used to generate the HMAC. + # + # GenerateMac and `VerifyMac` do not provide special handling for + # message digests. If you generated an HMAC for a hash digest of a + # message, you must verify the HMAC for the same hash digest. + # + # @option params [required, String] :key_id + # The KMS key that will be used in the verification. + # + # Enter a key ID of the KMS key that was used to generate the HMAC. If + # you identify a different KMS key, the `VerifyMac` operation fails. + # + # @option params [required, String] :mac_algorithm + # The MAC algorithm that will be used in the verification. Enter the + # same MAC algorithm that was used to compute the HMAC. This algorithm + # must be supported by the HMAC KMS key identified by the `KeyId` + # parameter. + # + # @option params [required, String, StringIO, File] :mac + # The HMAC to verify. Enter the HMAC that was generated by the + # GenerateMac operation when you specified the same message, HMAC KMS + # key, and MAC algorithm as the values specified in this request. + # + # @option params [Array] :grant_tokens + # A list of grant tokens. + # + # Use a grant token when your permission to call this operation comes + # from a new grant that has not yet achieved *eventual consistency*. For + # more information, see [Grant token][1] and [Using a grant token][2] in + # the *Key Management Service Developer Guide*. + # + # + # + # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token + # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token + # + # @return [Types::VerifyMacResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::VerifyMacResponse#key_id #key_id} => String + # * {Types::VerifyMacResponse#mac_valid #mac_valid} => Boolean + # * {Types::VerifyMacResponse#mac_algorithm #mac_algorithm} => String + # + # + # @example Example: To verify an HMAC + # + # # This example verifies an HMAC for a particular message, HMAC KMS keys, and MAC algorithm. A value of 'true' in the + # # MacValid value in the response indicates that the HMAC is valid. + # + # resp = client.verify_mac({ + # key_id: "1234abcd-12ab-34cd-56ef-1234567890ab", # The HMAC KMS key input to the HMAC algorithm. + # mac: "", # The HMAC to be verified. + # mac_algorithm: "HMAC_SHA_384", # The HMAC algorithm requested for the operation. + # message: "Hello World", # The message input to the HMAC algorithm. + # }) + # + # resp.to_h outputs the following: + # { + # key_id: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", # The key ARN of the HMAC key used in the operation. + # mac_algorithm: "HMAC_SHA_384", # The HMAC algorithm used in the operation. + # mac_valid: true, # A value of 'true' indicates that verification succeeded. If verification fails, the call to VerifyMac fails. + # } + # + # @example Request syntax with placeholder values + # + # resp = client.verify_mac({ + # message: "data", # required + # key_id: "KeyIdType", # required + # mac_algorithm: "HMAC_SHA_224", # required, accepts HMAC_SHA_224, HMAC_SHA_256, HMAC_SHA_384, HMAC_SHA_512 + # mac: "data", # required + # grant_tokens: ["GrantTokenType"], + # }) + # + # @example Response structure + # + # resp.key_id #=> String + # resp.mac_valid #=> Boolean + # resp.mac_algorithm #=> String, one of "HMAC_SHA_224", "HMAC_SHA_256", "HMAC_SHA_384", "HMAC_SHA_512" + # + # @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/VerifyMac AWS API Documentation + # + # @overload verify_mac(params = {}) + # @param [Hash] params ({}) + def verify_mac(params = {}, options = {}) + req = build_request(:verify_mac, params) + req.send_request(options) + end + # @!endgroup # @param params ({}) @@ -7546,7 +8033,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-kms' - context[:gem_version] = '1.55.0' + context[:gem_version] = '1.56.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-kms/lib/aws-sdk-kms/client_api.rb b/gems/aws-sdk-kms/lib/aws-sdk-kms/client_api.rb index fa617cccb92..72c34fe9ddd 100644 --- a/gems/aws-sdk-kms/lib/aws-sdk-kms/client_api.rb +++ b/gems/aws-sdk-kms/lib/aws-sdk-kms/client_api.rb @@ -90,6 +90,8 @@ module ClientApi GenerateDataKeyResponse = Shapes::StructureShape.new(name: 'GenerateDataKeyResponse') GenerateDataKeyWithoutPlaintextRequest = Shapes::StructureShape.new(name: 'GenerateDataKeyWithoutPlaintextRequest') GenerateDataKeyWithoutPlaintextResponse = Shapes::StructureShape.new(name: 'GenerateDataKeyWithoutPlaintextResponse') + GenerateMacRequest = Shapes::StructureShape.new(name: 'GenerateMacRequest') + GenerateMacResponse = Shapes::StructureShape.new(name: 'GenerateMacResponse') GenerateRandomRequest = Shapes::StructureShape.new(name: 'GenerateRandomRequest') GenerateRandomResponse = Shapes::StructureShape.new(name: 'GenerateRandomResponse') GetKeyPolicyRequest = Shapes::StructureShape.new(name: 'GetKeyPolicyRequest') @@ -123,6 +125,7 @@ module ClientApi InvalidKeyUsageException = Shapes::StructureShape.new(name: 'InvalidKeyUsageException') InvalidMarkerException = Shapes::StructureShape.new(name: 'InvalidMarkerException') KMSInternalException = Shapes::StructureShape.new(name: 'KMSInternalException') + KMSInvalidMacException = Shapes::StructureShape.new(name: 'KMSInvalidMacException') KMSInvalidSignatureException = Shapes::StructureShape.new(name: 'KMSInvalidSignatureException') KMSInvalidStateException = Shapes::StructureShape.new(name: 'KMSInvalidStateException') KeyIdType = Shapes::StringShape.new(name: 'KeyIdType') @@ -148,6 +151,8 @@ module ClientApi ListResourceTagsRequest = Shapes::StructureShape.new(name: 'ListResourceTagsRequest') ListResourceTagsResponse = Shapes::StructureShape.new(name: 'ListResourceTagsResponse') ListRetirableGrantsRequest = Shapes::StructureShape.new(name: 'ListRetirableGrantsRequest') + MacAlgorithmSpec = Shapes::StringShape.new(name: 'MacAlgorithmSpec') + MacAlgorithmSpecList = Shapes::ListShape.new(name: 'MacAlgorithmSpecList') MalformedPolicyDocumentException = Shapes::StructureShape.new(name: 'MalformedPolicyDocumentException') MarkerType = Shapes::StringShape.new(name: 'MarkerType') MessageType = Shapes::StringShape.new(name: 'MessageType') @@ -195,6 +200,8 @@ module ClientApi UpdateCustomKeyStoreResponse = Shapes::StructureShape.new(name: 'UpdateCustomKeyStoreResponse') UpdateKeyDescriptionRequest = Shapes::StructureShape.new(name: 'UpdateKeyDescriptionRequest') UpdatePrimaryRegionRequest = Shapes::StructureShape.new(name: 'UpdatePrimaryRegionRequest') + VerifyMacRequest = Shapes::StructureShape.new(name: 'VerifyMacRequest') + VerifyMacResponse = Shapes::StructureShape.new(name: 'VerifyMacResponse') VerifyRequest = Shapes::StructureShape.new(name: 'VerifyRequest') VerifyResponse = Shapes::StructureShape.new(name: 'VerifyResponse') WrappingKeySpec = Shapes::StringShape.new(name: 'WrappingKeySpec') @@ -433,6 +440,17 @@ module ClientApi GenerateDataKeyWithoutPlaintextResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId")) GenerateDataKeyWithoutPlaintextResponse.struct_class = Types::GenerateDataKeyWithoutPlaintextResponse + GenerateMacRequest.add_member(:message, Shapes::ShapeRef.new(shape: PlaintextType, required: true, location_name: "Message")) + GenerateMacRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId")) + GenerateMacRequest.add_member(:mac_algorithm, Shapes::ShapeRef.new(shape: MacAlgorithmSpec, required: true, location_name: "MacAlgorithm")) + GenerateMacRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens")) + GenerateMacRequest.struct_class = Types::GenerateMacRequest + + GenerateMacResponse.add_member(:mac, Shapes::ShapeRef.new(shape: CiphertextType, location_name: "Mac")) + GenerateMacResponse.add_member(:mac_algorithm, Shapes::ShapeRef.new(shape: MacAlgorithmSpec, location_name: "MacAlgorithm")) + GenerateMacResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId")) + GenerateMacResponse.struct_class = Types::GenerateMacResponse + GenerateRandomRequest.add_member(:number_of_bytes, Shapes::ShapeRef.new(shape: NumberOfBytesType, location_name: "NumberOfBytes")) GenerateRandomRequest.add_member(:custom_key_store_id, Shapes::ShapeRef.new(shape: CustomKeyStoreIdType, location_name: "CustomKeyStoreId")) GenerateRandomRequest.struct_class = Types::GenerateRandomRequest @@ -543,6 +561,9 @@ module ClientApi KMSInternalException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message")) KMSInternalException.struct_class = Types::KMSInternalException + KMSInvalidMacException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message")) + KMSInvalidMacException.struct_class = Types::KMSInvalidMacException + KMSInvalidSignatureException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message")) KMSInvalidSignatureException.struct_class = Types::KMSInvalidSignatureException @@ -577,6 +598,7 @@ module ClientApi KeyMetadata.add_member(:multi_region, Shapes::ShapeRef.new(shape: NullableBooleanType, location_name: "MultiRegion")) KeyMetadata.add_member(:multi_region_configuration, Shapes::ShapeRef.new(shape: MultiRegionConfiguration, location_name: "MultiRegionConfiguration")) KeyMetadata.add_member(:pending_deletion_window_in_days, Shapes::ShapeRef.new(shape: PendingWindowInDaysType, location_name: "PendingDeletionWindowInDays")) + KeyMetadata.add_member(:mac_algorithms, Shapes::ShapeRef.new(shape: MacAlgorithmSpecList, location_name: "MacAlgorithms")) KeyMetadata.struct_class = Types::KeyMetadata KeyUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message")) @@ -641,6 +663,8 @@ module ClientApi ListRetirableGrantsRequest.add_member(:retiring_principal, Shapes::ShapeRef.new(shape: PrincipalIdType, required: true, location_name: "RetiringPrincipal")) ListRetirableGrantsRequest.struct_class = Types::ListRetirableGrantsRequest + MacAlgorithmSpecList.member = Shapes::ShapeRef.new(shape: MacAlgorithmSpec) + MalformedPolicyDocumentException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessageType, location_name: "message")) MalformedPolicyDocumentException.struct_class = Types::MalformedPolicyDocumentException @@ -771,6 +795,18 @@ module ClientApi UpdatePrimaryRegionRequest.add_member(:primary_region, Shapes::ShapeRef.new(shape: RegionType, required: true, location_name: "PrimaryRegion")) UpdatePrimaryRegionRequest.struct_class = Types::UpdatePrimaryRegionRequest + VerifyMacRequest.add_member(:message, Shapes::ShapeRef.new(shape: PlaintextType, required: true, location_name: "Message")) + VerifyMacRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId")) + VerifyMacRequest.add_member(:mac_algorithm, Shapes::ShapeRef.new(shape: MacAlgorithmSpec, required: true, location_name: "MacAlgorithm")) + VerifyMacRequest.add_member(:mac, Shapes::ShapeRef.new(shape: CiphertextType, required: true, location_name: "Mac")) + VerifyMacRequest.add_member(:grant_tokens, Shapes::ShapeRef.new(shape: GrantTokenList, location_name: "GrantTokens")) + VerifyMacRequest.struct_class = Types::VerifyMacRequest + + VerifyMacResponse.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, location_name: "KeyId")) + VerifyMacResponse.add_member(:mac_valid, Shapes::ShapeRef.new(shape: BooleanType, location_name: "MacValid")) + VerifyMacResponse.add_member(:mac_algorithm, Shapes::ShapeRef.new(shape: MacAlgorithmSpec, location_name: "MacAlgorithm")) + VerifyMacResponse.struct_class = Types::VerifyMacResponse + VerifyRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyIdType, required: true, location_name: "KeyId")) VerifyRequest.add_member(:message, Shapes::ShapeRef.new(shape: PlaintextType, required: true, location_name: "Message")) VerifyRequest.add_member(:message_type, Shapes::ShapeRef.new(shape: MessageType, location_name: "MessageType")) @@ -1122,6 +1158,21 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException) end) + api.add_operation(:generate_mac, Seahorse::Model::Operation.new.tap do |o| + o.name = "GenerateMac" + o.http_method = "POST" + o.http_request_uri = "/" + o.input = Shapes::ShapeRef.new(shape: GenerateMacRequest) + o.output = Shapes::ShapeRef.new(shape: GenerateMacResponse) + o.errors << Shapes::ShapeRef.new(shape: NotFoundException) + o.errors << Shapes::ShapeRef.new(shape: DisabledException) + o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException) + o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException) + o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException) + o.errors << Shapes::ShapeRef.new(shape: KMSInternalException) + o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException) + end) + api.add_operation(:generate_random, Seahorse::Model::Operation.new.tap do |o| o.name = "GenerateRandom" o.http_method = "POST" @@ -1525,6 +1576,22 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException) o.errors << Shapes::ShapeRef.new(shape: KMSInvalidSignatureException) end) + + api.add_operation(:verify_mac, Seahorse::Model::Operation.new.tap do |o| + o.name = "VerifyMac" + o.http_method = "POST" + o.http_request_uri = "/" + o.input = Shapes::ShapeRef.new(shape: VerifyMacRequest) + o.output = Shapes::ShapeRef.new(shape: VerifyMacResponse) + o.errors << Shapes::ShapeRef.new(shape: NotFoundException) + o.errors << Shapes::ShapeRef.new(shape: DisabledException) + o.errors << Shapes::ShapeRef.new(shape: KeyUnavailableException) + o.errors << Shapes::ShapeRef.new(shape: InvalidKeyUsageException) + o.errors << Shapes::ShapeRef.new(shape: InvalidGrantTokenException) + o.errors << Shapes::ShapeRef.new(shape: KMSInternalException) + o.errors << Shapes::ShapeRef.new(shape: KMSInvalidMacException) + o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException) + end) end end diff --git a/gems/aws-sdk-kms/lib/aws-sdk-kms/errors.rb b/gems/aws-sdk-kms/lib/aws-sdk-kms/errors.rb index 7719f0c8934..2316caf2466 100644 --- a/gems/aws-sdk-kms/lib/aws-sdk-kms/errors.rb +++ b/gems/aws-sdk-kms/lib/aws-sdk-kms/errors.rb @@ -52,6 +52,7 @@ module Aws::KMS # * {InvalidKeyUsageException} # * {InvalidMarkerException} # * {KMSInternalException} + # * {KMSInvalidMacException} # * {KMSInvalidSignatureException} # * {KMSInvalidStateException} # * {KeyUnavailableException} @@ -442,6 +443,21 @@ def message end end + class KMSInvalidMacException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::KMS::Types::KMSInvalidMacException] data + def initialize(context, message, data = Aws::EmptyStructure.new) + super(context, message, data) + end + + # @return [String] + def message + @message || @data[:message] + end + end + class KMSInvalidSignatureException < ServiceError # @param [Seahorse::Client::RequestContext] context diff --git a/gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb b/gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb index 5cff387b4a7..4b425490de6 100644 --- a/gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb +++ b/gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb @@ -415,7 +415,7 @@ class CreateCustomKeyStoreResponse < Struct.new( # key_id: "KeyIdType", # required # grantee_principal: "PrincipalIdType", # required # retiring_principal: "PrincipalIdType", - # operations: ["Decrypt"], # required, accepts Decrypt, Encrypt, GenerateDataKey, GenerateDataKeyWithoutPlaintext, ReEncryptFrom, ReEncryptTo, Sign, Verify, GetPublicKey, CreateGrant, RetireGrant, DescribeKey, GenerateDataKeyPair, GenerateDataKeyPairWithoutPlaintext + # operations: ["Decrypt"], # required, accepts Decrypt, Encrypt, GenerateDataKey, GenerateDataKeyWithoutPlaintext, ReEncryptFrom, ReEncryptTo, Sign, Verify, GetPublicKey, CreateGrant, RetireGrant, DescribeKey, GenerateDataKeyPair, GenerateDataKeyPairWithoutPlaintext, GenerateMac, VerifyMac # constraints: { # encryption_context_subset: { # "EncryptionContextKey" => "EncryptionContextValue", @@ -491,12 +491,13 @@ class CreateCustomKeyStoreResponse < Struct.new( # @!attribute [rw] operations # A list of operations that the grant permits. # - # The operation must be supported on the KMS key. For example, you - # cannot create a grant for a symmetric KMS key that allows the Sign - # operation, or a grant for an asymmetric KMS key that allows the - # GenerateDataKey operation. If you try, KMS returns a - # `ValidationError` exception. For details, see [Grant operations][1] - # in the *Key Management Service Developer Guide*. + # This list must include only operations that are permitted in a + # grant. Also, the operation must be supported on the KMS key. For + # example, you cannot create a grant for a symmetric encryption KMS + # key that allows the Sign operation, or a grant for an asymmetric KMS + # key that allows the GenerateDataKey operation. If you try, KMS + # returns a `ValidationError` exception. For details, see [Grant + # operations][1] in the *Key Management Service Developer Guide*. # # # @@ -509,27 +510,39 @@ class CreateCustomKeyStoreResponse < Struct.new( # KMS supports the `EncryptionContextEquals` and # `EncryptionContextSubset` grant constraints. Each constraint value # can include up to 8 encryption context pairs. The encryption context - # value in each constraint cannot exceed 384 characters. + # value in each constraint cannot exceed 384 characters. For + # information about grant constraints, see [Using grant + # constraints][1] in the *Key Management Service Developer Guide*. For + # more information about encryption context, see [Encryption + # context][2] in the Key Management Service Developer Guide + # . # - # These grant constraints allow the permissions in the grant only when - # the encryption context in the request matches + # The encryption context grant constraints allow the permissions in + # the grant only when the encryption context in the request matches # (`EncryptionContextEquals`) or includes (`EncryptionContextSubset`) - # the encryption context specified in this structure. For information - # about grant constraints, see [Using grant constraints][1] in the - # *Key Management Service Developer Guide*. For more information about - # encryption context, see [Encryption Context][2] in the Key - # Management Service Developer Guide . + # the encryption context specified in this structure. # # The encryption context grant constraints are supported only on - # operations that include an encryption context. You cannot use an - # encryption context grant constraint for cryptographic operations - # with asymmetric KMS keys or for management operations, such as - # DescribeKey or RetireGrant. + # [grant operations][3] that include an `EncryptionContext` parameter, + # such as cryptographic operations on symmetric encryption KMS keys. + # Grants with grant constraints can include the DescribeKey and + # RetireGrant operations, but the constraint doesn't apply to these + # operations. If a grant with a grant constraint includes the + # `CreateGrant` operation, the constraint requires that any grants + # created with the `CreateGrant` permission have an equally strict or + # stricter encryption context constraint. + # + # You cannot use an encryption context grant constraint for + # cryptographic operations with asymmetric KMS keys or HMAC KMS keys. + # These keys don't support an encryption context. + # + # # # # # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/create-grant-overview.html#grant-constraints # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context + # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations # @return [Types::GrantConstraints] # # @!attribute [rw] grant_tokens @@ -613,9 +626,9 @@ class CreateGrantResponse < Struct.new( # { # policy: "PolicyType", # description: "DescriptionType", - # key_usage: "SIGN_VERIFY", # accepts SIGN_VERIFY, ENCRYPT_DECRYPT - # customer_master_key_spec: "RSA_2048", # accepts RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256, ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1, SYMMETRIC_DEFAULT - # key_spec: "RSA_2048", # accepts RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256, ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1, SYMMETRIC_DEFAULT + # key_usage: "SIGN_VERIFY", # accepts SIGN_VERIFY, ENCRYPT_DECRYPT, GENERATE_VERIFY_MAC + # customer_master_key_spec: "RSA_2048", # accepts RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256, ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1, SYMMETRIC_DEFAULT, HMAC_224, HMAC_256, HMAC_384, HMAC_512 + # key_spec: "RSA_2048", # accepts RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256, ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1, SYMMETRIC_DEFAULT, HMAC_224, HMAC_256, HMAC_384, HMAC_512 # origin: "AWS_KMS", # accepts AWS_KMS, EXTERNAL, AWS_CLOUDHSM # custom_key_store_id: "CustomKeyStoreIdType", # bypass_policy_lockout_safety_check: false, @@ -683,14 +696,17 @@ class CreateGrantResponse < Struct.new( # @!attribute [rw] key_usage # Determines the [cryptographic operations][1] for which you can use # the KMS key. The default value is `ENCRYPT_DECRYPT`. This parameter - # is required only for asymmetric KMS keys. You can't change the - # `KeyUsage` value after the KMS key is created. + # is optional when you are creating a symmetric encryption KMS key; + # otherwise, it is required. You can't change the `KeyUsage` value + # after the KMS key is created. # # Select only one valid value. # - # * For symmetric KMS keys, omit the parameter or specify + # * For symmetric encryption KMS keys, omit the parameter or specify # `ENCRYPT_DECRYPT`. # + # * For HMAC KMS keys (symmetric), specify `GENERATE_VERIFY_MAC`. + # # * For asymmetric KMS keys with RSA key material, specify # `ENCRYPT_DECRYPT` or `SIGN_VERIFY`. # @@ -715,33 +731,40 @@ class CreateGrantResponse < Struct.new( # Specifies the type of KMS key to create. The default value, # `SYMMETRIC_DEFAULT`, creates a KMS key with a 256-bit symmetric key # for encryption and decryption. For help choosing a key spec for your - # KMS key, see [How to Choose Your KMS key Configuration][1] in the - # Key Management Service Developer Guide . + # KMS key, see [Choosing a KMS key type][1] in the Key + # Management Service Developer Guide . # # The `KeySpec` determines whether the KMS key contains a symmetric - # key or an asymmetric key pair. It also determines the encryption - # algorithms or signing algorithms that the KMS key supports. You - # can't change the `KeySpec` after the KMS key is created. To further - # restrict the algorithms that can be used with the KMS key, use a - # condition key in its key policy or IAM policy. For more information, - # see [kms:EncryptionAlgorithm][2] or [kms:Signing Algorithm][3] in - # the Key Management Service Developer Guide . - # - # [Amazon Web Services services that are integrated with KMS][4] use - # symmetric KMS keys to protect your data. These services do not - # support asymmetric KMS keys. For help determining whether a KMS key - # is symmetric or asymmetric, see [Identifying Symmetric and - # Asymmetric KMS keys][5] in the *Key Management Service Developer - # Guide*. + # key or an asymmetric key pair. It also determines the algorithms + # that the KMS key supports. You can't change the `KeySpec` after the + # KMS key is created. To further restrict the algorithms that can be + # used with the KMS key, use a condition key in its key policy or IAM + # policy. For more information, see [kms:EncryptionAlgorithm][2], + # [kms:MacAlgorithm][3] or [kms:Signing Algorithm][4] in the + # Key Management Service Developer Guide . + # + # [Amazon Web Services services that are integrated with KMS][5] use + # symmetric encryption KMS keys to protect your data. These services + # do not support asymmetric KMS keys or HMAC KMS keys. # # KMS supports the following key specs for KMS keys: # - # * Symmetric key (default) + # * Symmetric encryption key (default) # # * `SYMMETRIC_DEFAULT` (AES-256-GCM) # # ^ # + # * HMAC keys (symmetric) + # + # * `HMAC_224` + # + # * `HMAC_256` + # + # * `HMAC_384` + # + # * `HMAC_512` + # # * Asymmetric RSA key pairs # # * `RSA_2048` @@ -767,11 +790,11 @@ class CreateGrantResponse < Struct.new( # # # - # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-choose.html + # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-types.html#symm-asymm-choose # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-encryption-algorithm - # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-signing-algorithm - # [4]: http://aws.amazon.com/kms/features/#AWS_Service_Integration - # [5]: https://docs.aws.amazon.com/kms/latest/developerguide/find-symm-asymm.html + # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-mac-algorithm + # [4]: https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-signing-algorithm + # [5]: http://aws.amazon.com/kms/features/#AWS_Service_Integration # @return [String] # # @!attribute [rw] origin @@ -783,13 +806,13 @@ class CreateGrantResponse < Struct.new( # material), set the value to `EXTERNAL`. For more information about # importing key material into KMS, see [Importing Key Material][1] in # the *Key Management Service Developer Guide*. This value is valid - # only for symmetric KMS keys. + # only for symmetric encryption KMS keys. # # To create a KMS key in an KMS [custom key store][2] and create its # key material in the associated CloudHSM cluster, set this value to # `AWS_CLOUDHSM`. You must also use the `CustomKeyStoreId` parameter # to identify the custom key store. This value is valid only for - # symmetric KMS keys. + # symmetric encryption KMS keys. # # # @@ -805,9 +828,9 @@ class CreateGrantResponse < Struct.new( # associated with the custom key store must have at least two active # HSMs, each in a different Availability Zone in the Region. # - # This parameter is valid only for symmetric KMS keys and regional KMS - # keys. You cannot create an asymmetric KMS key or a multi-Region key - # in a custom key store. + # This parameter is valid only for symmetric encryption KMS keys in a + # single Region. You cannot create any other type of KMS key in a + # custom key store. # # To find the ID of a custom key store, use the # DescribeCustomKeyStores operation. @@ -853,8 +876,8 @@ class CreateGrantResponse < Struct.new( # TagResource operation. # # Tagging or untagging a KMS key can allow or deny permission to the - # KMS key. For details, see [Using ABAC in KMS][1] in the *Key - # Management Service Developer Guide*. + # KMS key. For details, see [ABAC in KMS][1] in the *Key Management + # Service Developer Guide*. # # # @@ -895,7 +918,7 @@ class CreateGrantResponse < Struct.new( # to encrypt data in one Amazon Web Services Region and decrypt it in # a different Amazon Web Services Region without re-encrypting the # data or making a cross-Region call. For more information about - # multi-Region keys, see [Using multi-Region keys][1] in the *Key + # multi-Region keys, see [Multi-Region keys in KMS][1] in the *Key # Management Service Developer Guide*. # # This value creates a *primary key*, not a replica. To create a @@ -1170,17 +1193,20 @@ class CustomKeyStoresListEntry < Struct.new( # @!attribute [rw] encryption_context # Specifies the encryption context to use when decrypting the data. An # encryption context is valid only for [cryptographic operations][1] - # with a symmetric KMS key. The standard asymmetric encryption - # algorithms that KMS uses do not support an encryption context. + # with a symmetric encryption KMS key. The standard asymmetric + # encryption algorithms and HMAC algorithms that KMS uses do not + # support an encryption context. # # An *encryption context* is a collection of non-secret key-value - # pairs that represents additional authenticated data. When you use an + # pairs that represent additional authenticated data. When you use an # encryption context to encrypt data, you must specify the same (an # exact case-sensitive match) encryption context to decrypt the data. - # An encryption context is optional when encrypting with a symmetric - # KMS key, but it is highly recommended. + # An encryption context is supported only on operations with symmetric + # encryption KMS keys. On operations with symmetric encryption KMS + # keys, an encryption context is optional, but it is strongly + # recommended. # - # For more information, see [Encryption Context][2] in the *Key + # For more information, see [Encryption context][2] in the *Key # Management Service Developer Guide*. # # @@ -1204,15 +1230,18 @@ class CustomKeyStoresListEntry < Struct.new( # @return [Array] # # @!attribute [rw] key_id - # Specifies the KMS key that KMS uses to decrypt the ciphertext. Enter - # a key ID of the KMS key that was used to encrypt the ciphertext. + # Specifies the KMS key that KMS uses to decrypt the ciphertext. + # + # Enter a key ID of the KMS key that was used to encrypt the + # ciphertext. If you identify a different KMS key, the `Decrypt` + # operation throws an `IncorrectKeyException`. # # This parameter is required only when the ciphertext was encrypted - # under an asymmetric KMS key. If you used a symmetric KMS key, KMS - # can get the KMS key from metadata that it adds to the symmetric - # ciphertext blob. However, it is always recommended as a best - # practice. This practice ensures that you use the KMS key that you - # intend. + # under an asymmetric KMS key. If you used a symmetric encryption KMS + # key, KMS can get the KMS key from metadata that it adds to the + # symmetric ciphertext blob. However, it is always recommended as a + # best practice. This practice ensures that you use the KMS key that + # you intend. # # To specify a KMS key, use its key ID, key ARN, alias name, or alias # ARN. When using an alias name, prefix it with `"alias/"`. To specify @@ -1243,7 +1272,7 @@ class CustomKeyStoresListEntry < Struct.new( # This parameter is required only when the ciphertext was encrypted # under an asymmetric KMS key. The default value, `SYMMETRIC_DEFAULT`, # represents the only supported algorithm that is valid for symmetric - # KMS keys. + # encryption KMS keys. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DecryptRequest AWS API Documentation @@ -1570,9 +1599,10 @@ class DisableKeyRequest < Struct.new( # } # # @!attribute [rw] key_id - # Identifies a symmetric KMS key. You cannot enable or disable - # automatic rotation of [asymmetric KMS keys][1], KMS keys with - # [imported key material][2], or KMS keys in a [custom key store][3]. + # Identifies a symmetric encryption KMS key. You cannot enable or + # disable automatic rotation of [asymmetric KMS keys][1], [HMAC KMS + # keys][2], KMS keys with [imported key material][3], or KMS keys in a + # [custom key store][4]. # # Specify the key ID or key ARN of the KMS key. # @@ -1589,8 +1619,9 @@ class DisableKeyRequest < Struct.new( # # # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html#asymmetric-cmks - # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html - # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html + # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html + # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html + # [4]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisableKeyRotationRequest AWS API Documentation @@ -1678,11 +1709,11 @@ class EnableKeyRequest < Struct.new( # } # # @!attribute [rw] key_id - # Identifies a symmetric KMS key. You cannot enable automatic rotation - # of [asymmetric KMS keys][1], KMS keys with [imported key - # material][2], or KMS keys in a [custom key store][3]. To enable or - # disable automatic rotation of a set of related [multi-Region - # keys][4], set the property on the primary key. + # Identifies a symmetric encryption KMS key. You cannot enable + # automatic rotation of [asymmetric KMS keys][1], [HMAC KMS keys][2], + # KMS keys with [imported key material][3], or KMS keys in a [custom + # key store][4]. To enable or disable automatic rotation of a set of + # related [multi-Region keys][5], set the property on the primary key. # # Specify the key ID or key ARN of the KMS key. # @@ -1698,10 +1729,11 @@ class EnableKeyRequest < Struct.new( # # # - # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#asymmetric-cmks - # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html - # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html - # [4]: https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html#mrk-replica-key + # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html + # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html + # [3]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html + # [4]: https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html + # [5]: https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-rotate # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EnableKeyRotationRequest AWS API Documentation @@ -1726,7 +1758,9 @@ class EnableKeyRotationRequest < Struct.new( # } # # @!attribute [rw] key_id - # Identifies the KMS key to use in the encryption operation. + # Identifies the KMS key to use in the encryption operation. The KMS + # key must have a `KeyUsage` of `ENCRYPT_DECRYPT`. To find the + # `KeyUsage` of a KMS key, use the DescribeKey operation. # # To specify a KMS key, use its key ID, key ARN, alias name, or alias # ARN. When using an alias name, prefix it with `"alias/"`. To specify @@ -1755,18 +1789,20 @@ class EnableKeyRotationRequest < Struct.new( # @!attribute [rw] encryption_context # Specifies the encryption context that will be used to encrypt the # data. An encryption context is valid only for [cryptographic - # operations][1] with a symmetric KMS key. The standard asymmetric - # encryption algorithms that KMS uses do not support an encryption - # context. + # operations][1] with a symmetric encryption KMS key. The standard + # asymmetric encryption algorithms and HMAC algorithms that KMS uses + # do not support an encryption context. # # An *encryption context* is a collection of non-secret key-value - # pairs that represents additional authenticated data. When you use an + # pairs that represent additional authenticated data. When you use an # encryption context to encrypt data, you must specify the same (an # exact case-sensitive match) encryption context to decrypt the data. - # An encryption context is optional when encrypting with a symmetric - # KMS key, but it is highly recommended. + # An encryption context is supported only on operations with symmetric + # encryption KMS keys. On operations with symmetric encryption KMS + # keys, an encryption context is optional, but it is strongly + # recommended. # - # For more information, see [Encryption Context][2] in the *Key + # For more information, see [Encryption context][2] in the *Key # Management Service Developer Guide*. # # @@ -1795,9 +1831,9 @@ class EnableKeyRotationRequest < Struct.new( # that you specify. # # This parameter is required only for asymmetric KMS keys. The default - # value, `SYMMETRIC_DEFAULT`, is the algorithm used for symmetric KMS - # keys. If you are using an asymmetric KMS key, we recommend - # RSAES\_OAEP\_SHA\_256. + # value, `SYMMETRIC_DEFAULT`, is the algorithm used for symmetric + # encryption KMS keys. If you are using an asymmetric KMS key, we + # recommend RSAES\_OAEP\_SHA\_256. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/EncryptRequest AWS API Documentation @@ -1874,13 +1910,15 @@ class ExpiredImportTokenException < Struct.new( # the private key in the data key pair. # # An *encryption context* is a collection of non-secret key-value - # pairs that represents additional authenticated data. When you use an + # pairs that represent additional authenticated data. When you use an # encryption context to encrypt data, you must specify the same (an # exact case-sensitive match) encryption context to decrypt the data. - # An encryption context is optional when encrypting with a symmetric - # KMS key, but it is highly recommended. + # An encryption context is supported only on operations with symmetric + # encryption KMS keys. On operations with symmetric encryption KMS + # keys, an encryption context is optional, but it is strongly + # recommended. # - # For more information, see [Encryption Context][1] in the *Key + # For more information, see [Encryption context][1] in the *Key # Management Service Developer Guide*. # # @@ -1889,10 +1927,10 @@ class ExpiredImportTokenException < Struct.new( # @return [Hash] # # @!attribute [rw] key_id - # Specifies the symmetric KMS key that encrypts the private key in the - # data key pair. You cannot specify an asymmetric KMS key or a KMS key - # in a custom key store. To get the type and origin of your KMS key, - # use the DescribeKey operation. + # Specifies the symmetric encryption KMS key that encrypts the private + # key in the data key pair. You cannot specify an asymmetric KMS key + # or a KMS key in a custom key store. To get the type and origin of + # your KMS key, use the DescribeKey operation. # # To specify a KMS key, use its key ID, key ARN, alias name, or alias # ARN. When using an alias name, prefix it with `"alias/"`. To specify @@ -1961,7 +1999,9 @@ class GenerateDataKeyPairRequest < Struct.new( # @return [String] # # @!attribute [rw] public_key - # The public key (in plaintext). + # The public key (in plaintext). When you use the HTTP API or the + # Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it + # is not Base64-encoded. # @return [String] # # @!attribute [rw] key_id @@ -2006,13 +2046,15 @@ class GenerateDataKeyPairResponse < Struct.new( # the private key in the data key pair. # # An *encryption context* is a collection of non-secret key-value - # pairs that represents additional authenticated data. When you use an + # pairs that represent additional authenticated data. When you use an # encryption context to encrypt data, you must specify the same (an # exact case-sensitive match) encryption context to decrypt the data. - # An encryption context is optional when encrypting with a symmetric - # KMS key, but it is highly recommended. + # An encryption context is supported only on operations with symmetric + # encryption KMS keys. On operations with symmetric encryption KMS + # keys, an encryption context is optional, but it is strongly + # recommended. # - # For more information, see [Encryption Context][1] in the *Key + # For more information, see [Encryption context][1] in the *Key # Management Service Developer Guide*. # # @@ -2021,10 +2063,10 @@ class GenerateDataKeyPairResponse < Struct.new( # @return [Hash] # # @!attribute [rw] key_id - # Specifies the KMS key that encrypts the private key in the data key - # pair. You must specify a symmetric KMS key. You cannot use an - # asymmetric KMS key or a KMS key in a custom key store. To get the - # type and origin of your KMS key, use the DescribeKey operation. + # Specifies the symmetric encryption KMS key that encrypts the private + # key in the data key pair. You cannot specify an asymmetric KMS key + # or a KMS key in a custom key store. To get the type and origin of + # your KMS key, use the DescribeKey operation. # # To specify a KMS key, use its key ID, key ARN, alias name, or alias # ARN. When using an alias name, prefix it with `"alias/"`. To specify @@ -2087,7 +2129,9 @@ class GenerateDataKeyPairWithoutPlaintextRequest < Struct.new( # @return [String] # # @!attribute [rw] public_key - # The public key (in plaintext). + # The public key (in plaintext). When you use the HTTP API or the + # Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it + # is not Base64-encoded. # @return [String] # # @!attribute [rw] key_id @@ -2128,7 +2172,10 @@ class GenerateDataKeyPairWithoutPlaintextResponse < Struct.new( # } # # @!attribute [rw] key_id - # Identifies the symmetric KMS key that encrypts the data key. + # Specifies the symmetric encryption KMS key that encrypts the data + # key. You cannot specify an asymmetric KMS key or a KMS key in a + # custom key store. To get the type and origin of your KMS key, use + # the DescribeKey operation. # # To specify a KMS key, use its key ID, key ARN, alias name, or alias # ARN. When using an alias name, prefix it with `"alias/"`. To specify @@ -2155,13 +2202,15 @@ class GenerateDataKeyPairWithoutPlaintextResponse < Struct.new( # the data key. # # An *encryption context* is a collection of non-secret key-value - # pairs that represents additional authenticated data. When you use an + # pairs that represent additional authenticated data. When you use an # encryption context to encrypt data, you must specify the same (an # exact case-sensitive match) encryption context to decrypt the data. - # An encryption context is optional when encrypting with a symmetric - # KMS key, but it is highly recommended. + # An encryption context is supported only on operations with symmetric + # encryption KMS keys. On operations with symmetric encryption KMS + # keys, an encryption context is optional, but it is strongly + # recommended. # - # For more information, see [Encryption Context][1] in the *Key + # For more information, see [Encryption context][1] in the *Key # Management Service Developer Guide*. # # @@ -2260,7 +2309,10 @@ class GenerateDataKeyResponse < Struct.new( # } # # @!attribute [rw] key_id - # The identifier of the symmetric KMS key that encrypts the data key. + # Specifies the symmetric encryption KMS key that encrypts the data + # key. You cannot specify an asymmetric KMS key or a KMS key in a + # custom key store. To get the type and origin of your KMS key, use + # the DescribeKey operation. # # To specify a KMS key, use its key ID, key ARN, alias name, or alias # ARN. When using an alias name, prefix it with `"alias/"`. To specify @@ -2287,13 +2339,15 @@ class GenerateDataKeyResponse < Struct.new( # the data key. # # An *encryption context* is a collection of non-secret key-value - # pairs that represents additional authenticated data. When you use an + # pairs that represent additional authenticated data. When you use an # encryption context to encrypt data, you must specify the same (an # exact case-sensitive match) encryption context to decrypt the data. - # An encryption context is optional when encrypting with a symmetric - # KMS key, but it is highly recommended. + # An encryption context is supported only on operations with symmetric + # encryption KMS keys. On operations with symmetric encryption KMS + # keys, an encryption context is optional, but it is strongly + # recommended. # - # For more information, see [Encryption Context][1] in the *Key + # For more information, see [Encryption context][1] in the *Key # Management Service Developer Guide*. # # @@ -2363,6 +2417,93 @@ class GenerateDataKeyWithoutPlaintextResponse < Struct.new( include Aws::Structure end + # @note When making an API call, you may pass GenerateMacRequest + # data as a hash: + # + # { + # message: "data", # required + # key_id: "KeyIdType", # required + # mac_algorithm: "HMAC_SHA_224", # required, accepts HMAC_SHA_224, HMAC_SHA_256, HMAC_SHA_384, HMAC_SHA_512 + # grant_tokens: ["GrantTokenType"], + # } + # + # @!attribute [rw] message + # The message to be hashed. Specify a message of up to 4,096 bytes. + # + # `GenerateMac` and VerifyMac do not provide special handling for + # message digests. If you generate an HMAC for a hash digest of a + # message, you must verify the HMAC of the same hash digest. + # @return [String] + # + # @!attribute [rw] key_id + # The HMAC KMS key to use in the operation. The MAC algorithm computes + # the HMAC for the message and the key as described in [RFC 2104][1]. + # + # To identify an HMAC KMS key, use the DescribeKey operation and see + # the `KeySpec` field in the response. + # + # + # + # [1]: https://datatracker.ietf.org/doc/html/rfc2104 + # @return [String] + # + # @!attribute [rw] mac_algorithm + # The MAC algorithm used in the operation. + # + # The algorithm must be compatible with the HMAC KMS key that you + # specify. To find the MAC algorithms that your HMAC KMS key supports, + # use the DescribeKey operation and see the `MacAlgorithms` field in + # the `DescribeKey` response. + # @return [String] + # + # @!attribute [rw] grant_tokens + # A list of grant tokens. + # + # Use a grant token when your permission to call this operation comes + # from a new grant that has not yet achieved *eventual consistency*. + # For more information, see [Grant token][1] and [Using a grant + # token][2] in the *Key Management Service Developer Guide*. + # + # + # + # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token + # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token + # @return [Array] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateMacRequest AWS API Documentation + # + class GenerateMacRequest < Struct.new( + :message, + :key_id, + :mac_algorithm, + :grant_tokens) + SENSITIVE = [:message] + include Aws::Structure + end + + # @!attribute [rw] mac + # The hash-based message authentication code (HMAC) for the given + # message, key, and MAC algorithm. + # @return [String] + # + # @!attribute [rw] mac_algorithm + # The MAC algorithm that was used to generate the HMAC. + # @return [String] + # + # @!attribute [rw] key_id + # The HMAC KMS key used in the operation. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/GenerateMacResponse AWS API Documentation + # + class GenerateMacResponse < Struct.new( + :mac, + :mac_algorithm, + :key_id) + SENSITIVE = [] + include Aws::Structure + end + # @note When making an API call, you may pass GenerateRandomRequest # data as a hash: # @@ -2513,8 +2654,9 @@ class GetKeyRotationStatusResponse < Struct.new( # } # # @!attribute [rw] key_id - # The identifier of the symmetric KMS key into which you will import - # key material. The `Origin` of the KMS key must be `EXTERNAL`. + # The identifier of the symmetric encryption KMS key into which you + # will import key material. The `Origin` of the KMS key must be + # `EXTERNAL`. # # Specify the key ID or key ARN of the KMS key. # @@ -2729,10 +2871,11 @@ class GetPublicKeyResponse < Struct.new( # # KMS applies the grant constraints only to cryptographic operations # that support an encryption context, that is, all cryptographic - # operations with a [symmetric KMS key][3]. Grant constraints are not - # applied to operations that do not support an encryption context, such - # as cryptographic operations with asymmetric KMS keys and management - # operations, such as DescribeKey or RetireGrant. + # operations with a [symmetric encryption KMS key][3]. Grant constraints + # are not applied to operations that do not support an encryption + # context, such as cryptographic operations with HMAC KMS keys or + # asymmetric KMS keys, and management operations, such as DescribeKey or + # RetireGrant. # # In a cryptographic operation, the encryption context in the decryption # operation must be an exact, case-sensitive match for the keys and @@ -2880,10 +3023,13 @@ class GrantListEntry < Struct.new( # } # # @!attribute [rw] key_id - # The identifier of the symmetric KMS key that receives the imported - # key material. The KMS key's `Origin` must be `EXTERNAL`. This must - # be the same KMS key specified in the `KeyID` parameter of the - # corresponding GetParametersForImport request. + # The identifier of the symmetric encryption KMS key that receives the + # imported key material. This must be the same KMS key specified in + # the `KeyID` parameter of the corresponding GetParametersForImport + # request. The `Origin` of the KMS key must be `EXTERNAL`. You cannot + # perform this operation on an asymmetric KMS key, an HMAC KMS key, a + # KMS key in a custom key store, or on a KMS key in a different Amazon + # Web Services account # # Specify the key ID or key ARN of the KMS key. # @@ -2945,8 +3091,8 @@ class ImportKeyMaterialRequest < Struct.new( class ImportKeyMaterialResponse < Aws::EmptyStructure; end # The request was rejected because the specified KMS key cannot decrypt - # the data. The `KeyId` in a Decrypt request and the `SourceKeyId` in a - # ReEncrypt request must identify the same KMS key that was used to + # the data. The `KeyId` in a `Decrypt` request and the `SourceKeyId` in + # a `ReEncrypt` request must identify the same KMS key that was used to # encrypt the ciphertext. # # @!attribute [rw] message @@ -3095,9 +3241,11 @@ class InvalidImportTokenException < Struct.new( # key `(KeySpec`). # # For encrypting, decrypting, re-encrypting, and generating data keys, - # the `KeyUsage` must be `ENCRYPT_DECRYPT`. For signing and verifying, - # the `KeyUsage` must be `SIGN_VERIFY`. To find the `KeyUsage` of a KMS - # key, use the DescribeKey operation. + # the `KeyUsage` must be `ENCRYPT_DECRYPT`. For signing and verifying + # messages, the `KeyUsage` must be `SIGN_VERIFY`. For generating and + # verifying message authentication codes (MACs), the `KeyUsage` must be + # `GENERATE_VERIFY_MAC`. To find the `KeyUsage` of a KMS key, use the + # DescribeKey operation. # # To find the encryption or signing algorithms supported for a # particular KMS key, use the DescribeKey operation. @@ -3141,6 +3289,22 @@ class KMSInternalException < Struct.new( include Aws::Structure end + # The request was rejected because the HMAC verification failed. HMAC + # verification fails when the HMAC computed by using the specified + # message, HMAC KMS key, and MAC algorithm does not match the HMAC + # specified in the request. + # + # @!attribute [rw] message + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/KMSInvalidMacException AWS API Documentation + # + class KMSInvalidMacException < Struct.new( + :message) + SENSITIVE = [] + include Aws::Structure + end + # The request was rejected because the signature verification failed. # Signature verification fails when it cannot confirm that signature was # produced by signing the specified message with the specified KMS key @@ -3161,8 +3325,8 @@ class KMSInvalidSignatureException < Struct.new( # is not valid for this request. # # For more information about how key state affects the use of a KMS key, - # see [Key state: Effect on your KMS key][1] in the Key - # Management Service Developer Guide . + # see [Key states of KMS keys][1] in the Key Management Service + # Developer Guide . # # # @@ -3247,8 +3411,8 @@ class KeyListEntry < Struct.new( # The current status of the KMS key. # # For more information about how key state affects the use of a KMS - # key, see [Key state: Effect on your KMS key][1] in the *Key - # Management Service Developer Guide*. + # key, see [Key states of KMS keys][1] in the *Key Management Service + # Developer Guide*. # # # @@ -3355,9 +3519,8 @@ class KeyListEntry < Struct.new( # (`False`) key. This value is `True` for multi-Region primary and # replica keys and `False` for regional KMS keys. # - # For more information about multi-Region keys, see [Using - # multi-Region keys][1] in the *Key Management Service Developer - # Guide*. + # For more information about multi-Region keys, see [Multi-Region keys + # in KMS][1] in the *Key Management Service Developer Guide*. # # # @@ -3402,6 +3565,14 @@ class KeyListEntry < Struct.new( # the deletion date appears in the `DeletionDate` field. # @return [Integer] # + # @!attribute [rw] mac_algorithms + # The message authentication code (MAC) algorithm that the HMAC KMS + # key supports. + # + # This value is present only when the `KeyUsage` of the KMS key is + # `GENERATE_VERIFY_MAC`. + # @return [Array] + # # @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/KeyMetadata AWS API Documentation # class KeyMetadata < Struct.new( @@ -3426,7 +3597,8 @@ class KeyMetadata < Struct.new( :signing_algorithms, :multi_region, :multi_region_configuration, - :pending_deletion_window_in_days) + :pending_deletion_window_in_days, + :mac_algorithms) SENSITIVE = [] include Aws::Structure end @@ -3834,8 +4006,8 @@ class ListResourceTagsRequest < Struct.new( # A list of tags. Each tag consists of a tag key and a tag value. # # Tagging or untagging a KMS key can allow or deny permission to the - # KMS key. For details, see [Using ABAC in KMS][1] in the *Key - # Management Service Developer Guide*. + # KMS key. For details, see [ABAC in KMS][1] in the *Key Management + # Service Developer Guide*. # # # @@ -4126,13 +4298,15 @@ class PutKeyPolicyRequest < Struct.new( # ciphertext. # # An *encryption context* is a collection of non-secret key-value - # pairs that represents additional authenticated data. When you use an + # pairs that represent additional authenticated data. When you use an # encryption context to encrypt data, you must specify the same (an # exact case-sensitive match) encryption context to decrypt the data. - # An encryption context is optional when encrypting with a symmetric - # KMS key, but it is highly recommended. + # An encryption context is supported only on operations with symmetric + # encryption KMS keys. On operations with symmetric encryption KMS + # keys, an encryption context is optional, but it is strongly + # recommended. # - # For more information, see [Encryption Context][1] in the *Key + # For more information, see [Encryption context][1] in the *Key # Management Service Developer Guide*. # # @@ -4142,15 +4316,18 @@ class PutKeyPolicyRequest < Struct.new( # # @!attribute [rw] source_key_id # Specifies the KMS key that KMS will use to decrypt the ciphertext - # before it is re-encrypted. Enter a key ID of the KMS key that was - # used to encrypt the ciphertext. + # before it is re-encrypted. + # + # Enter a key ID of the KMS key that was used to encrypt the + # ciphertext. If you identify a different KMS key, the `ReEncrypt` + # operation throws an `IncorrectKeyException`. # # This parameter is required only when the ciphertext was encrypted - # under an asymmetric KMS key. If you used a symmetric KMS key, KMS - # can get the KMS key from metadata that it adds to the symmetric - # ciphertext blob. However, it is always recommended as a best - # practice. This practice ensures that you use the KMS key that you - # intend. + # under an asymmetric KMS key. If you used a symmetric encryption KMS + # key, KMS can get the KMS key from metadata that it adds to the + # symmetric ciphertext blob. However, it is always recommended as a + # best practice. This practice ensures that you use the KMS key that + # you intend. # # To specify a KMS key, use its key ID, key ARN, alias name, or alias # ARN. When using an alias name, prefix it with `"alias/"`. To specify @@ -4174,9 +4351,9 @@ class PutKeyPolicyRequest < Struct.new( # # @!attribute [rw] destination_key_id # A unique identifier for the KMS key that is used to reencrypt the - # data. Specify a symmetric or asymmetric KMS key with a `KeyUsage` - # value of `ENCRYPT_DECRYPT`. To find the `KeyUsage` value of a KMS - # key, use the DescribeKey operation. + # data. Specify a symmetric encryption KMS key or an asymmetric KMS + # key with a `KeyUsage` value of `ENCRYPT_DECRYPT`. To find the + # `KeyUsage` value of a KMS key, use the DescribeKey operation. # # To specify a KMS key, use its key ID, key ARN, alias name, or alias # ARN. When using an alias name, prefix it with `"alias/"`. To specify @@ -4203,17 +4380,19 @@ class PutKeyPolicyRequest < Struct.new( # data. # # A destination encryption context is valid only when the destination - # KMS key is a symmetric KMS key. The standard ciphertext format for - # asymmetric KMS keys does not include fields for metadata. + # KMS key is a symmetric encryption KMS key. The standard ciphertext + # format for asymmetric KMS keys does not include fields for metadata. # # An *encryption context* is a collection of non-secret key-value - # pairs that represents additional authenticated data. When you use an + # pairs that represent additional authenticated data. When you use an # encryption context to encrypt data, you must specify the same (an # exact case-sensitive match) encryption context to decrypt the data. - # An encryption context is optional when encrypting with a symmetric - # KMS key, but it is highly recommended. + # An encryption context is supported only on operations with symmetric + # encryption KMS keys. On operations with symmetric encryption KMS + # keys, an encryption context is optional, but it is strongly + # recommended. # - # For more information, see [Encryption Context][1] in the *Key + # For more information, see [Encryption context][1] in the *Key # Management Service Developer Guide*. # # @@ -4224,8 +4403,8 @@ class PutKeyPolicyRequest < Struct.new( # @!attribute [rw] source_encryption_algorithm # Specifies the encryption algorithm that KMS will use to decrypt the # ciphertext before it is reencrypted. The default value, - # `SYMMETRIC_DEFAULT`, represents the algorithm used for symmetric KMS - # keys. + # `SYMMETRIC_DEFAULT`, represents the algorithm used for symmetric + # encryption KMS keys. # # Specify the same algorithm that was used to encrypt the ciphertext. # If you specify a different algorithm, the decrypt attempt fails. @@ -4238,7 +4417,7 @@ class PutKeyPolicyRequest < Struct.new( # Specifies the encryption algorithm that KMS will use to reecrypt the # data after it has decrypted it. The default value, # `SYMMETRIC_DEFAULT`, represents the encryption algorithm used for - # symmetric KMS keys. + # symmetric encryption KMS keys. # # This parameter is required only when the destination KMS key is an # asymmetric KMS key. @@ -4359,24 +4538,33 @@ class ReEncryptResponse < Struct.new( # [KMS service endpoints][1] in the *Amazon Web Services General # Reference*. # + # HMAC KMS keys are not supported in all Amazon Web Services Regions. + # If you try to replicate an HMAC KMS key in an Amazon Web Services + # Region in which HMAC keys are not supported, the `ReplicateKey` + # operation returns an `UnsupportedOperationException`. For a list of + # Regions in which HMAC KMS keys are supported, see [HMAC keys in + # KMS][2] in the *Key Management Service Developer Guide*. + # + # + # # The replica must be in a different Amazon Web Services Region than # its primary key and other replicas of that primary key, but in the # same Amazon Web Services partition. KMS must be available in the # replica Region. If the Region is not enabled by default, the Amazon - # Web Services account must be enabled in the Region. - # - # For information about Amazon Web Services partitions, see [Amazon - # Resource Names (ARNs) in the *Amazon Web Services General - # Reference*.][2] For information about enabling and disabling - # Regions, see [Enabling a Region][3] and [Disabling a Region][4] in - # the *Amazon Web Services General Reference*. + # Web Services account must be enabled in the Region. For information + # about Amazon Web Services partitions, see [Amazon Resource Names + # (ARNs)][3] in the *Amazon Web Services General Reference*. For + # information about enabling and disabling Regions, see [Enabling a + # Region][4] and [Disabling a Region][5] in the *Amazon Web Services + # General Reference*. # # # # [1]: https://docs.aws.amazon.com/general/latest/gr/kms.html#kms_region - # [2]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html - # [3]: https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-enable - # [4]: https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-disable + # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html + # [3]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html + # [4]: https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-enable + # [5]: https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-disable # @return [String] # # @!attribute [rw] policy @@ -4455,8 +4643,8 @@ class ReEncryptResponse < Struct.new( # the TagResource operation. # # Tagging or untagging a KMS key can allow or deny permission to the - # KMS key. For details, see [Using ABAC in KMS][1] in the *Key - # Management Service Developer Guide*. + # KMS key. For details, see [ABAC in KMS][1] in the *Key Management + # Service Developer Guide*. # # # @@ -4500,9 +4688,9 @@ class ReplicateKeyRequest < Struct.new( # @!attribute [rw] replica_key_metadata # Displays details about the new replica key, including its Amazon - # Resource Name ([key ARN][1]) and [key state][2]. It also includes - # the ARN and Amazon Web Services Region of its primary key and other - # replica keys. + # Resource Name ([key ARN][1]) and [Key states of KMS keys][2]. It + # also includes the ARN and Amazon Web Services Region of its primary + # key and other replica keys. # # # @@ -4690,8 +4878,8 @@ class ScheduleKeyDeletionRequest < Struct.new( # The current status of the KMS key. # # For more information about how key state affects the use of a KMS - # key, see [Key state: Effect on your KMS key][1] in the *Key - # Management Service Developer Guide*. + # key, see [Key states of KMS keys][1] in the *Key Management Service + # Developer Guide*. # # # @@ -5194,6 +5382,100 @@ class UpdatePrimaryRegionRequest < Struct.new( include Aws::Structure end + # @note When making an API call, you may pass VerifyMacRequest + # data as a hash: + # + # { + # message: "data", # required + # key_id: "KeyIdType", # required + # mac_algorithm: "HMAC_SHA_224", # required, accepts HMAC_SHA_224, HMAC_SHA_256, HMAC_SHA_384, HMAC_SHA_512 + # mac: "data", # required + # grant_tokens: ["GrantTokenType"], + # } + # + # @!attribute [rw] message + # The message that will be used in the verification. Enter the same + # message that was used to generate the HMAC. + # + # GenerateMac and `VerifyMac` do not provide special handling for + # message digests. If you generated an HMAC for a hash digest of a + # message, you must verify the HMAC for the same hash digest. + # @return [String] + # + # @!attribute [rw] key_id + # The KMS key that will be used in the verification. + # + # Enter a key ID of the KMS key that was used to generate the HMAC. If + # you identify a different KMS key, the `VerifyMac` operation fails. + # @return [String] + # + # @!attribute [rw] mac_algorithm + # The MAC algorithm that will be used in the verification. Enter the + # same MAC algorithm that was used to compute the HMAC. This algorithm + # must be supported by the HMAC KMS key identified by the `KeyId` + # parameter. + # @return [String] + # + # @!attribute [rw] mac + # The HMAC to verify. Enter the HMAC that was generated by the + # GenerateMac operation when you specified the same message, HMAC KMS + # key, and MAC algorithm as the values specified in this request. + # @return [String] + # + # @!attribute [rw] grant_tokens + # A list of grant tokens. + # + # Use a grant token when your permission to call this operation comes + # from a new grant that has not yet achieved *eventual consistency*. + # For more information, see [Grant token][1] and [Using a grant + # token][2] in the *Key Management Service Developer Guide*. + # + # + # + # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token + # [2]: https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token + # @return [Array] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/VerifyMacRequest AWS API Documentation + # + class VerifyMacRequest < Struct.new( + :message, + :key_id, + :mac_algorithm, + :mac, + :grant_tokens) + SENSITIVE = [:message] + include Aws::Structure + end + + # @!attribute [rw] key_id + # The HMAC KMS key used in the verification. + # @return [String] + # + # @!attribute [rw] mac_valid + # A Boolean value that indicates whether the HMAC was verified. A + # value of `True` indicates that the HMAC (`Mac`) was generated with + # the specified `Message`, HMAC KMS key (`KeyID`) and `MacAlgorithm.`. + # + # If the HMAC is not verified, the `VerifyMac` operation fails with a + # `KMSInvalidMacException` exception. This exception indicates that + # one or more of the inputs changed since the HMAC was computed. + # @return [Boolean] + # + # @!attribute [rw] mac_algorithm + # The MAC algorithm used in the verification. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/VerifyMacResponse AWS API Documentation + # + class VerifyMacResponse < Struct.new( + :key_id, + :mac_valid, + :mac_algorithm) + SENSITIVE = [] + include Aws::Structure + end + # @note When making an API call, you may pass VerifyRequest # data as a hash: # diff --git a/gems/aws-sdk-personalize/CHANGELOG.md b/gems/aws-sdk-personalize/CHANGELOG.md index fbd1dc4a764..5047c6bf338 100644 --- a/gems/aws-sdk-personalize/CHANGELOG.md +++ b/gems/aws-sdk-personalize/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.41.0 (2022-04-19) +------------------ + +* Feature - Adding StartRecommender and StopRecommender APIs for Personalize. + 1.40.0 (2022-04-07) ------------------ diff --git a/gems/aws-sdk-personalize/VERSION b/gems/aws-sdk-personalize/VERSION index 32b7211cb61..7d47e599800 100644 --- a/gems/aws-sdk-personalize/VERSION +++ b/gems/aws-sdk-personalize/VERSION @@ -1 +1 @@ -1.40.0 +1.41.0 diff --git a/gems/aws-sdk-personalize/lib/aws-sdk-personalize.rb b/gems/aws-sdk-personalize/lib/aws-sdk-personalize.rb index 777c819bcf7..3e864c9098a 100644 --- a/gems/aws-sdk-personalize/lib/aws-sdk-personalize.rb +++ b/gems/aws-sdk-personalize/lib/aws-sdk-personalize.rb @@ -48,6 +48,6 @@ # @!group service module Aws::Personalize - GEM_VERSION = '1.40.0' + GEM_VERSION = '1.41.0' end diff --git a/gems/aws-sdk-personalize/lib/aws-sdk-personalize/client.rb b/gems/aws-sdk-personalize/lib/aws-sdk-personalize/client.rb index ea14a1139b5..794c69b8d15 100644 --- a/gems/aws-sdk-personalize/lib/aws-sdk-personalize/client.rb +++ b/gems/aws-sdk-personalize/lib/aws-sdk-personalize/client.rb @@ -3575,6 +3575,65 @@ def list_tags_for_resource(params = {}, options = {}) req.send_request(options) end + # Starts a recommender that is INACTIVE. Starting a recommender does not + # create any new models, but resumes billing and automatic retraining + # for the recommender. + # + # @option params [required, String] :recommender_arn + # The Amazon Resource Name (ARN) of the recommender to start. + # + # @return [Types::StartRecommenderResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::StartRecommenderResponse#recommender_arn #recommender_arn} => String + # + # @example Request syntax with placeholder values + # + # resp = client.start_recommender({ + # recommender_arn: "Arn", # required + # }) + # + # @example Response structure + # + # resp.recommender_arn #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/StartRecommender AWS API Documentation + # + # @overload start_recommender(params = {}) + # @param [Hash] params ({}) + def start_recommender(params = {}, options = {}) + req = build_request(:start_recommender, params) + req.send_request(options) + end + + # Stops a recommender that is ACTIVE. Stopping a recommender halts + # billing and automatic retraining for the recommender. + # + # @option params [required, String] :recommender_arn + # The Amazon Resource Name (ARN) of the recommender to stop. + # + # @return [Types::StopRecommenderResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::StopRecommenderResponse#recommender_arn #recommender_arn} => String + # + # @example Request syntax with placeholder values + # + # resp = client.stop_recommender({ + # recommender_arn: "Arn", # required + # }) + # + # @example Response structure + # + # resp.recommender_arn #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/StopRecommender AWS API Documentation + # + # @overload stop_recommender(params = {}) + # @param [Hash] params ({}) + def stop_recommender(params = {}, options = {}) + req = build_request(:stop_recommender, params) + req.send_request(options) + end + # Stops creating a solution version that is in a state of # CREATE\_PENDING or CREATE IN\_PROGRESS. # @@ -3685,8 +3744,10 @@ def untag_resource(params = {}, options = {}) # FAILED. Check the campaign status using the [DescribeCampaign][1] # operation. # - # You must wait until the `status` of the updated campaign is `ACTIVE` - # before asking the campaign for recommendations. + # You can still get recommendations from a campaign while an update is + # in progress. The campaign will use the previous solution version and + # campaign configuration to generate recommendations until the latest + # campaign update status is `Active`. # # # @@ -3790,7 +3851,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-personalize' - context[:gem_version] = '1.40.0' + context[:gem_version] = '1.41.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-personalize/lib/aws-sdk-personalize/client_api.rb b/gems/aws-sdk-personalize/lib/aws-sdk-personalize/client_api.rb index fdbe21cf4c3..c3eba911c8a 100644 --- a/gems/aws-sdk-personalize/lib/aws-sdk-personalize/client_api.rb +++ b/gems/aws-sdk-personalize/lib/aws-sdk-personalize/client_api.rb @@ -242,7 +242,11 @@ module ClientApi SolutionVersionSummary = Shapes::StructureShape.new(name: 'SolutionVersionSummary') SolutionVersions = Shapes::ListShape.new(name: 'SolutionVersions') Solutions = Shapes::ListShape.new(name: 'Solutions') + StartRecommenderRequest = Shapes::StructureShape.new(name: 'StartRecommenderRequest') + StartRecommenderResponse = Shapes::StructureShape.new(name: 'StartRecommenderResponse') Status = Shapes::StringShape.new(name: 'Status') + StopRecommenderRequest = Shapes::StructureShape.new(name: 'StopRecommenderRequest') + StopRecommenderResponse = Shapes::StructureShape.new(name: 'StopRecommenderResponse') StopSolutionVersionCreationRequest = Shapes::StructureShape.new(name: 'StopSolutionVersionCreationRequest') Tag = Shapes::StructureShape.new(name: 'Tag') TagKey = Shapes::StringShape.new(name: 'TagKey') @@ -1166,6 +1170,18 @@ module ClientApi Solutions.member = Shapes::ShapeRef.new(shape: SolutionSummary) + StartRecommenderRequest.add_member(:recommender_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "recommenderArn")) + StartRecommenderRequest.struct_class = Types::StartRecommenderRequest + + StartRecommenderResponse.add_member(:recommender_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "recommenderArn")) + StartRecommenderResponse.struct_class = Types::StartRecommenderResponse + + StopRecommenderRequest.add_member(:recommender_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "recommenderArn")) + StopRecommenderRequest.struct_class = Types::StopRecommenderRequest + + StopRecommenderResponse.add_member(:recommender_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "recommenderArn")) + StopRecommenderResponse.struct_class = Types::StopRecommenderResponse + StopSolutionVersionCreationRequest.add_member(:solution_version_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "solutionVersionArn")) StopSolutionVersionCreationRequest.struct_class = Types::StopSolutionVersionCreationRequest @@ -1900,6 +1916,28 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException) end) + api.add_operation(:start_recommender, Seahorse::Model::Operation.new.tap do |o| + o.name = "StartRecommender" + o.http_method = "POST" + o.http_request_uri = "/" + o.input = Shapes::ShapeRef.new(shape: StartRecommenderRequest) + o.output = Shapes::ShapeRef.new(shape: StartRecommenderResponse) + o.errors << Shapes::ShapeRef.new(shape: InvalidInputException) + o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) + o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException) + end) + + api.add_operation(:stop_recommender, Seahorse::Model::Operation.new.tap do |o| + o.name = "StopRecommender" + o.http_method = "POST" + o.http_request_uri = "/" + o.input = Shapes::ShapeRef.new(shape: StopRecommenderRequest) + o.output = Shapes::ShapeRef.new(shape: StopRecommenderResponse) + o.errors << Shapes::ShapeRef.new(shape: InvalidInputException) + o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) + o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException) + end) + api.add_operation(:stop_solution_version_creation, Seahorse::Model::Operation.new.tap do |o| o.name = "StopSolutionVersionCreation" o.http_method = "POST" diff --git a/gems/aws-sdk-personalize/lib/aws-sdk-personalize/types.rb b/gems/aws-sdk-personalize/lib/aws-sdk-personalize/types.rb index 71fdb89ff6a..8cfe19755f3 100644 --- a/gems/aws-sdk-personalize/lib/aws-sdk-personalize/types.rb +++ b/gems/aws-sdk-personalize/lib/aws-sdk-personalize/types.rb @@ -5499,6 +5499,68 @@ class SolutionVersionSummary < Struct.new( include Aws::Structure end + # @note When making an API call, you may pass StartRecommenderRequest + # data as a hash: + # + # { + # recommender_arn: "Arn", # required + # } + # + # @!attribute [rw] recommender_arn + # The Amazon Resource Name (ARN) of the recommender to start. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/StartRecommenderRequest AWS API Documentation + # + class StartRecommenderRequest < Struct.new( + :recommender_arn) + SENSITIVE = [] + include Aws::Structure + end + + # @!attribute [rw] recommender_arn + # The Amazon Resource Name (ARN) of the recommender you started. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/StartRecommenderResponse AWS API Documentation + # + class StartRecommenderResponse < Struct.new( + :recommender_arn) + SENSITIVE = [] + include Aws::Structure + end + + # @note When making an API call, you may pass StopRecommenderRequest + # data as a hash: + # + # { + # recommender_arn: "Arn", # required + # } + # + # @!attribute [rw] recommender_arn + # The Amazon Resource Name (ARN) of the recommender to stop. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/StopRecommenderRequest AWS API Documentation + # + class StopRecommenderRequest < Struct.new( + :recommender_arn) + SENSITIVE = [] + include Aws::Structure + end + + # @!attribute [rw] recommender_arn + # The Amazon Resource Name (ARN) of the recommender you stopped. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/StopRecommenderResponse AWS API Documentation + # + class StopRecommenderResponse < Struct.new( + :recommender_arn) + SENSITIVE = [] + include Aws::Structure + end + # @note When making an API call, you may pass StopSolutionVersionCreationRequest # data as a hash: # diff --git a/gems/aws-sdk-polly/CHANGELOG.md b/gems/aws-sdk-polly/CHANGELOG.md index 9f4f8b48a37..fea0e6ccd1b 100644 --- a/gems/aws-sdk-polly/CHANGELOG.md +++ b/gems/aws-sdk-polly/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.55.0 (2022-04-19) +------------------ + +* Feature - Amazon Polly adds new Austrian German voice - Hannah. Hannah is available as Neural voice only. + 1.54.0 (2022-03-22) ------------------ diff --git a/gems/aws-sdk-polly/VERSION b/gems/aws-sdk-polly/VERSION index b7921ae87bc..094d6ad00ce 100644 --- a/gems/aws-sdk-polly/VERSION +++ b/gems/aws-sdk-polly/VERSION @@ -1 +1 @@ -1.54.0 +1.55.0 diff --git a/gems/aws-sdk-polly/lib/aws-sdk-polly.rb b/gems/aws-sdk-polly/lib/aws-sdk-polly.rb index 31d8420b5fc..29df20ba46d 100644 --- a/gems/aws-sdk-polly/lib/aws-sdk-polly.rb +++ b/gems/aws-sdk-polly/lib/aws-sdk-polly.rb @@ -48,6 +48,6 @@ # @!group service module Aws::Polly - GEM_VERSION = '1.54.0' + GEM_VERSION = '1.55.0' end diff --git a/gems/aws-sdk-polly/lib/aws-sdk-polly/client.rb b/gems/aws-sdk-polly/lib/aws-sdk-polly/client.rb index 92a8aa291b0..f4a02861b67 100644 --- a/gems/aws-sdk-polly/lib/aws-sdk-polly/client.rb +++ b/gems/aws-sdk-polly/lib/aws-sdk-polly/client.rb @@ -485,7 +485,7 @@ def delete_lexicon(params = {}, options = {}) # # resp = client.describe_voices({ # engine: "standard", # accepts standard, neural - # language_code: "arb", # accepts arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR, en-NZ, en-ZA, ca-ES + # language_code: "arb", # accepts arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR, en-NZ, en-ZA, ca-ES, de-AT # include_additional_language_codes: false, # next_token: "NextToken", # }) @@ -494,12 +494,12 @@ def delete_lexicon(params = {}, options = {}) # # resp.voices #=> Array # resp.voices[0].gender #=> String, one of "Female", "Male" - # resp.voices[0].id #=> String, one of "Aditi", "Amy", "Astrid", "Bianca", "Brian", "Camila", "Carla", "Carmen", "Celine", "Chantal", "Conchita", "Cristiano", "Dora", "Emma", "Enrique", "Ewa", "Filiz", "Gabrielle", "Geraint", "Giorgio", "Gwyneth", "Hans", "Ines", "Ivy", "Jacek", "Jan", "Joanna", "Joey", "Justin", "Karl", "Kendra", "Kevin", "Kimberly", "Lea", "Liv", "Lotte", "Lucia", "Lupe", "Mads", "Maja", "Marlene", "Mathieu", "Matthew", "Maxim", "Mia", "Miguel", "Mizuki", "Naja", "Nicole", "Olivia", "Penelope", "Raveena", "Ricardo", "Ruben", "Russell", "Salli", "Seoyeon", "Takumi", "Tatyana", "Vicki", "Vitoria", "Zeina", "Zhiyu", "Aria", "Ayanda", "Arlet" - # resp.voices[0].language_code #=> String, one of "arb", "cmn-CN", "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-MX", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "ja-JP", "hi-IN", "ko-KR", "nb-NO", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sv-SE", "tr-TR", "en-NZ", "en-ZA", "ca-ES" + # resp.voices[0].id #=> String, one of "Aditi", "Amy", "Astrid", "Bianca", "Brian", "Camila", "Carla", "Carmen", "Celine", "Chantal", "Conchita", "Cristiano", "Dora", "Emma", "Enrique", "Ewa", "Filiz", "Gabrielle", "Geraint", "Giorgio", "Gwyneth", "Hans", "Ines", "Ivy", "Jacek", "Jan", "Joanna", "Joey", "Justin", "Karl", "Kendra", "Kevin", "Kimberly", "Lea", "Liv", "Lotte", "Lucia", "Lupe", "Mads", "Maja", "Marlene", "Mathieu", "Matthew", "Maxim", "Mia", "Miguel", "Mizuki", "Naja", "Nicole", "Olivia", "Penelope", "Raveena", "Ricardo", "Ruben", "Russell", "Salli", "Seoyeon", "Takumi", "Tatyana", "Vicki", "Vitoria", "Zeina", "Zhiyu", "Aria", "Ayanda", "Arlet", "Hannah" + # resp.voices[0].language_code #=> String, one of "arb", "cmn-CN", "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-MX", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "ja-JP", "hi-IN", "ko-KR", "nb-NO", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sv-SE", "tr-TR", "en-NZ", "en-ZA", "ca-ES", "de-AT" # resp.voices[0].language_name #=> String # resp.voices[0].name #=> String # resp.voices[0].additional_language_codes #=> Array - # resp.voices[0].additional_language_codes[0] #=> String, one of "arb", "cmn-CN", "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-MX", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "ja-JP", "hi-IN", "ko-KR", "nb-NO", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sv-SE", "tr-TR", "en-NZ", "en-ZA", "ca-ES" + # resp.voices[0].additional_language_codes[0] #=> String, one of "arb", "cmn-CN", "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-MX", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "ja-JP", "hi-IN", "ko-KR", "nb-NO", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sv-SE", "tr-TR", "en-NZ", "en-ZA", "ca-ES", "de-AT" # resp.voices[0].supported_engines #=> Array # resp.voices[0].supported_engines[0] #=> String, one of "standard", "neural" # resp.next_token #=> String @@ -565,7 +565,7 @@ def describe_voices(params = {}, options = {}) # resp.lexicon.content #=> String # resp.lexicon.name #=> String # resp.lexicon_attributes.alphabet #=> String - # resp.lexicon_attributes.language_code #=> String, one of "arb", "cmn-CN", "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-MX", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "ja-JP", "hi-IN", "ko-KR", "nb-NO", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sv-SE", "tr-TR", "en-NZ", "en-ZA", "ca-ES" + # resp.lexicon_attributes.language_code #=> String, one of "arb", "cmn-CN", "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-MX", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "ja-JP", "hi-IN", "ko-KR", "nb-NO", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sv-SE", "tr-TR", "en-NZ", "en-ZA", "ca-ES", "de-AT" # resp.lexicon_attributes.last_modified #=> Time # resp.lexicon_attributes.lexicon_arn #=> String # resp.lexicon_attributes.lexemes_count #=> Integer @@ -615,8 +615,8 @@ def get_lexicon(params = {}, options = {}) # resp.synthesis_task.speech_mark_types #=> Array # resp.synthesis_task.speech_mark_types[0] #=> String, one of "sentence", "ssml", "viseme", "word" # resp.synthesis_task.text_type #=> String, one of "ssml", "text" - # resp.synthesis_task.voice_id #=> String, one of "Aditi", "Amy", "Astrid", "Bianca", "Brian", "Camila", "Carla", "Carmen", "Celine", "Chantal", "Conchita", "Cristiano", "Dora", "Emma", "Enrique", "Ewa", "Filiz", "Gabrielle", "Geraint", "Giorgio", "Gwyneth", "Hans", "Ines", "Ivy", "Jacek", "Jan", "Joanna", "Joey", "Justin", "Karl", "Kendra", "Kevin", "Kimberly", "Lea", "Liv", "Lotte", "Lucia", "Lupe", "Mads", "Maja", "Marlene", "Mathieu", "Matthew", "Maxim", "Mia", "Miguel", "Mizuki", "Naja", "Nicole", "Olivia", "Penelope", "Raveena", "Ricardo", "Ruben", "Russell", "Salli", "Seoyeon", "Takumi", "Tatyana", "Vicki", "Vitoria", "Zeina", "Zhiyu", "Aria", "Ayanda", "Arlet" - # resp.synthesis_task.language_code #=> String, one of "arb", "cmn-CN", "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-MX", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "ja-JP", "hi-IN", "ko-KR", "nb-NO", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sv-SE", "tr-TR", "en-NZ", "en-ZA", "ca-ES" + # resp.synthesis_task.voice_id #=> String, one of "Aditi", "Amy", "Astrid", "Bianca", "Brian", "Camila", "Carla", "Carmen", "Celine", "Chantal", "Conchita", "Cristiano", "Dora", "Emma", "Enrique", "Ewa", "Filiz", "Gabrielle", "Geraint", "Giorgio", "Gwyneth", "Hans", "Ines", "Ivy", "Jacek", "Jan", "Joanna", "Joey", "Justin", "Karl", "Kendra", "Kevin", "Kimberly", "Lea", "Liv", "Lotte", "Lucia", "Lupe", "Mads", "Maja", "Marlene", "Mathieu", "Matthew", "Maxim", "Mia", "Miguel", "Mizuki", "Naja", "Nicole", "Olivia", "Penelope", "Raveena", "Ricardo", "Ruben", "Russell", "Salli", "Seoyeon", "Takumi", "Tatyana", "Vicki", "Vitoria", "Zeina", "Zhiyu", "Aria", "Ayanda", "Arlet", "Hannah" + # resp.synthesis_task.language_code #=> String, one of "arb", "cmn-CN", "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-MX", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "ja-JP", "hi-IN", "ko-KR", "nb-NO", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sv-SE", "tr-TR", "en-NZ", "en-ZA", "ca-ES", "de-AT" # # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/GetSpeechSynthesisTask AWS API Documentation # @@ -680,7 +680,7 @@ def get_speech_synthesis_task(params = {}, options = {}) # resp.lexicons #=> Array # resp.lexicons[0].name #=> String # resp.lexicons[0].attributes.alphabet #=> String - # resp.lexicons[0].attributes.language_code #=> String, one of "arb", "cmn-CN", "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-MX", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "ja-JP", "hi-IN", "ko-KR", "nb-NO", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sv-SE", "tr-TR", "en-NZ", "en-ZA", "ca-ES" + # resp.lexicons[0].attributes.language_code #=> String, one of "arb", "cmn-CN", "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-MX", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "ja-JP", "hi-IN", "ko-KR", "nb-NO", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sv-SE", "tr-TR", "en-NZ", "en-ZA", "ca-ES", "de-AT" # resp.lexicons[0].attributes.last_modified #=> Time # resp.lexicons[0].attributes.lexicon_arn #=> String # resp.lexicons[0].attributes.lexemes_count #=> Integer @@ -744,8 +744,8 @@ def list_lexicons(params = {}, options = {}) # resp.synthesis_tasks[0].speech_mark_types #=> Array # resp.synthesis_tasks[0].speech_mark_types[0] #=> String, one of "sentence", "ssml", "viseme", "word" # resp.synthesis_tasks[0].text_type #=> String, one of "ssml", "text" - # resp.synthesis_tasks[0].voice_id #=> String, one of "Aditi", "Amy", "Astrid", "Bianca", "Brian", "Camila", "Carla", "Carmen", "Celine", "Chantal", "Conchita", "Cristiano", "Dora", "Emma", "Enrique", "Ewa", "Filiz", "Gabrielle", "Geraint", "Giorgio", "Gwyneth", "Hans", "Ines", "Ivy", "Jacek", "Jan", "Joanna", "Joey", "Justin", "Karl", "Kendra", "Kevin", "Kimberly", "Lea", "Liv", "Lotte", "Lucia", "Lupe", "Mads", "Maja", "Marlene", "Mathieu", "Matthew", "Maxim", "Mia", "Miguel", "Mizuki", "Naja", "Nicole", "Olivia", "Penelope", "Raveena", "Ricardo", "Ruben", "Russell", "Salli", "Seoyeon", "Takumi", "Tatyana", "Vicki", "Vitoria", "Zeina", "Zhiyu", "Aria", "Ayanda", "Arlet" - # resp.synthesis_tasks[0].language_code #=> String, one of "arb", "cmn-CN", "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-MX", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "ja-JP", "hi-IN", "ko-KR", "nb-NO", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sv-SE", "tr-TR", "en-NZ", "en-ZA", "ca-ES" + # resp.synthesis_tasks[0].voice_id #=> String, one of "Aditi", "Amy", "Astrid", "Bianca", "Brian", "Camila", "Carla", "Carmen", "Celine", "Chantal", "Conchita", "Cristiano", "Dora", "Emma", "Enrique", "Ewa", "Filiz", "Gabrielle", "Geraint", "Giorgio", "Gwyneth", "Hans", "Ines", "Ivy", "Jacek", "Jan", "Joanna", "Joey", "Justin", "Karl", "Kendra", "Kevin", "Kimberly", "Lea", "Liv", "Lotte", "Lucia", "Lupe", "Mads", "Maja", "Marlene", "Mathieu", "Matthew", "Maxim", "Mia", "Miguel", "Mizuki", "Naja", "Nicole", "Olivia", "Penelope", "Raveena", "Ricardo", "Ruben", "Russell", "Salli", "Seoyeon", "Takumi", "Tatyana", "Vicki", "Vitoria", "Zeina", "Zhiyu", "Aria", "Ayanda", "Arlet", "Hannah" + # resp.synthesis_tasks[0].language_code #=> String, one of "arb", "cmn-CN", "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-MX", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "ja-JP", "hi-IN", "ko-KR", "nb-NO", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sv-SE", "tr-TR", "en-NZ", "en-ZA", "ca-ES", "de-AT" # # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ListSpeechSynthesisTasks AWS API Documentation # @@ -892,7 +892,7 @@ def put_lexicon(params = {}, options = {}) # # resp = client.start_speech_synthesis_task({ # engine: "standard", # accepts standard, neural - # language_code: "arb", # accepts arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR, en-NZ, en-ZA, ca-ES + # language_code: "arb", # accepts arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR, en-NZ, en-ZA, ca-ES, de-AT # lexicon_names: ["LexiconName"], # output_format: "json", # required, accepts json, mp3, ogg_vorbis, pcm # output_s3_bucket_name: "OutputS3BucketName", # required @@ -902,7 +902,7 @@ def put_lexicon(params = {}, options = {}) # speech_mark_types: ["sentence"], # accepts sentence, ssml, viseme, word # text: "Text", # required # text_type: "ssml", # accepts ssml, text - # voice_id: "Aditi", # required, accepts Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla, Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa, Filiz, Gabrielle, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna, Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte, Lucia, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki, Naja, Nicole, Olivia, Penelope, Raveena, Ricardo, Ruben, Russell, Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu, Aria, Ayanda, Arlet + # voice_id: "Aditi", # required, accepts Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla, Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa, Filiz, Gabrielle, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna, Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte, Lucia, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki, Naja, Nicole, Olivia, Penelope, Raveena, Ricardo, Ruben, Russell, Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu, Aria, Ayanda, Arlet, Hannah # }) # # @example Response structure @@ -922,8 +922,8 @@ def put_lexicon(params = {}, options = {}) # resp.synthesis_task.speech_mark_types #=> Array # resp.synthesis_task.speech_mark_types[0] #=> String, one of "sentence", "ssml", "viseme", "word" # resp.synthesis_task.text_type #=> String, one of "ssml", "text" - # resp.synthesis_task.voice_id #=> String, one of "Aditi", "Amy", "Astrid", "Bianca", "Brian", "Camila", "Carla", "Carmen", "Celine", "Chantal", "Conchita", "Cristiano", "Dora", "Emma", "Enrique", "Ewa", "Filiz", "Gabrielle", "Geraint", "Giorgio", "Gwyneth", "Hans", "Ines", "Ivy", "Jacek", "Jan", "Joanna", "Joey", "Justin", "Karl", "Kendra", "Kevin", "Kimberly", "Lea", "Liv", "Lotte", "Lucia", "Lupe", "Mads", "Maja", "Marlene", "Mathieu", "Matthew", "Maxim", "Mia", "Miguel", "Mizuki", "Naja", "Nicole", "Olivia", "Penelope", "Raveena", "Ricardo", "Ruben", "Russell", "Salli", "Seoyeon", "Takumi", "Tatyana", "Vicki", "Vitoria", "Zeina", "Zhiyu", "Aria", "Ayanda", "Arlet" - # resp.synthesis_task.language_code #=> String, one of "arb", "cmn-CN", "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-MX", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "ja-JP", "hi-IN", "ko-KR", "nb-NO", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sv-SE", "tr-TR", "en-NZ", "en-ZA", "ca-ES" + # resp.synthesis_task.voice_id #=> String, one of "Aditi", "Amy", "Astrid", "Bianca", "Brian", "Camila", "Carla", "Carmen", "Celine", "Chantal", "Conchita", "Cristiano", "Dora", "Emma", "Enrique", "Ewa", "Filiz", "Gabrielle", "Geraint", "Giorgio", "Gwyneth", "Hans", "Ines", "Ivy", "Jacek", "Jan", "Joanna", "Joey", "Justin", "Karl", "Kendra", "Kevin", "Kimberly", "Lea", "Liv", "Lotte", "Lucia", "Lupe", "Mads", "Maja", "Marlene", "Mathieu", "Matthew", "Maxim", "Mia", "Miguel", "Mizuki", "Naja", "Nicole", "Olivia", "Penelope", "Raveena", "Ricardo", "Ruben", "Russell", "Salli", "Seoyeon", "Takumi", "Tatyana", "Vicki", "Vitoria", "Zeina", "Zhiyu", "Aria", "Ayanda", "Arlet", "Hannah" + # resp.synthesis_task.language_code #=> String, one of "arb", "cmn-CN", "cy-GB", "da-DK", "de-DE", "en-AU", "en-GB", "en-GB-WLS", "en-IN", "en-US", "es-ES", "es-MX", "es-US", "fr-CA", "fr-FR", "is-IS", "it-IT", "ja-JP", "hi-IN", "ko-KR", "nb-NO", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sv-SE", "tr-TR", "en-NZ", "en-ZA", "ca-ES", "de-AT" # # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/StartSpeechSynthesisTask AWS API Documentation # @@ -1074,14 +1074,14 @@ def start_speech_synthesis_task(params = {}, options = {}) # # resp = client.synthesize_speech({ # engine: "standard", # accepts standard, neural - # language_code: "arb", # accepts arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR, en-NZ, en-ZA, ca-ES + # language_code: "arb", # accepts arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR, en-NZ, en-ZA, ca-ES, de-AT # lexicon_names: ["LexiconName"], # output_format: "json", # required, accepts json, mp3, ogg_vorbis, pcm # sample_rate: "SampleRate", # speech_mark_types: ["sentence"], # accepts sentence, ssml, viseme, word # text: "Text", # required # text_type: "ssml", # accepts ssml, text - # voice_id: "Aditi", # required, accepts Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla, Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa, Filiz, Gabrielle, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna, Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte, Lucia, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki, Naja, Nicole, Olivia, Penelope, Raveena, Ricardo, Ruben, Russell, Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu, Aria, Ayanda, Arlet + # voice_id: "Aditi", # required, accepts Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla, Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa, Filiz, Gabrielle, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna, Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte, Lucia, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki, Naja, Nicole, Olivia, Penelope, Raveena, Ricardo, Ruben, Russell, Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu, Aria, Ayanda, Arlet, Hannah # }) # # @example Response structure @@ -1112,7 +1112,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-polly' - context[:gem_version] = '1.54.0' + context[:gem_version] = '1.55.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb b/gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb index 680d6059360..cb0a6ef5324 100644 --- a/gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb +++ b/gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb @@ -39,7 +39,7 @@ class DeleteLexiconOutput < Aws::EmptyStructure; end # # { # engine: "standard", # accepts standard, neural - # language_code: "arb", # accepts arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR, en-NZ, en-ZA, ca-ES + # language_code: "arb", # accepts arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR, en-NZ, en-ZA, ca-ES, de-AT # include_additional_language_codes: false, # next_token: "NextToken", # } @@ -634,7 +634,7 @@ class SsmlMarksNotSupportedForTextTypeException < Struct.new( # # { # engine: "standard", # accepts standard, neural - # language_code: "arb", # accepts arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR, en-NZ, en-ZA, ca-ES + # language_code: "arb", # accepts arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR, en-NZ, en-ZA, ca-ES, de-AT # lexicon_names: ["LexiconName"], # output_format: "json", # required, accepts json, mp3, ogg_vorbis, pcm # output_s3_bucket_name: "OutputS3BucketName", # required @@ -644,7 +644,7 @@ class SsmlMarksNotSupportedForTextTypeException < Struct.new( # speech_mark_types: ["sentence"], # accepts sentence, ssml, viseme, word # text: "Text", # required # text_type: "ssml", # accepts ssml, text - # voice_id: "Aditi", # required, accepts Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla, Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa, Filiz, Gabrielle, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna, Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte, Lucia, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki, Naja, Nicole, Olivia, Penelope, Raveena, Ricardo, Ruben, Russell, Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu, Aria, Ayanda, Arlet + # voice_id: "Aditi", # required, accepts Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla, Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa, Filiz, Gabrielle, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna, Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte, Lucia, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki, Naja, Nicole, Olivia, Penelope, Raveena, Ricardo, Ruben, Russell, Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu, Aria, Ayanda, Arlet, Hannah # } # # @!attribute [rw] engine @@ -890,14 +890,14 @@ class SynthesisTaskNotFoundException < Struct.new( # # { # engine: "standard", # accepts standard, neural - # language_code: "arb", # accepts arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR, en-NZ, en-ZA, ca-ES + # language_code: "arb", # accepts arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR, en-NZ, en-ZA, ca-ES, de-AT # lexicon_names: ["LexiconName"], # output_format: "json", # required, accepts json, mp3, ogg_vorbis, pcm # sample_rate: "SampleRate", # speech_mark_types: ["sentence"], # accepts sentence, ssml, viseme, word # text: "Text", # required # text_type: "ssml", # accepts ssml, text - # voice_id: "Aditi", # required, accepts Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla, Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa, Filiz, Gabrielle, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna, Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte, Lucia, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki, Naja, Nicole, Olivia, Penelope, Raveena, Ricardo, Ruben, Russell, Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu, Aria, Ayanda, Arlet + # voice_id: "Aditi", # required, accepts Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla, Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa, Filiz, Gabrielle, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna, Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte, Lucia, Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki, Naja, Nicole, Olivia, Penelope, Raveena, Ricardo, Ruben, Russell, Salli, Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu, Aria, Ayanda, Arlet, Hannah # } # # @!attribute [rw] engine diff --git a/gems/aws-sdk-redshift/CHANGELOG.md b/gems/aws-sdk-redshift/CHANGELOG.md index 0935aca6ef0..8a1982461b2 100644 --- a/gems/aws-sdk-redshift/CHANGELOG.md +++ b/gems/aws-sdk-redshift/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.81.0 (2022-04-19) +------------------ + +* Feature - Introduces new fields for LogDestinationType and LogExports on EnableLogging requests and Enable/Disable/DescribeLogging responses. Customers can now select CloudWatch Logs as a destination for their Audit Logs. + 1.80.0 (2022-03-23) ------------------ diff --git a/gems/aws-sdk-redshift/VERSION b/gems/aws-sdk-redshift/VERSION index aaceec04e04..dbd41264aa9 100644 --- a/gems/aws-sdk-redshift/VERSION +++ b/gems/aws-sdk-redshift/VERSION @@ -1 +1 @@ -1.80.0 +1.81.0 diff --git a/gems/aws-sdk-redshift/lib/aws-sdk-redshift.rb b/gems/aws-sdk-redshift/lib/aws-sdk-redshift.rb index bb2a4c16725..8a5ecde9077 100644 --- a/gems/aws-sdk-redshift/lib/aws-sdk-redshift.rb +++ b/gems/aws-sdk-redshift/lib/aws-sdk-redshift.rb @@ -49,6 +49,6 @@ # @!group service module Aws::Redshift - GEM_VERSION = '1.80.0' + GEM_VERSION = '1.81.0' end diff --git a/gems/aws-sdk-redshift/lib/aws-sdk-redshift/client.rb b/gems/aws-sdk-redshift/lib/aws-sdk-redshift/client.rb index 195b7c59cbb..d9582f5b2c6 100644 --- a/gems/aws-sdk-redshift/lib/aws-sdk-redshift/client.rb +++ b/gems/aws-sdk-redshift/lib/aws-sdk-redshift/client.rb @@ -5496,6 +5496,8 @@ def describe_hsm_configurations(params = {}, options = {}) # * {Types::LoggingStatus#last_successful_delivery_time #last_successful_delivery_time} => Time # * {Types::LoggingStatus#last_failure_time #last_failure_time} => Time # * {Types::LoggingStatus#last_failure_message #last_failure_message} => String + # * {Types::LoggingStatus#log_destination_type #log_destination_type} => String + # * {Types::LoggingStatus#log_exports #log_exports} => Array<String> # # @example Request syntax with placeholder values # @@ -5511,6 +5513,9 @@ def describe_hsm_configurations(params = {}, options = {}) # resp.last_successful_delivery_time #=> Time # resp.last_failure_time #=> Time # resp.last_failure_message #=> String + # resp.log_destination_type #=> String, one of "s3", "cloudwatch" + # resp.log_exports #=> Array + # resp.log_exports[0] #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeLoggingStatus AWS API Documentation # @@ -6646,6 +6651,8 @@ def describe_usage_limits(params = {}, options = {}) # * {Types::LoggingStatus#last_successful_delivery_time #last_successful_delivery_time} => Time # * {Types::LoggingStatus#last_failure_time #last_failure_time} => Time # * {Types::LoggingStatus#last_failure_message #last_failure_message} => String + # * {Types::LoggingStatus#log_destination_type #log_destination_type} => String + # * {Types::LoggingStatus#log_exports #log_exports} => Array<String> # # @example Request syntax with placeholder values # @@ -6661,6 +6668,9 @@ def describe_usage_limits(params = {}, options = {}) # resp.last_successful_delivery_time #=> Time # resp.last_failure_time #=> Time # resp.last_failure_message #=> String + # resp.log_destination_type #=> String, one of "s3", "cloudwatch" + # resp.log_exports #=> Array + # resp.log_exports[0] #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DisableLogging AWS API Documentation # @@ -6893,7 +6903,7 @@ def disassociate_data_share_consumer(params = {}, options = {}) # # Example: `examplecluster` # - # @option params [required, String] :bucket_name + # @option params [String] :bucket_name # The name of an existing S3 bucket where the log files are to be # stored. # @@ -6924,6 +6934,14 @@ def disassociate_data_share_consumer(params = {}, options = {}) # # * x7f or larger # + # @option params [String] :log_destination_type + # The log destination type. An enum with possible values of `s3` and + # `cloudwatch`. + # + # @option params [Array] :log_exports + # The collection of exported log types. Log types include the connection + # log, user log and user activity log. + # # @return [Types::LoggingStatus] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::LoggingStatus#logging_enabled #logging_enabled} => Boolean @@ -6932,13 +6950,17 @@ def disassociate_data_share_consumer(params = {}, options = {}) # * {Types::LoggingStatus#last_successful_delivery_time #last_successful_delivery_time} => Time # * {Types::LoggingStatus#last_failure_time #last_failure_time} => Time # * {Types::LoggingStatus#last_failure_message #last_failure_message} => String + # * {Types::LoggingStatus#log_destination_type #log_destination_type} => String + # * {Types::LoggingStatus#log_exports #log_exports} => Array<String> # # @example Request syntax with placeholder values # # resp = client.enable_logging({ # cluster_identifier: "String", # required - # bucket_name: "String", # required + # bucket_name: "String", # s3_key_prefix: "String", + # log_destination_type: "s3", # accepts s3, cloudwatch + # log_exports: ["String"], # }) # # @example Response structure @@ -6949,6 +6971,9 @@ def disassociate_data_share_consumer(params = {}, options = {}) # resp.last_successful_delivery_time #=> Time # resp.last_failure_time #=> Time # resp.last_failure_message #=> String + # resp.log_destination_type #=> String, one of "s3", "cloudwatch" + # resp.log_exports #=> Array + # resp.log_exports[0] #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EnableLogging AWS API Documentation # @@ -10089,8 +10114,8 @@ def resize_cluster(params = {}, options = {}) # The value must be either -1 or an integer between 1 and 3,653. # # @option params [String] :kms_key_id - # The Key Management Service (KMS) key ID of the encryption key to - # encrypt data in the cluster restored from a shared snapshot. You can + # The Key Management Service (KMS) key ID of the encryption key that + # encrypts data in the cluster restored from a shared snapshot. You can # also provide the key ID when you restore from an unencrypted snapshot # to an encrypted cluster in the same account. Additionally, you can # specify a new KMS key ID when you restore from an encrypted snapshot @@ -10192,7 +10217,8 @@ def resize_cluster(params = {}, options = {}) # # @option params [Boolean] :encrypted # Enables support for restoring an unencrypted snapshot to a cluster - # encrypted with Key Management Service (KMS) and a CMK. + # encrypted with Key Management Service (KMS) and a customer managed + # key. # # @return [Types::RestoreFromClusterSnapshotResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # @@ -11042,7 +11068,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-redshift' - context[:gem_version] = '1.80.0' + context[:gem_version] = '1.81.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-redshift/lib/aws-sdk-redshift/client_api.rb b/gems/aws-sdk-redshift/lib/aws-sdk-redshift/client_api.rb index 55280704e8a..ce463ad7424 100644 --- a/gems/aws-sdk-redshift/lib/aws-sdk-redshift/client_api.rb +++ b/gems/aws-sdk-redshift/lib/aws-sdk-redshift/client_api.rb @@ -319,6 +319,8 @@ module ClientApi InvalidUsageLimitFault = Shapes::StructureShape.new(name: 'InvalidUsageLimitFault') InvalidVPCNetworkStateFault = Shapes::StructureShape.new(name: 'InvalidVPCNetworkStateFault') LimitExceededFault = Shapes::StructureShape.new(name: 'LimitExceededFault') + LogDestinationType = Shapes::StringShape.new(name: 'LogDestinationType') + LogTypeList = Shapes::ListShape.new(name: 'LogTypeList') LoggingStatus = Shapes::StructureShape.new(name: 'LoggingStatus') Long = Shapes::IntegerShape.new(name: 'Long') LongOptional = Shapes::IntegerShape.new(name: 'LongOptional') @@ -1446,8 +1448,10 @@ module ClientApi EligibleTracksToUpdateList.member = Shapes::ShapeRef.new(shape: UpdateTarget, location_name: "UpdateTarget") EnableLoggingMessage.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ClusterIdentifier")) - EnableLoggingMessage.add_member(:bucket_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "BucketName")) + EnableLoggingMessage.add_member(:bucket_name, Shapes::ShapeRef.new(shape: String, location_name: "BucketName")) EnableLoggingMessage.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: String, location_name: "S3KeyPrefix")) + EnableLoggingMessage.add_member(:log_destination_type, Shapes::ShapeRef.new(shape: LogDestinationType, location_name: "LogDestinationType")) + EnableLoggingMessage.add_member(:log_exports, Shapes::ShapeRef.new(shape: LogTypeList, location_name: "LogExports")) EnableLoggingMessage.struct_class = Types::EnableLoggingMessage EnableSnapshotCopyMessage.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ClusterIdentifier")) @@ -1723,12 +1727,16 @@ module ClientApi LimitExceededFault.struct_class = Types::LimitExceededFault + LogTypeList.member = Shapes::ShapeRef.new(shape: String) + LoggingStatus.add_member(:logging_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "LoggingEnabled")) LoggingStatus.add_member(:bucket_name, Shapes::ShapeRef.new(shape: String, location_name: "BucketName")) LoggingStatus.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: String, location_name: "S3KeyPrefix")) LoggingStatus.add_member(:last_successful_delivery_time, Shapes::ShapeRef.new(shape: TStamp, location_name: "LastSuccessfulDeliveryTime")) LoggingStatus.add_member(:last_failure_time, Shapes::ShapeRef.new(shape: TStamp, location_name: "LastFailureTime")) LoggingStatus.add_member(:last_failure_message, Shapes::ShapeRef.new(shape: String, location_name: "LastFailureMessage")) + LoggingStatus.add_member(:log_destination_type, Shapes::ShapeRef.new(shape: LogDestinationType, location_name: "LogDestinationType")) + LoggingStatus.add_member(:log_exports, Shapes::ShapeRef.new(shape: LogTypeList, location_name: "LogExports")) LoggingStatus.struct_class = Types::LoggingStatus MaintenanceTrack.add_member(:maintenance_track_name, Shapes::ShapeRef.new(shape: String, location_name: "MaintenanceTrackName")) diff --git a/gems/aws-sdk-redshift/lib/aws-sdk-redshift/types.rb b/gems/aws-sdk-redshift/lib/aws-sdk-redshift/types.rb index 0b18dd88998..1039126fee8 100644 --- a/gems/aws-sdk-redshift/lib/aws-sdk-redshift/types.rb +++ b/gems/aws-sdk-redshift/lib/aws-sdk-redshift/types.rb @@ -6325,8 +6325,10 @@ class ElasticIpStatus < Struct.new( # # { # cluster_identifier: "String", # required - # bucket_name: "String", # required + # bucket_name: "String", # s3_key_prefix: "String", + # log_destination_type: "s3", # accepts s3, cloudwatch + # log_exports: ["String"], # } # # @!attribute [rw] cluster_identifier @@ -6368,12 +6370,24 @@ class ElasticIpStatus < Struct.new( # * x7f or larger # @return [String] # + # @!attribute [rw] log_destination_type + # The log destination type. An enum with possible values of `s3` and + # `cloudwatch`. + # @return [String] + # + # @!attribute [rw] log_exports + # The collection of exported log types. Log types include the + # connection log, user log and user activity log. + # @return [Array] + # # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EnableLoggingMessage AWS API Documentation # class EnableLoggingMessage < Struct.new( :cluster_identifier, :bucket_name, - :s3_key_prefix) + :s3_key_prefix, + :log_destination_type, + :log_exports) SENSITIVE = [] include Aws::Structure end @@ -7690,6 +7704,16 @@ class LimitExceededFault < Aws::EmptyStructure; end # The message indicating that logs failed to be delivered. # @return [String] # + # @!attribute [rw] log_destination_type + # The log destination type. An enum with possible values of `s3` and + # `cloudwatch`. + # @return [String] + # + # @!attribute [rw] log_exports + # The collection of exported log types. Log types include the + # connection log, user log and user activity log. + # @return [Array] + # # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/LoggingStatus AWS API Documentation # class LoggingStatus < Struct.new( @@ -7698,7 +7722,9 @@ class LoggingStatus < Struct.new( :s3_key_prefix, :last_successful_delivery_time, :last_failure_time, - :last_failure_message) + :last_failure_message, + :log_destination_type, + :log_exports) SENSITIVE = [] include Aws::Structure end @@ -10276,9 +10302,9 @@ class ResourceNotFoundFault < Aws::EmptyStructure; end # @return [Integer] # # @!attribute [rw] kms_key_id - # The Key Management Service (KMS) key ID of the encryption key to - # encrypt data in the cluster restored from a shared snapshot. You can - # also provide the key ID when you restore from an unencrypted + # The Key Management Service (KMS) key ID of the encryption key that + # encrypts data in the cluster restored from a shared snapshot. You + # can also provide the key ID when you restore from an unencrypted # snapshot to an encrypted cluster in the same account. Additionally, # you can specify a new KMS key ID when you restore from an encrypted # snapshot in the same account in order to change it. In that case, @@ -10395,7 +10421,8 @@ class ResourceNotFoundFault < Aws::EmptyStructure; end # # @!attribute [rw] encrypted # Enables support for restoring an unencrypted snapshot to a cluster - # encrypted with Key Management Service (KMS) and a CMK. + # encrypted with Key Management Service (KMS) and a customer managed + # key. # @return [Boolean] # # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RestoreFromClusterSnapshotMessage AWS API Documentation diff --git a/gems/aws-sdk-ssm/CHANGELOG.md b/gems/aws-sdk-ssm/CHANGELOG.md index 86fa9191d33..6ca730a0876 100644 --- a/gems/aws-sdk-ssm/CHANGELOG.md +++ b/gems/aws-sdk-ssm/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.135.0 (2022-04-19) +------------------ + +* Feature - Added offset support for specifying the number of days to wait after the date and time specified by a CRON expression when creating SSM association. + 1.134.0 (2022-03-25) ------------------ diff --git a/gems/aws-sdk-ssm/VERSION b/gems/aws-sdk-ssm/VERSION index c12e5e4ac1d..77c00acb562 100644 --- a/gems/aws-sdk-ssm/VERSION +++ b/gems/aws-sdk-ssm/VERSION @@ -1 +1 @@ -1.134.0 +1.135.0 diff --git a/gems/aws-sdk-ssm/lib/aws-sdk-ssm.rb b/gems/aws-sdk-ssm/lib/aws-sdk-ssm.rb index 8970a3375bd..d6d873b7033 100644 --- a/gems/aws-sdk-ssm/lib/aws-sdk-ssm.rb +++ b/gems/aws-sdk-ssm/lib/aws-sdk-ssm.rb @@ -49,6 +49,6 @@ # @!group service module Aws::SSM - GEM_VERSION = '1.134.0' + GEM_VERSION = '1.135.0' end diff --git a/gems/aws-sdk-ssm/lib/aws-sdk-ssm/client.rb b/gems/aws-sdk-ssm/lib/aws-sdk-ssm/client.rb index 48b5fb0ae7a..7259730a963 100644 --- a/gems/aws-sdk-ssm/lib/aws-sdk-ssm/client.rb +++ b/gems/aws-sdk-ssm/lib/aws-sdk-ssm/client.rb @@ -362,13 +362,14 @@ def initialize(*args) # @!group API Operations # Adds or overwrites one or more tags for the specified resource. Tags - # are metadata that you can assign to your documents, managed nodes, - # maintenance windows, Parameter Store parameters, and patch baselines. - # Tags enable you to categorize your resources in different ways, for - # example, by purpose, owner, or environment. Each tag consists of a key - # and an optional value, both of which you define. For example, you - # could define a set of tags for your account's managed nodes that - # helps you track each node's owner and stack level. For example: + # are metadata that you can assign to your automations, documents, + # managed nodes, maintenance windows, Parameter Store parameters, and + # patch baselines. Tags enable you to categorize your resources in + # different ways, for example, by purpose, owner, or environment. Each + # tag consists of a key and an optional value, both of which you define. + # For example, you could define a set of tags for your account's + # managed nodes that helps you track each node's owner and stack level. + # For example: # # * `Key=Owner,Value=DbAdmin` # @@ -382,7 +383,8 @@ def initialize(*args) # # * `Key=Stack,Value=Test` # - # Each resource can have a maximum of 50 tags. + # Most resources can have a maximum of 50 tags. Automations can have a + # maximum of 5 tags. # # We recommend that you devise a set of tag keys that meets your needs # for each resource type. Using a consistent set of tag keys makes it @@ -416,6 +418,8 @@ def initialize(*args) # # `PatchBaseline`\: `pb-012345abcde` # + # `Automation`\: `example-c160-4567-8519-012345abcde` + # # `OpsMetadata` object: `ResourceID` for tagging is created from the # Amazon Resource Name (ARN) for the object. Specifically, `ResourceID` # is created from the strings that come after the word `opsmetadata` in @@ -871,6 +875,25 @@ def create_activation(params = {}, options = {}) # action to create an association in multiple Regions and multiple # accounts. # + # @option params [Integer] :schedule_offset + # Number of days to wait after the scheduled day to run an association. + # For example, if you specified a cron schedule of `cron(0 0 ? * THU#2 + # *)`, you could specify an offset of 3 to run the association each + # Sunday after the second Thursday of the month. For more information + # about cron schedules for associations, see [Reference: Cron and rate + # expressions for Systems Manager][1] in the *Amazon Web Services + # Systems Manager User Guide*. + # + # To use offsets, you must specify the `ApplyOnlyAtCronInterval` + # parameter. This option tells the system not to run an association + # immediately after you create it. + # + # + # + # + # + # [1]: https://docs.aws.amazon.com/systems-manager/latest/userguide/reference-cron-and-rate-expressions.html + # # @return [Types::CreateAssociationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::CreateAssociationResult#association_description #association_description} => Types::AssociationDescription @@ -915,6 +938,7 @@ def create_activation(params = {}, options = {}) # execution_role_name: "ExecutionRoleName", # }, # ], + # schedule_offset: 1, # }) # # @example Response structure @@ -964,6 +988,7 @@ def create_activation(params = {}, options = {}) # resp.association_description.target_locations[0].target_location_max_concurrency #=> String # resp.association_description.target_locations[0].target_location_max_errors #=> String # resp.association_description.target_locations[0].execution_role_name #=> String + # resp.association_description.schedule_offset #=> Integer # # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateAssociation AWS API Documentation # @@ -1036,6 +1061,7 @@ def create_association(params = {}, options = {}) # execution_role_name: "ExecutionRoleName", # }, # ], + # schedule_offset: 1, # }, # ], # }) @@ -1088,6 +1114,7 @@ def create_association(params = {}, options = {}) # resp.successful[0].target_locations[0].target_location_max_concurrency #=> String # resp.successful[0].target_locations[0].target_location_max_errors #=> String # resp.successful[0].target_locations[0].execution_role_name #=> String + # resp.successful[0].schedule_offset #=> Integer # resp.failed #=> Array # resp.failed[0].entry.name #=> String # resp.failed[0].entry.instance_id #=> String @@ -1120,6 +1147,7 @@ def create_association(params = {}, options = {}) # resp.failed[0].entry.target_locations[0].target_location_max_concurrency #=> String # resp.failed[0].entry.target_locations[0].target_location_max_errors #=> String # resp.failed[0].entry.target_locations[0].execution_role_name #=> String + # resp.failed[0].entry.schedule_offset #=> Integer # resp.failed[0].message #=> String # resp.failed[0].fault #=> String, one of "Client", "Server", "Unknown" # @@ -2612,6 +2640,7 @@ def describe_activations(params = {}, options = {}) # resp.association_description.target_locations[0].target_location_max_concurrency #=> String # resp.association_description.target_locations[0].target_location_max_errors #=> String # resp.association_description.target_locations[0].execution_role_name #=> String + # resp.association_description.schedule_offset #=> Integer # # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeAssociation AWS API Documentation # @@ -6813,6 +6842,7 @@ def label_parameter_version(params = {}, options = {}) # resp.association_versions[0].target_locations[0].target_location_max_concurrency #=> String # resp.association_versions[0].target_locations[0].target_location_max_errors #=> String # resp.association_versions[0].target_locations[0].execution_role_name #=> String + # resp.association_versions[0].schedule_offset #=> Integer # resp.next_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListAssociationVersions AWS API Documentation @@ -6889,6 +6919,7 @@ def list_association_versions(params = {}, options = {}) # resp.associations[0].overview.association_status_aggregated_count["StatusName"] #=> Integer # resp.associations[0].schedule_expression #=> String # resp.associations[0].association_name #=> String + # resp.associations[0].schedule_offset #=> Integer # resp.next_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListAssociations AWS API Documentation @@ -8856,6 +8887,8 @@ def register_task_with_maintenance_window(params = {}, options = {}) # # MaintenanceWindow: mw-012345abcde # + # `Automation`\: `example-c160-4567-8519-012345abcde` + # # PatchBaseline: pb-012345abcde # # OpsMetadata object: `ResourceID` for tagging is created from the @@ -9396,7 +9429,7 @@ def start_associations_once(params = {}, options = {}) # # * `Key=OS,Value=Windows` # - # To add tags to an existing patch baseline, use the AddTagsToResource + # To add tags to an existing automation, use the AddTagsToResource # operation. # # @@ -9957,6 +9990,25 @@ def unlabel_parameter_version(params = {}, options = {}) # action to update an association in multiple Regions and multiple # accounts. # + # @option params [Integer] :schedule_offset + # Number of days to wait after the scheduled day to run an association. + # For example, if you specified a cron schedule of `cron(0 0 ? * THU#2 + # *)`, you could specify an offset of 3 to run the association each + # Sunday after the second Thursday of the month. For more information + # about cron schedules for associations, see [Reference: Cron and rate + # expressions for Systems Manager][1] in the *Amazon Web Services + # Systems Manager User Guide*. + # + # To use offsets, you must specify the `ApplyOnlyAtCronInterval` + # parameter. This option tells the system not to run an association + # immediately after you create it. + # + # + # + # + # + # [1]: https://docs.aws.amazon.com/systems-manager/latest/userguide/reference-cron-and-rate-expressions.html + # # @return [Types::UpdateAssociationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::UpdateAssociationResult#association_description #association_description} => Types::AssociationDescription @@ -10002,6 +10054,7 @@ def unlabel_parameter_version(params = {}, options = {}) # execution_role_name: "ExecutionRoleName", # }, # ], + # schedule_offset: 1, # }) # # @example Response structure @@ -10051,6 +10104,7 @@ def unlabel_parameter_version(params = {}, options = {}) # resp.association_description.target_locations[0].target_location_max_concurrency #=> String # resp.association_description.target_locations[0].target_location_max_errors #=> String # resp.association_description.target_locations[0].execution_role_name #=> String + # resp.association_description.schedule_offset #=> Integer # # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateAssociation AWS API Documentation # @@ -10142,6 +10196,7 @@ def update_association(params = {}, options = {}) # resp.association_description.target_locations[0].target_location_max_concurrency #=> String # resp.association_description.target_locations[0].target_location_max_errors #=> String # resp.association_description.target_locations[0].execution_role_name #=> String + # resp.association_description.schedule_offset #=> Integer # # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateAssociationStatus AWS API Documentation # @@ -11506,7 +11561,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-ssm' - context[:gem_version] = '1.134.0' + context[:gem_version] = '1.135.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-ssm/lib/aws-sdk-ssm/client_api.rb b/gems/aws-sdk-ssm/lib/aws-sdk-ssm/client_api.rb index b43fbd422d6..991d28e368c 100644 --- a/gems/aws-sdk-ssm/lib/aws-sdk-ssm/client_api.rb +++ b/gems/aws-sdk-ssm/lib/aws-sdk-ssm/client_api.rb @@ -1029,6 +1029,7 @@ module ClientApi S3OutputUrl = Shapes::StructureShape.new(name: 'S3OutputUrl') S3Region = Shapes::StringShape.new(name: 'S3Region') ScheduleExpression = Shapes::StringShape.new(name: 'ScheduleExpression') + ScheduleOffset = Shapes::IntegerShape.new(name: 'ScheduleOffset') ScheduledWindowExecution = Shapes::StructureShape.new(name: 'ScheduledWindowExecution') ScheduledWindowExecutionList = Shapes::ListShape.new(name: 'ScheduledWindowExecutionList') SendAutomationSignalRequest = Shapes::StructureShape.new(name: 'SendAutomationSignalRequest') @@ -1225,6 +1226,7 @@ module ClientApi Association.add_member(:overview, Shapes::ShapeRef.new(shape: AssociationOverview, location_name: "Overview")) Association.add_member(:schedule_expression, Shapes::ShapeRef.new(shape: ScheduleExpression, location_name: "ScheduleExpression")) Association.add_member(:association_name, Shapes::ShapeRef.new(shape: AssociationName, location_name: "AssociationName")) + Association.add_member(:schedule_offset, Shapes::ShapeRef.new(shape: ScheduleOffset, location_name: "ScheduleOffset", metadata: {"box"=>true})) Association.struct_class = Types::Association AssociationAlreadyExists.struct_class = Types::AssociationAlreadyExists @@ -1253,6 +1255,7 @@ module ClientApi AssociationDescription.add_member(:apply_only_at_cron_interval, Shapes::ShapeRef.new(shape: ApplyOnlyAtCronInterval, location_name: "ApplyOnlyAtCronInterval")) AssociationDescription.add_member(:calendar_names, Shapes::ShapeRef.new(shape: CalendarNameOrARNList, location_name: "CalendarNames")) AssociationDescription.add_member(:target_locations, Shapes::ShapeRef.new(shape: TargetLocations, location_name: "TargetLocations")) + AssociationDescription.add_member(:schedule_offset, Shapes::ShapeRef.new(shape: ScheduleOffset, location_name: "ScheduleOffset", metadata: {"box"=>true})) AssociationDescription.struct_class = Types::AssociationDescription AssociationDescriptionList.member = Shapes::ShapeRef.new(shape: AssociationDescription) @@ -1344,6 +1347,7 @@ module ClientApi AssociationVersionInfo.add_member(:apply_only_at_cron_interval, Shapes::ShapeRef.new(shape: ApplyOnlyAtCronInterval, location_name: "ApplyOnlyAtCronInterval")) AssociationVersionInfo.add_member(:calendar_names, Shapes::ShapeRef.new(shape: CalendarNameOrARNList, location_name: "CalendarNames")) AssociationVersionInfo.add_member(:target_locations, Shapes::ShapeRef.new(shape: TargetLocations, location_name: "TargetLocations")) + AssociationVersionInfo.add_member(:schedule_offset, Shapes::ShapeRef.new(shape: ScheduleOffset, location_name: "ScheduleOffset", metadata: {"box"=>true})) AssociationVersionInfo.struct_class = Types::AssociationVersionInfo AssociationVersionLimitExceeded.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message")) @@ -1664,6 +1668,7 @@ module ClientApi CreateAssociationBatchRequestEntry.add_member(:apply_only_at_cron_interval, Shapes::ShapeRef.new(shape: ApplyOnlyAtCronInterval, location_name: "ApplyOnlyAtCronInterval")) CreateAssociationBatchRequestEntry.add_member(:calendar_names, Shapes::ShapeRef.new(shape: CalendarNameOrARNList, location_name: "CalendarNames")) CreateAssociationBatchRequestEntry.add_member(:target_locations, Shapes::ShapeRef.new(shape: TargetLocations, location_name: "TargetLocations")) + CreateAssociationBatchRequestEntry.add_member(:schedule_offset, Shapes::ShapeRef.new(shape: ScheduleOffset, location_name: "ScheduleOffset", metadata: {"box"=>true})) CreateAssociationBatchRequestEntry.struct_class = Types::CreateAssociationBatchRequestEntry CreateAssociationBatchResult.add_member(:successful, Shapes::ShapeRef.new(shape: AssociationDescriptionList, location_name: "Successful")) @@ -1686,6 +1691,7 @@ module ClientApi CreateAssociationRequest.add_member(:apply_only_at_cron_interval, Shapes::ShapeRef.new(shape: ApplyOnlyAtCronInterval, location_name: "ApplyOnlyAtCronInterval")) CreateAssociationRequest.add_member(:calendar_names, Shapes::ShapeRef.new(shape: CalendarNameOrARNList, location_name: "CalendarNames")) CreateAssociationRequest.add_member(:target_locations, Shapes::ShapeRef.new(shape: TargetLocations, location_name: "TargetLocations")) + CreateAssociationRequest.add_member(:schedule_offset, Shapes::ShapeRef.new(shape: ScheduleOffset, location_name: "ScheduleOffset", metadata: {"box"=>true})) CreateAssociationRequest.struct_class = Types::CreateAssociationRequest CreateAssociationResult.add_member(:association_description, Shapes::ShapeRef.new(shape: AssociationDescription, location_name: "AssociationDescription")) @@ -4354,6 +4360,7 @@ module ClientApi UpdateAssociationRequest.add_member(:apply_only_at_cron_interval, Shapes::ShapeRef.new(shape: ApplyOnlyAtCronInterval, location_name: "ApplyOnlyAtCronInterval")) UpdateAssociationRequest.add_member(:calendar_names, Shapes::ShapeRef.new(shape: CalendarNameOrARNList, location_name: "CalendarNames")) UpdateAssociationRequest.add_member(:target_locations, Shapes::ShapeRef.new(shape: TargetLocations, location_name: "TargetLocations")) + UpdateAssociationRequest.add_member(:schedule_offset, Shapes::ShapeRef.new(shape: ScheduleOffset, location_name: "ScheduleOffset", metadata: {"box"=>true})) UpdateAssociationRequest.struct_class = Types::UpdateAssociationRequest UpdateAssociationResult.add_member(:association_description, Shapes::ShapeRef.new(shape: AssociationDescription, location_name: "AssociationDescription")) diff --git a/gems/aws-sdk-ssm/lib/aws-sdk-ssm/types.rb b/gems/aws-sdk-ssm/lib/aws-sdk-ssm/types.rb index 0e340e0dfe6..deac256de7e 100644 --- a/gems/aws-sdk-ssm/lib/aws-sdk-ssm/types.rb +++ b/gems/aws-sdk-ssm/lib/aws-sdk-ssm/types.rb @@ -130,6 +130,8 @@ class Activation < Struct.new( # # `PatchBaseline`\: `pb-012345abcde` # + # `Automation`\: `example-c160-4567-8519-012345abcde` + # # `OpsMetadata` object: `ResourceID` for tagging is created from the # Amazon Resource Name (ARN) for the object. Specifically, # `ResourceID` is created from the strings that come after the word @@ -311,6 +313,11 @@ class AssociatedInstances < Aws::EmptyStructure; end # The association name. # @return [String] # + # @!attribute [rw] schedule_offset + # Number of days to wait after the scheduled day to run an + # association. + # @return [Integer] + # # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/Association AWS API Documentation # class Association < Struct.new( @@ -323,7 +330,8 @@ class Association < Struct.new( :last_execution_date, :overview, :schedule_expression, - :association_name) + :association_name, + :schedule_offset) SENSITIVE = [] include Aws::Structure end @@ -485,6 +493,11 @@ class AssociationAlreadyExists < Aws::EmptyStructure; end # Services accounts where you want to run the association. # @return [Array] # + # @!attribute [rw] schedule_offset + # Number of days to wait after the scheduled day to run an + # association. + # @return [Integer] + # # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AssociationDescription AWS API Documentation # class AssociationDescription < Struct.new( @@ -511,7 +524,8 @@ class AssociationDescription < Struct.new( :sync_compliance, :apply_only_at_cron_interval, :calendar_names, - :target_locations) + :target_locations, + :schedule_offset) SENSITIVE = [:parameters] include Aws::Structure end @@ -937,6 +951,11 @@ class AssociationStatus < Struct.new( # association version was created. # @return [Array] # + # @!attribute [rw] schedule_offset + # Number of days to wait after the scheduled day to run an + # association. + # @return [Integer] + # # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/AssociationVersionInfo AWS API Documentation # class AssociationVersionInfo < Struct.new( @@ -956,7 +975,8 @@ class AssociationVersionInfo < Struct.new( :sync_compliance, :apply_only_at_cron_interval, :calendar_names, - :target_locations) + :target_locations, + :schedule_offset) SENSITIVE = [:parameters] include Aws::Structure end @@ -2851,6 +2871,7 @@ class CreateActivationResult < Struct.new( # execution_role_name: "ExecutionRoleName", # }, # ], + # schedule_offset: 1, # }, # ], # } @@ -2911,6 +2932,7 @@ class CreateAssociationBatchRequest < Struct.new( # execution_role_name: "ExecutionRoleName", # }, # ], + # schedule_offset: 1, # } # # @!attribute [rw] name @@ -3060,6 +3082,11 @@ class CreateAssociationBatchRequest < Struct.new( # multiple accounts. # @return [Array] # + # @!attribute [rw] schedule_offset + # Number of days to wait after the scheduled day to run an + # association. + # @return [Integer] + # # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateAssociationBatchRequestEntry AWS API Documentation # class CreateAssociationBatchRequestEntry < Struct.new( @@ -3078,7 +3105,8 @@ class CreateAssociationBatchRequestEntry < Struct.new( :sync_compliance, :apply_only_at_cron_interval, :calendar_names, - :target_locations) + :target_locations, + :schedule_offset) SENSITIVE = [:parameters] include Aws::Structure end @@ -3141,6 +3169,7 @@ class CreateAssociationBatchResult < Struct.new( # execution_role_name: "ExecutionRoleName", # }, # ], + # schedule_offset: 1, # } # # @!attribute [rw] name @@ -3312,6 +3341,26 @@ class CreateAssociationBatchResult < Struct.new( # multiple accounts. # @return [Array] # + # @!attribute [rw] schedule_offset + # Number of days to wait after the scheduled day to run an + # association. For example, if you specified a cron schedule of + # `cron(0 0 ? * THU#2 *)`, you could specify an offset of 3 to run the + # association each Sunday after the second Thursday of the month. For + # more information about cron schedules for associations, see + # [Reference: Cron and rate expressions for Systems Manager][1] in the + # *Amazon Web Services Systems Manager User Guide*. + # + # To use offsets, you must specify the `ApplyOnlyAtCronInterval` + # parameter. This option tells the system not to run an association + # immediately after you create it. + # + # + # + # + # + # [1]: https://docs.aws.amazon.com/systems-manager/latest/userguide/reference-cron-and-rate-expressions.html + # @return [Integer] + # # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateAssociationRequest AWS API Documentation # class CreateAssociationRequest < Struct.new( @@ -3330,7 +3379,8 @@ class CreateAssociationRequest < Struct.new( :sync_compliance, :apply_only_at_cron_interval, :calendar_names, - :target_locations) + :target_locations, + :schedule_offset) SENSITIVE = [:parameters] include Aws::Structure end @@ -17190,6 +17240,8 @@ class RelatedOpsItem < Struct.new( # # MaintenanceWindow: mw-012345abcde # + # `Automation`\: `example-c160-4567-8519-012345abcde` + # # PatchBaseline: pb-012345abcde # # OpsMetadata object: `ResourceID` for tagging is created from the @@ -18827,7 +18879,7 @@ class StartAssociationsOnceResult < Aws::EmptyStructure; end # # * `Key=OS,Value=Windows` # - # To add tags to an existing patch baseline, use the AddTagsToResource + # To add tags to an existing automation, use the AddTagsToResource # operation. # # @@ -19823,6 +19875,7 @@ class UnsupportedPlatformType < Struct.new( # execution_role_name: "ExecutionRoleName", # }, # ], + # schedule_offset: 1, # } # # @!attribute [rw] association_id @@ -19999,6 +20052,26 @@ class UnsupportedPlatformType < Struct.new( # multiple accounts. # @return [Array] # + # @!attribute [rw] schedule_offset + # Number of days to wait after the scheduled day to run an + # association. For example, if you specified a cron schedule of + # `cron(0 0 ? * THU#2 *)`, you could specify an offset of 3 to run the + # association each Sunday after the second Thursday of the month. For + # more information about cron schedules for associations, see + # [Reference: Cron and rate expressions for Systems Manager][1] in the + # *Amazon Web Services Systems Manager User Guide*. + # + # To use offsets, you must specify the `ApplyOnlyAtCronInterval` + # parameter. This option tells the system not to run an association + # immediately after you create it. + # + # + # + # + # + # [1]: https://docs.aws.amazon.com/systems-manager/latest/userguide/reference-cron-and-rate-expressions.html + # @return [Integer] + # # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateAssociationRequest AWS API Documentation # class UpdateAssociationRequest < Struct.new( @@ -20018,7 +20091,8 @@ class UpdateAssociationRequest < Struct.new( :sync_compliance, :apply_only_at_cron_interval, :calendar_names, - :target_locations) + :target_locations, + :schedule_offset) SENSITIVE = [:parameters] include Aws::Structure end diff --git a/gems/aws-sdk-textract/CHANGELOG.md b/gems/aws-sdk-textract/CHANGELOG.md index c5cc30f53da..58e23a38e42 100644 --- a/gems/aws-sdk-textract/CHANGELOG.md +++ b/gems/aws-sdk-textract/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.38.0 (2022-04-19) +------------------ + +* Feature - This release adds support for specifying and extracting information from documents using the Queries feature within Analyze Document API + 1.37.0 (2022-02-24) ------------------ diff --git a/gems/aws-sdk-textract/VERSION b/gems/aws-sdk-textract/VERSION index bf50e910e62..ebeef2f2d61 100644 --- a/gems/aws-sdk-textract/VERSION +++ b/gems/aws-sdk-textract/VERSION @@ -1 +1 @@ -1.37.0 +1.38.0 diff --git a/gems/aws-sdk-textract/lib/aws-sdk-textract.rb b/gems/aws-sdk-textract/lib/aws-sdk-textract.rb index 55fa77b977a..6c07692e77a 100644 --- a/gems/aws-sdk-textract/lib/aws-sdk-textract.rb +++ b/gems/aws-sdk-textract/lib/aws-sdk-textract.rb @@ -48,6 +48,6 @@ # @!group service module Aws::Textract - GEM_VERSION = '1.37.0' + GEM_VERSION = '1.38.0' end diff --git a/gems/aws-sdk-textract/lib/aws-sdk-textract/client.rb b/gems/aws-sdk-textract/lib/aws-sdk-textract/client.rb index 3bfc4d61033..3b37dabd613 100644 --- a/gems/aws-sdk-textract/lib/aws-sdk-textract/client.rb +++ b/gems/aws-sdk-textract/lib/aws-sdk-textract/client.rb @@ -380,6 +380,11 @@ def initialize(*args) # document are returned (including text that doesn't have a # relationship with the value of `FeatureTypes`). # + # * Queries.A QUERIES\_RESULT Block object contains the answer to the + # query, the alias associated and an ID that connect it to the query + # asked. This Block also contains a location and attached confidence + # score. + # # Selection elements such as check boxes and option buttons (radio # buttons) can be detected in form data and in tables. A # SELECTION\_ELEMENT `Block` object contains information about a @@ -402,7 +407,8 @@ def initialize(*args) # @option params [required, Types::Document] :document # The input document as base64-encoded bytes or an Amazon S3 object. If # you use the AWS CLI to call Amazon Textract operations, you can't - # pass image bytes. The document must be an image in JPEG or PNG format. + # pass image bytes. The document must be an image in JPEG, PNG, PDF, or + # TIFF format. # # If you're using an AWS SDK to call Amazon Textract, you might not # need to base64-encode image bytes that are passed using the `Bytes` @@ -420,6 +426,10 @@ def initialize(*args) # Sets the configuration for the human in the loop workflow for # analyzing documents. # + # @option params [Types::QueriesConfig] :queries_config + # Contains Queries and the alias for those Queries, as determined by the + # input. + # # @return [Types::AnalyzeDocumentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::AnalyzeDocumentResponse#document_metadata #document_metadata} => Types::DocumentMetadata @@ -438,7 +448,7 @@ def initialize(*args) # version: "S3ObjectVersion", # }, # }, - # feature_types: ["TABLES"], # required, accepts TABLES, FORMS + # feature_types: ["TABLES"], # required, accepts TABLES, FORMS, QUERIES # human_loop_config: { # human_loop_name: "HumanLoopName", # required # flow_definition_arn: "FlowDefinitionArn", # required @@ -446,13 +456,22 @@ def initialize(*args) # content_classifiers: ["FreeOfPersonallyIdentifiableInformation"], # accepts FreeOfPersonallyIdentifiableInformation, FreeOfAdultContent # }, # }, + # queries_config: { + # queries: [ # required + # { + # text: "QueryInput", # required + # alias: "QueryInput", + # pages: ["QueryPage"], + # }, + # ], + # }, # }) # # @example Response structure # # resp.document_metadata.pages #=> Integer # resp.blocks #=> Array - # resp.blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE" + # resp.blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT" # resp.blocks[0].confidence #=> Float # resp.blocks[0].text #=> String # resp.blocks[0].text_type #=> String, one of "HANDWRITING", "PRINTED" @@ -469,13 +488,17 @@ def initialize(*args) # resp.blocks[0].geometry.polygon[0].y #=> Float # resp.blocks[0].id #=> String # resp.blocks[0].relationships #=> Array - # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE" + # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER" # resp.blocks[0].relationships[0].ids #=> Array # resp.blocks[0].relationships[0].ids[0] #=> String # resp.blocks[0].entity_types #=> Array # resp.blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER" # resp.blocks[0].selection_status #=> String, one of "SELECTED", "NOT_SELECTED" # resp.blocks[0].page #=> Integer + # resp.blocks[0].query.text #=> String + # resp.blocks[0].query.alias #=> String + # resp.blocks[0].query.pages #=> Array + # resp.blocks[0].query.pages[0] #=> String # resp.human_loop_activation_output.human_loop_arn #=> String # resp.human_loop_activation_output.human_loop_activation_reasons #=> Array # resp.human_loop_activation_output.human_loop_activation_reasons[0] #=> String @@ -611,7 +634,9 @@ def analyze_expense(params = {}, options = {}) # Analyzes identity documents for relevant information. This information # is extracted and returned as `IdentityDocumentFields`, which records - # both the normalized field and value of the extracted text. + # both the normalized field and value of the extracted text.Unlike other + # Amazon Textract operations, `AnalyzeID` doesn't return any Geometry + # data. # # @option params [required, Array] :document_pages # The document being passed to AnalyzeID. @@ -664,8 +689,9 @@ def analyze_id(params = {}, options = {}) # Detects text in the input document. Amazon Textract can detect lines # of text and the words that make up a line of text. The input document - # must be an image in JPEG or PNG format. `DetectDocumentText` returns - # the detected text in an array of Block objects. + # must be an image in JPEG, PNG, PDF, or TIFF format. + # `DetectDocumentText` returns the detected text in an array of Block + # objects. # # Each document page has as an associated `Block` of type PAGE. Each # PAGE `Block` object is the parent of LINE `Block` objects that @@ -714,7 +740,7 @@ def analyze_id(params = {}, options = {}) # # resp.document_metadata.pages #=> Integer # resp.blocks #=> Array - # resp.blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE" + # resp.blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT" # resp.blocks[0].confidence #=> Float # resp.blocks[0].text #=> String # resp.blocks[0].text_type #=> String, one of "HANDWRITING", "PRINTED" @@ -731,13 +757,17 @@ def analyze_id(params = {}, options = {}) # resp.blocks[0].geometry.polygon[0].y #=> Float # resp.blocks[0].id #=> String # resp.blocks[0].relationships #=> Array - # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE" + # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER" # resp.blocks[0].relationships[0].ids #=> Array # resp.blocks[0].relationships[0].ids[0] #=> String # resp.blocks[0].entity_types #=> Array # resp.blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER" # resp.blocks[0].selection_status #=> String, one of "SELECTED", "NOT_SELECTED" # resp.blocks[0].page #=> Integer + # resp.blocks[0].query.text #=> String + # resp.blocks[0].query.alias #=> String + # resp.blocks[0].query.pages #=> Array + # resp.blocks[0].query.pages[0] #=> String # resp.detect_document_text_model_version #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/DetectDocumentText AWS API Documentation @@ -781,6 +811,11 @@ def detect_document_text(params = {}, options = {}) # relationship with the value of the `StartDocumentAnalysis` # `FeatureTypes` input parameter). # + # * Queries. A QUERIES\_RESULT Block object contains the answer to the + # query, the alias associated and an ID that connect it to the query + # asked. This Block also contains a location and attached confidence + # score + # # Selection elements such as check boxes and option buttons (radio # buttons) can be detected in form data and in tables. A # SELECTION\_ELEMENT `Block` object contains information about a @@ -841,7 +876,7 @@ def detect_document_text(params = {}, options = {}) # resp.job_status #=> String, one of "IN_PROGRESS", "SUCCEEDED", "FAILED", "PARTIAL_SUCCESS" # resp.next_token #=> String # resp.blocks #=> Array - # resp.blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE" + # resp.blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT" # resp.blocks[0].confidence #=> Float # resp.blocks[0].text #=> String # resp.blocks[0].text_type #=> String, one of "HANDWRITING", "PRINTED" @@ -858,13 +893,17 @@ def detect_document_text(params = {}, options = {}) # resp.blocks[0].geometry.polygon[0].y #=> Float # resp.blocks[0].id #=> String # resp.blocks[0].relationships #=> Array - # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE" + # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER" # resp.blocks[0].relationships[0].ids #=> Array # resp.blocks[0].relationships[0].ids[0] #=> String # resp.blocks[0].entity_types #=> Array # resp.blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER" # resp.blocks[0].selection_status #=> String, one of "SELECTED", "NOT_SELECTED" # resp.blocks[0].page #=> Integer + # resp.blocks[0].query.text #=> String + # resp.blocks[0].query.alias #=> String + # resp.blocks[0].query.pages #=> Array + # resp.blocks[0].query.pages[0] #=> String # resp.warnings #=> Array # resp.warnings[0].error_code #=> String # resp.warnings[0].pages #=> Array @@ -959,7 +998,7 @@ def get_document_analysis(params = {}, options = {}) # resp.job_status #=> String, one of "IN_PROGRESS", "SUCCEEDED", "FAILED", "PARTIAL_SUCCESS" # resp.next_token #=> String # resp.blocks #=> Array - # resp.blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE" + # resp.blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT" # resp.blocks[0].confidence #=> Float # resp.blocks[0].text #=> String # resp.blocks[0].text_type #=> String, one of "HANDWRITING", "PRINTED" @@ -976,13 +1015,17 @@ def get_document_analysis(params = {}, options = {}) # resp.blocks[0].geometry.polygon[0].y #=> Float # resp.blocks[0].id #=> String # resp.blocks[0].relationships #=> Array - # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE" + # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER" # resp.blocks[0].relationships[0].ids #=> Array # resp.blocks[0].relationships[0].ids[0] #=> String # resp.blocks[0].entity_types #=> Array # resp.blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER" # resp.blocks[0].selection_status #=> String, one of "SELECTED", "NOT_SELECTED" # resp.blocks[0].page #=> Integer + # resp.blocks[0].query.text #=> String + # resp.blocks[0].query.alias #=> String + # resp.blocks[0].query.pages #=> Array + # resp.blocks[0].query.pages[0] #=> String # resp.warnings #=> Array # resp.warnings[0].error_code #=> String # resp.warnings[0].pages #=> Array @@ -1202,6 +1245,8 @@ def get_expense_analysis(params = {}, options = {}) # customer bucket. When this parameter is not enabled, the result will # be encrypted server side,using SSE-S3. # + # @option params [Types::QueriesConfig] :queries_config + # # @return [Types::StartDocumentAnalysisResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::StartDocumentAnalysisResponse#job_id #job_id} => String @@ -1216,7 +1261,7 @@ def get_expense_analysis(params = {}, options = {}) # version: "S3ObjectVersion", # }, # }, - # feature_types: ["TABLES"], # required, accepts TABLES, FORMS + # feature_types: ["TABLES"], # required, accepts TABLES, FORMS, QUERIES # client_request_token: "ClientRequestToken", # job_tag: "JobTag", # notification_channel: { @@ -1228,6 +1273,15 @@ def get_expense_analysis(params = {}, options = {}) # s3_prefix: "S3ObjectName", # }, # kms_key_id: "KMSKeyId", + # queries_config: { + # queries: [ # required + # { + # text: "QueryInput", # required + # alias: "QueryInput", + # pages: ["QueryPage"], + # }, + # ], + # }, # }) # # @example Response structure @@ -1460,7 +1514,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-textract' - context[:gem_version] = '1.37.0' + context[:gem_version] = '1.38.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-textract/lib/aws-sdk-textract/client_api.rb b/gems/aws-sdk-textract/lib/aws-sdk-textract/client_api.rb index c0a40c4b78a..46ac6784c63 100644 --- a/gems/aws-sdk-textract/lib/aws-sdk-textract/client_api.rb +++ b/gems/aws-sdk-textract/lib/aws-sdk-textract/client_api.rb @@ -97,6 +97,12 @@ module ClientApi Point = Shapes::StructureShape.new(name: 'Point') Polygon = Shapes::ListShape.new(name: 'Polygon') ProvisionedThroughputExceededException = Shapes::StructureShape.new(name: 'ProvisionedThroughputExceededException') + Queries = Shapes::ListShape.new(name: 'Queries') + QueriesConfig = Shapes::StructureShape.new(name: 'QueriesConfig') + Query = Shapes::StructureShape.new(name: 'Query') + QueryInput = Shapes::StringShape.new(name: 'QueryInput') + QueryPage = Shapes::StringShape.new(name: 'QueryPage') + QueryPages = Shapes::ListShape.new(name: 'QueryPages') Relationship = Shapes::StructureShape.new(name: 'Relationship') RelationshipList = Shapes::ListShape.new(name: 'RelationshipList') RelationshipType = Shapes::StringShape.new(name: 'RelationshipType') @@ -128,6 +134,7 @@ module ClientApi AnalyzeDocumentRequest.add_member(:document, Shapes::ShapeRef.new(shape: Document, required: true, location_name: "Document")) AnalyzeDocumentRequest.add_member(:feature_types, Shapes::ShapeRef.new(shape: FeatureTypes, required: true, location_name: "FeatureTypes")) AnalyzeDocumentRequest.add_member(:human_loop_config, Shapes::ShapeRef.new(shape: HumanLoopConfig, location_name: "HumanLoopConfig")) + AnalyzeDocumentRequest.add_member(:queries_config, Shapes::ShapeRef.new(shape: QueriesConfig, location_name: "QueriesConfig")) AnalyzeDocumentRequest.struct_class = Types::AnalyzeDocumentRequest AnalyzeDocumentResponse.add_member(:document_metadata, Shapes::ShapeRef.new(shape: DocumentMetadata, location_name: "DocumentMetadata")) @@ -172,6 +179,7 @@ module ClientApi Block.add_member(:entity_types, Shapes::ShapeRef.new(shape: EntityTypes, location_name: "EntityTypes")) Block.add_member(:selection_status, Shapes::ShapeRef.new(shape: SelectionStatus, location_name: "SelectionStatus")) Block.add_member(:page, Shapes::ShapeRef.new(shape: UInteger, location_name: "Page")) + Block.add_member(:query, Shapes::ShapeRef.new(shape: Query, location_name: "Query")) Block.struct_class = Types::Block BlockList.member = Shapes::ShapeRef.new(shape: Block) @@ -361,6 +369,18 @@ module ClientApi ProvisionedThroughputExceededException.struct_class = Types::ProvisionedThroughputExceededException + Queries.member = Shapes::ShapeRef.new(shape: Query) + + QueriesConfig.add_member(:queries, Shapes::ShapeRef.new(shape: Queries, required: true, location_name: "Queries")) + QueriesConfig.struct_class = Types::QueriesConfig + + Query.add_member(:text, Shapes::ShapeRef.new(shape: QueryInput, required: true, location_name: "Text")) + Query.add_member(:alias, Shapes::ShapeRef.new(shape: QueryInput, location_name: "Alias")) + Query.add_member(:pages, Shapes::ShapeRef.new(shape: QueryPages, location_name: "Pages")) + Query.struct_class = Types::Query + + QueryPages.member = Shapes::ShapeRef.new(shape: QueryPage) + Relationship.add_member(:type, Shapes::ShapeRef.new(shape: RelationshipType, location_name: "Type")) Relationship.add_member(:ids, Shapes::ShapeRef.new(shape: IdList, location_name: "Ids")) Relationship.struct_class = Types::Relationship @@ -379,6 +399,7 @@ module ClientApi StartDocumentAnalysisRequest.add_member(:notification_channel, Shapes::ShapeRef.new(shape: NotificationChannel, location_name: "NotificationChannel")) StartDocumentAnalysisRequest.add_member(:output_config, Shapes::ShapeRef.new(shape: OutputConfig, location_name: "OutputConfig")) StartDocumentAnalysisRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KMSKeyId, location_name: "KMSKeyId")) + StartDocumentAnalysisRequest.add_member(:queries_config, Shapes::ShapeRef.new(shape: QueriesConfig, location_name: "QueriesConfig")) StartDocumentAnalysisRequest.struct_class = Types::StartDocumentAnalysisRequest StartDocumentAnalysisResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId")) diff --git a/gems/aws-sdk-textract/lib/aws-sdk-textract/types.rb b/gems/aws-sdk-textract/lib/aws-sdk-textract/types.rb index 3851adcc4b9..bfbc5746b9d 100644 --- a/gems/aws-sdk-textract/lib/aws-sdk-textract/types.rb +++ b/gems/aws-sdk-textract/lib/aws-sdk-textract/types.rb @@ -29,7 +29,7 @@ class AccessDeniedException < Aws::EmptyStructure; end # version: "S3ObjectVersion", # }, # }, - # feature_types: ["TABLES"], # required, accepts TABLES, FORMS + # feature_types: ["TABLES"], # required, accepts TABLES, FORMS, QUERIES # human_loop_config: { # human_loop_name: "HumanLoopName", # required # flow_definition_arn: "FlowDefinitionArn", # required @@ -37,13 +37,22 @@ class AccessDeniedException < Aws::EmptyStructure; end # content_classifiers: ["FreeOfPersonallyIdentifiableInformation"], # accepts FreeOfPersonallyIdentifiableInformation, FreeOfAdultContent # }, # }, + # queries_config: { + # queries: [ # required + # { + # text: "QueryInput", # required + # alias: "QueryInput", + # pages: ["QueryPage"], + # }, + # ], + # }, # } # # @!attribute [rw] document # The input document as base64-encoded bytes or an Amazon S3 object. # If you use the AWS CLI to call Amazon Textract operations, you - # can't pass image bytes. The document must be an image in JPEG or - # PNG format. + # can't pass image bytes. The document must be an image in JPEG, PNG, + # PDF, or TIFF format. # # If you're using an AWS SDK to call Amazon Textract, you might not # need to base64-encode image bytes that are passed using the `Bytes` @@ -65,12 +74,18 @@ class AccessDeniedException < Aws::EmptyStructure; end # analyzing documents. # @return [Types::HumanLoopConfig] # + # @!attribute [rw] queries_config + # Contains Queries and the alias for those Queries, as determined by + # the input. + # @return [Types::QueriesConfig] + # # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/AnalyzeDocumentRequest AWS API Documentation # class AnalyzeDocumentRequest < Struct.new( :document, :feature_types, - :human_loop_config) + :human_loop_config, + :queries_config) SENSITIVE = [] include Aws::Structure end @@ -315,6 +330,14 @@ class BadDocumentException < Aws::EmptyStructure; end # button (radio button) or a check box that's detected on a # document page. Use the value of `SelectionStatus` to determine the # status of the selection element. + # + # * *QUERY* - A question asked during the call of AnalyzeDocument. + # Contains an alias and an ID that attachs it to its answer. + # + # * *QUERY\_RESULT* - A response to a question asked during the call + # of analyze document. Comes with an alias and ID for ease of + # locating in a response. Also contains location and confidence + # score. # @return [String] # # @!attribute [rw] confidence @@ -408,6 +431,9 @@ class BadDocumentException < Aws::EmptyStructure; end # document. # @return [Integer] # + # @!attribute [rw] query + # @return [Types::Query] + # # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/Block AWS API Documentation # class Block < Struct.new( @@ -424,7 +450,8 @@ class Block < Struct.new( :relationships, :entity_types, :selection_status, - :page) + :page, + :query) SENSITIVE = [] include Aws::Structure end @@ -1427,6 +1454,80 @@ class Point < Struct.new( # class ProvisionedThroughputExceededException < Aws::EmptyStructure; end + # @note When making an API call, you may pass QueriesConfig + # data as a hash: + # + # { + # queries: [ # required + # { + # text: "QueryInput", # required + # alias: "QueryInput", + # pages: ["QueryPage"], + # }, + # ], + # } + # + # @!attribute [rw] queries + # @return [Array] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/QueriesConfig AWS API Documentation + # + class QueriesConfig < Struct.new( + :queries) + SENSITIVE = [] + include Aws::Structure + end + + # Each query contains the question you want to ask in the Text and the + # alias you want to associate. + # + # @note When making an API call, you may pass Query + # data as a hash: + # + # { + # text: "QueryInput", # required + # alias: "QueryInput", + # pages: ["QueryPage"], + # } + # + # @!attribute [rw] text + # Question that Amazon Textract will apply to the document. An example + # would be "What is the customer's SSN?" + # @return [String] + # + # @!attribute [rw] alias + # Alias attached to the query, for ease of location. + # @return [String] + # + # @!attribute [rw] pages + # List of pages associated with the query. The following is a list of + # rules for using this parameter. + # + # * If a page is not specified, it is set to `["1"]` by default. + # + # * The following characters are allowed in the parameter's string: + # `0 1 2 3 4 5 6 7 8 9 - *`. No whitespace is allowed. + # + # * When using `*` to indicate all pages, it must be the only element + # in the string. + # + # * You can use page intervals, such as `[“1-3”, “1-1”, “4-*”]`. Where + # `*` indicates last page of document. + # + # * Specified pages must be greater than 0 and less than or equal to + # the number of pages in the document. + # @return [Array] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/Query AWS API Documentation + # + class Query < Struct.new( + :text, + :alias, + :pages) + SENSITIVE = [] + include Aws::Structure + end + # Information about how blocks are related to each other. A `Block` # object contains 0 or more `Relation` objects in a list, # `Relationships`. For more information, see Block. @@ -1512,7 +1613,7 @@ class S3Object < Struct.new( # version: "S3ObjectVersion", # }, # }, - # feature_types: ["TABLES"], # required, accepts TABLES, FORMS + # feature_types: ["TABLES"], # required, accepts TABLES, FORMS, QUERIES # client_request_token: "ClientRequestToken", # job_tag: "JobTag", # notification_channel: { @@ -1524,6 +1625,15 @@ class S3Object < Struct.new( # s3_prefix: "S3ObjectName", # }, # kms_key_id: "KMSKeyId", + # queries_config: { + # queries: [ # required + # { + # text: "QueryInput", # required + # alias: "QueryInput", + # pages: ["QueryPage"], + # }, + # ], + # }, # } # # @!attribute [rw] document_location @@ -1579,6 +1689,9 @@ class S3Object < Struct.new( # will be encrypted server side,using SSE-S3. # @return [String] # + # @!attribute [rw] queries_config + # @return [Types::QueriesConfig] + # # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/StartDocumentAnalysisRequest AWS API Documentation # class StartDocumentAnalysisRequest < Struct.new( @@ -1588,7 +1701,8 @@ class StartDocumentAnalysisRequest < Struct.new( :job_tag, :notification_channel, :output_config, - :kms_key_id) + :kms_key_id, + :queries_config) SENSITIVE = [] include Aws::Structure end @@ -1804,8 +1918,7 @@ class StartExpenseAnalysisResponse < Struct.new( class ThrottlingException < Aws::EmptyStructure; end # The format of the input document isn't supported. Documents for - # synchronous operations can be in PNG or JPEG format only. Documents - # for asynchronous operations can be in PDF format. + # operations can be in PNG, JPEG, PDF, or TIFF format. # # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/UnsupportedDocumentException AWS API Documentation # diff --git a/gems/aws-sdk-transfer/CHANGELOG.md b/gems/aws-sdk-transfer/CHANGELOG.md index 66bf36542c0..6d2c0f75c3f 100644 --- a/gems/aws-sdk-transfer/CHANGELOG.md +++ b/gems/aws-sdk-transfer/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.53.0 (2022-04-19) +------------------ + +* Feature - This release contains corrected HomeDirectoryMappings examples for several API functions: CreateAccess, UpdateAccess, CreateUser, and UpdateUser,. + 1.52.0 (2022-03-23) ------------------ diff --git a/gems/aws-sdk-transfer/VERSION b/gems/aws-sdk-transfer/VERSION index a63cb35e6f0..3f4830156cb 100644 --- a/gems/aws-sdk-transfer/VERSION +++ b/gems/aws-sdk-transfer/VERSION @@ -1 +1 @@ -1.52.0 +1.53.0 diff --git a/gems/aws-sdk-transfer/lib/aws-sdk-transfer.rb b/gems/aws-sdk-transfer/lib/aws-sdk-transfer.rb index deaac4ccab6..be982d9c8d7 100644 --- a/gems/aws-sdk-transfer/lib/aws-sdk-transfer.rb +++ b/gems/aws-sdk-transfer/lib/aws-sdk-transfer.rb @@ -49,6 +49,6 @@ # @!group service module Aws::Transfer - GEM_VERSION = '1.52.0' + GEM_VERSION = '1.53.0' end diff --git a/gems/aws-sdk-transfer/lib/aws-sdk-transfer/client.rb b/gems/aws-sdk-transfer/lib/aws-sdk-transfer/client.rb index 784cc48fd63..6252c10cf2b 100644 --- a/gems/aws-sdk-transfer/lib/aws-sdk-transfer/client.rb +++ b/gems/aws-sdk-transfer/lib/aws-sdk-transfer/client.rb @@ -406,7 +406,7 @@ def initialize(*args) # # The following is an `Entry` and `Target` pair example for `chroot`. # - # `[ \{ "Entry:": "/", "Target": "/bucket_name/home/mydirectory" \} ]` + # `[ \{ "Entry": "/", "Target": "/bucket_name/home/mydirectory" \} ]` # # @option params [String] :policy # A session policy for your user so that you can use the same IAM role @@ -836,7 +836,7 @@ def create_server(params = {}, options = {}) # # The following is an `Entry` and `Target` pair example for `chroot`. # - # `[ \{ "Entry:": "/", "Target": "/bucket_name/home/mydirectory" \} ]` + # `[ \{ "Entry": "/", "Target": "/bucket_name/home/mydirectory" \} ]` # # @option params [String] :policy # A session policy for your user so that you can use the same IAM role @@ -970,13 +970,13 @@ def create_user(params = {}, options = {}) # The `TYPE` specifies which of the following actions is being taken for # this step. # - # * *Copy*\: copy the file to another location + # * *COPY*\: copy the file to another location # - # * *Custom*\: custom step with a lambda target + # * *CUSTOM*\: custom step with a lambda target # - # * *Delete*\: delete the file + # * *DELETE*\: delete the file # - # * *Tag*\: add a tag to the file + # * *TAG*\: add a tag to the file # # Currently, copying and tagging are supported only on S3. # @@ -2359,7 +2359,7 @@ def untag_resource(params = {}, options = {}) # # The following is an `Entry` and `Target` pair example for `chroot`. # - # `[ \{ "Entry:": "/", "Target": "/bucket_name/home/mydirectory" \} ]` + # `[ \{ "Entry": "/", "Target": "/bucket_name/home/mydirectory" \} ]` # # @option params [String] :policy # A session policy for your user so that you can use the same IAM role @@ -2753,7 +2753,7 @@ def update_server(params = {}, options = {}) # # The following is an `Entry` and `Target` pair example for `chroot`. # - # `[ \{ "Entry:": "/", "Target": "/bucket_name/home/mydirectory" \} ]` + # `[ \{ "Entry": "/", "Target": "/bucket_name/home/mydirectory" \} ]` # # @option params [String] :policy # A session policy for your user so that you can use the same IAM role @@ -2866,7 +2866,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-transfer' - context[:gem_version] = '1.52.0' + context[:gem_version] = '1.53.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-transfer/lib/aws-sdk-transfer/types.rb b/gems/aws-sdk-transfer/lib/aws-sdk-transfer/types.rb index cbbb7c89f9a..d5e3b2c713b 100644 --- a/gems/aws-sdk-transfer/lib/aws-sdk-transfer/types.rb +++ b/gems/aws-sdk-transfer/lib/aws-sdk-transfer/types.rb @@ -161,7 +161,7 @@ class CopyStepDetails < Struct.new( # # The following is an `Entry` and `Target` pair example for `chroot`. # - # `[ \{ "Entry:": "/", "Target": "/bucket_name/home/mydirectory" \} ]` + # `[ \{ "Entry": "/", "Target": "/bucket_name/home/mydirectory" \} ]` # @return [Array] # # @!attribute [rw] policy @@ -646,7 +646,7 @@ class CreateServerResponse < Struct.new( # # The following is an `Entry` and `Target` pair example for `chroot`. # - # `[ \{ "Entry:": "/", "Target": "/bucket_name/home/mydirectory" \} ]` + # `[ \{ "Entry": "/", "Target": "/bucket_name/home/mydirectory" \} ]` # @return [Array] # # @!attribute [rw] policy @@ -864,13 +864,13 @@ class CreateUserResponse < Struct.new( # The `TYPE` specifies which of the following actions is being taken # for this step. # - # * *Copy*\: copy the file to another location + # * *COPY*\: copy the file to another location # - # * *Custom*\: custom step with a lambda target + # * *CUSTOM*\: custom step with a lambda target # - # * *Delete*\: delete the file + # * *DELETE*\: delete the file # - # * *Tag*\: add a tag to the file + # * *TAG*\: add a tag to the file # # Currently, copying and tagging are supported only on S3. # @@ -2133,13 +2133,13 @@ class ExecutionResults < Struct.new( # @!attribute [rw] step_type # One of the available step types. # - # * *Copy*\: copy the file to another location + # * *COPY*\: copy the file to another location # - # * *Custom*\: custom step with a lambda target + # * *CUSTOM*\: custom step with a lambda target # - # * *Delete*\: delete the file + # * *DELETE*\: delete the file # - # * *Tag*\: add a tag to the file + # * *TAG*\: add a tag to the file # @return [String] # # @!attribute [rw] outputs @@ -2187,7 +2187,7 @@ class FileLocation < Struct.new( # # The following is an `Entry` and `Target` pair example for `chroot`. # - # `[ \{ "Entry:": "/", "Target": "/bucket_name/home/mydirectory" \} ]` + # `[ \{ "Entry": "/", "Target": "/bucket_name/home/mydirectory" \} ]` # # @note When making an API call, you may pass HomeDirectoryMapEntry # data as a hash: @@ -3818,7 +3818,7 @@ class UntagResourceRequest < Struct.new( # # The following is an `Entry` and `Target` pair example for `chroot`. # - # `[ \{ "Entry:": "/", "Target": "/bucket_name/home/mydirectory" \} ]` + # `[ \{ "Entry": "/", "Target": "/bucket_name/home/mydirectory" \} ]` # @return [Array] # # @!attribute [rw] policy @@ -4257,7 +4257,7 @@ class UpdateServerResponse < Struct.new( # # The following is an `Entry` and `Target` pair example for `chroot`. # - # `[ \{ "Entry:": "/", "Target": "/bucket_name/home/mydirectory" \} ]` + # `[ \{ "Entry": "/", "Target": "/bucket_name/home/mydirectory" \} ]` # @return [Array] # # @!attribute [rw] policy @@ -4499,13 +4499,13 @@ class WorkflowDetails < Struct.new( # @!attribute [rw] type # Currently, the following step types are supported. # - # * *Copy*\: copy the file to another location + # * *COPY*\: copy the file to another location # - # * *Custom*\: custom step with a lambda target + # * *CUSTOM*\: custom step with a lambda target # - # * *Delete*\: delete the file + # * *DELETE*\: delete the file # - # * *Tag*\: add a tag to the file + # * *TAG*\: add a tag to the file # @return [String] # # @!attribute [rw] copy_step_details diff --git a/gems/aws-sdk-worklink/CHANGELOG.md b/gems/aws-sdk-worklink/CHANGELOG.md index ec0788faeeb..e263b0d8c29 100644 --- a/gems/aws-sdk-worklink/CHANGELOG.md +++ b/gems/aws-sdk-worklink/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.33.0 (2022-04-19) +------------------ + +* Feature - Amazon WorkLink is no longer supported. This will be removed in a future version of the SDK. + 1.32.0 (2022-02-24) ------------------ diff --git a/gems/aws-sdk-worklink/VERSION b/gems/aws-sdk-worklink/VERSION index 359c41089a4..7aa332e4163 100644 --- a/gems/aws-sdk-worklink/VERSION +++ b/gems/aws-sdk-worklink/VERSION @@ -1 +1 @@ -1.32.0 +1.33.0 diff --git a/gems/aws-sdk-worklink/lib/aws-sdk-worklink.rb b/gems/aws-sdk-worklink/lib/aws-sdk-worklink.rb index 8af9258b236..0bc4c4eab1d 100644 --- a/gems/aws-sdk-worklink/lib/aws-sdk-worklink.rb +++ b/gems/aws-sdk-worklink/lib/aws-sdk-worklink.rb @@ -48,6 +48,6 @@ # @!group service module Aws::WorkLink - GEM_VERSION = '1.32.0' + GEM_VERSION = '1.33.0' end diff --git a/gems/aws-sdk-worklink/lib/aws-sdk-worklink/client.rb b/gems/aws-sdk-worklink/lib/aws-sdk-worklink/client.rb index 858b7554ed9..da033f816c5 100644 --- a/gems/aws-sdk-worklink/lib/aws-sdk-worklink/client.rb +++ b/gems/aws-sdk-worklink/lib/aws-sdk-worklink/client.rb @@ -1493,7 +1493,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-worklink' - context[:gem_version] = '1.32.0' + context[:gem_version] = '1.33.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-worklink/lib/aws-sdk-worklink/client_api.rb b/gems/aws-sdk-worklink/lib/aws-sdk-worklink/client_api.rb index 7fb6cd4506b..a7306d2bc1b 100644 --- a/gems/aws-sdk-worklink/lib/aws-sdk-worklink/client_api.rb +++ b/gems/aws-sdk-worklink/lib/aws-sdk-worklink/client_api.rb @@ -476,6 +476,7 @@ module ClientApi o.name = "AssociateDomain" o.http_method = "POST" o.http_request_uri = "/associateDomain" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: AssociateDomainRequest) o.output = Shapes::ShapeRef.new(shape: AssociateDomainResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -490,6 +491,7 @@ module ClientApi o.name = "AssociateWebsiteAuthorizationProvider" o.http_method = "POST" o.http_request_uri = "/associateWebsiteAuthorizationProvider" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: AssociateWebsiteAuthorizationProviderRequest) o.output = Shapes::ShapeRef.new(shape: AssociateWebsiteAuthorizationProviderResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -504,6 +506,7 @@ module ClientApi o.name = "AssociateWebsiteCertificateAuthority" o.http_method = "POST" o.http_request_uri = "/associateWebsiteCertificateAuthority" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: AssociateWebsiteCertificateAuthorityRequest) o.output = Shapes::ShapeRef.new(shape: AssociateWebsiteCertificateAuthorityResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -518,6 +521,7 @@ module ClientApi o.name = "CreateFleet" o.http_method = "POST" o.http_request_uri = "/createFleet" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: CreateFleetRequest) o.output = Shapes::ShapeRef.new(shape: CreateFleetResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -532,6 +536,7 @@ module ClientApi o.name = "DeleteFleet" o.http_method = "POST" o.http_request_uri = "/deleteFleet" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: DeleteFleetRequest) o.output = Shapes::ShapeRef.new(shape: DeleteFleetResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -545,6 +550,7 @@ module ClientApi o.name = "DescribeAuditStreamConfiguration" o.http_method = "POST" o.http_request_uri = "/describeAuditStreamConfiguration" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: DescribeAuditStreamConfigurationRequest) o.output = Shapes::ShapeRef.new(shape: DescribeAuditStreamConfigurationResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -558,6 +564,7 @@ module ClientApi o.name = "DescribeCompanyNetworkConfiguration" o.http_method = "POST" o.http_request_uri = "/describeCompanyNetworkConfiguration" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: DescribeCompanyNetworkConfigurationRequest) o.output = Shapes::ShapeRef.new(shape: DescribeCompanyNetworkConfigurationResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -571,6 +578,7 @@ module ClientApi o.name = "DescribeDevice" o.http_method = "POST" o.http_request_uri = "/describeDevice" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: DescribeDeviceRequest) o.output = Shapes::ShapeRef.new(shape: DescribeDeviceResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -584,6 +592,7 @@ module ClientApi o.name = "DescribeDevicePolicyConfiguration" o.http_method = "POST" o.http_request_uri = "/describeDevicePolicyConfiguration" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: DescribeDevicePolicyConfigurationRequest) o.output = Shapes::ShapeRef.new(shape: DescribeDevicePolicyConfigurationResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -597,6 +606,7 @@ module ClientApi o.name = "DescribeDomain" o.http_method = "POST" o.http_request_uri = "/describeDomain" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: DescribeDomainRequest) o.output = Shapes::ShapeRef.new(shape: DescribeDomainResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -610,6 +620,7 @@ module ClientApi o.name = "DescribeFleetMetadata" o.http_method = "POST" o.http_request_uri = "/describeFleetMetadata" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: DescribeFleetMetadataRequest) o.output = Shapes::ShapeRef.new(shape: DescribeFleetMetadataResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -623,6 +634,7 @@ module ClientApi o.name = "DescribeIdentityProviderConfiguration" o.http_method = "POST" o.http_request_uri = "/describeIdentityProviderConfiguration" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: DescribeIdentityProviderConfigurationRequest) o.output = Shapes::ShapeRef.new(shape: DescribeIdentityProviderConfigurationResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -636,6 +648,7 @@ module ClientApi o.name = "DescribeWebsiteCertificateAuthority" o.http_method = "POST" o.http_request_uri = "/describeWebsiteCertificateAuthority" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: DescribeWebsiteCertificateAuthorityRequest) o.output = Shapes::ShapeRef.new(shape: DescribeWebsiteCertificateAuthorityResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -649,6 +662,7 @@ module ClientApi o.name = "DisassociateDomain" o.http_method = "POST" o.http_request_uri = "/disassociateDomain" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: DisassociateDomainRequest) o.output = Shapes::ShapeRef.new(shape: DisassociateDomainResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -662,6 +676,7 @@ module ClientApi o.name = "DisassociateWebsiteAuthorizationProvider" o.http_method = "POST" o.http_request_uri = "/disassociateWebsiteAuthorizationProvider" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: DisassociateWebsiteAuthorizationProviderRequest) o.output = Shapes::ShapeRef.new(shape: DisassociateWebsiteAuthorizationProviderResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -676,6 +691,7 @@ module ClientApi o.name = "DisassociateWebsiteCertificateAuthority" o.http_method = "POST" o.http_request_uri = "/disassociateWebsiteCertificateAuthority" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: DisassociateWebsiteCertificateAuthorityRequest) o.output = Shapes::ShapeRef.new(shape: DisassociateWebsiteCertificateAuthorityResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -689,6 +705,7 @@ module ClientApi o.name = "ListDevices" o.http_method = "POST" o.http_request_uri = "/listDevices" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: ListDevicesRequest) o.output = Shapes::ShapeRef.new(shape: ListDevicesResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -708,6 +725,7 @@ module ClientApi o.name = "ListDomains" o.http_method = "POST" o.http_request_uri = "/listDomains" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: ListDomainsRequest) o.output = Shapes::ShapeRef.new(shape: ListDomainsResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -727,6 +745,7 @@ module ClientApi o.name = "ListFleets" o.http_method = "POST" o.http_request_uri = "/listFleets" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: ListFleetsRequest) o.output = Shapes::ShapeRef.new(shape: ListFleetsResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -745,6 +764,7 @@ module ClientApi o.name = "ListTagsForResource" o.http_method = "GET" o.http_request_uri = "/tags/{ResourceArn}" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest) o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse) o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) @@ -754,6 +774,7 @@ module ClientApi o.name = "ListWebsiteAuthorizationProviders" o.http_method = "POST" o.http_request_uri = "/listWebsiteAuthorizationProviders" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: ListWebsiteAuthorizationProvidersRequest) o.output = Shapes::ShapeRef.new(shape: ListWebsiteAuthorizationProvidersResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -773,6 +794,7 @@ module ClientApi o.name = "ListWebsiteCertificateAuthorities" o.http_method = "POST" o.http_request_uri = "/listWebsiteCertificateAuthorities" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: ListWebsiteCertificateAuthoritiesRequest) o.output = Shapes::ShapeRef.new(shape: ListWebsiteCertificateAuthoritiesResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -791,6 +813,7 @@ module ClientApi o.name = "RestoreDomainAccess" o.http_method = "POST" o.http_request_uri = "/restoreDomainAccess" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: RestoreDomainAccessRequest) o.output = Shapes::ShapeRef.new(shape: RestoreDomainAccessResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -804,6 +827,7 @@ module ClientApi o.name = "RevokeDomainAccess" o.http_method = "POST" o.http_request_uri = "/revokeDomainAccess" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: RevokeDomainAccessRequest) o.output = Shapes::ShapeRef.new(shape: RevokeDomainAccessResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -817,6 +841,7 @@ module ClientApi o.name = "SignOutUser" o.http_method = "POST" o.http_request_uri = "/signOutUser" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: SignOutUserRequest) o.output = Shapes::ShapeRef.new(shape: SignOutUserResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -830,6 +855,7 @@ module ClientApi o.name = "TagResource" o.http_method = "POST" o.http_request_uri = "/tags/{ResourceArn}" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: TagResourceRequest) o.output = Shapes::ShapeRef.new(shape: TagResourceResponse) o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) @@ -839,6 +865,7 @@ module ClientApi o.name = "UntagResource" o.http_method = "DELETE" o.http_request_uri = "/tags/{ResourceArn}" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest) o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse) o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) @@ -848,6 +875,7 @@ module ClientApi o.name = "UpdateAuditStreamConfiguration" o.http_method = "POST" o.http_request_uri = "/updateAuditStreamConfiguration" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: UpdateAuditStreamConfigurationRequest) o.output = Shapes::ShapeRef.new(shape: UpdateAuditStreamConfigurationResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -861,6 +889,7 @@ module ClientApi o.name = "UpdateCompanyNetworkConfiguration" o.http_method = "POST" o.http_request_uri = "/updateCompanyNetworkConfiguration" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: UpdateCompanyNetworkConfigurationRequest) o.output = Shapes::ShapeRef.new(shape: UpdateCompanyNetworkConfigurationResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -874,6 +903,7 @@ module ClientApi o.name = "UpdateDevicePolicyConfiguration" o.http_method = "POST" o.http_request_uri = "/updateDevicePolicyConfiguration" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: UpdateDevicePolicyConfigurationRequest) o.output = Shapes::ShapeRef.new(shape: UpdateDevicePolicyConfigurationResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -887,6 +917,7 @@ module ClientApi o.name = "UpdateDomainMetadata" o.http_method = "POST" o.http_request_uri = "/updateDomainMetadata" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: UpdateDomainMetadataRequest) o.output = Shapes::ShapeRef.new(shape: UpdateDomainMetadataResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -900,6 +931,7 @@ module ClientApi o.name = "UpdateFleetMetadata" o.http_method = "POST" o.http_request_uri = "/UpdateFleetMetadata" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: UpdateFleetMetadataRequest) o.output = Shapes::ShapeRef.new(shape: UpdateFleetMetadataResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) @@ -913,6 +945,7 @@ module ClientApi o.name = "UpdateIdentityProviderConfiguration" o.http_method = "POST" o.http_request_uri = "/updateIdentityProviderConfiguration" + o.deprecated = true o.input = Shapes::ShapeRef.new(shape: UpdateIdentityProviderConfigurationRequest) o.output = Shapes::ShapeRef.new(shape: UpdateIdentityProviderConfigurationResponse) o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)