Skip to content

Commit

Permalink
Updated API models and rebuilt service gems.
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS SDK for Ruby authored and Nobody committed Jul 8, 2022
1 parent fb5c80a commit a4e47ca
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 76 deletions.
3 changes: 1 addition & 2 deletions apis/backup/2018-11-15/api-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -3149,8 +3149,7 @@
"type":"structure",
"required":[
"RecoveryPointArn",
"Metadata",
"IamRoleArn"
"Metadata"
],
"members":{
"RecoveryPointArn":{"shape":"ARN"},
Expand Down
24 changes: 12 additions & 12 deletions apis/backup/2018-11-15/docs-2.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions gems/aws-sdk-backup/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Unreleased Changes
------------------

1.45.0 (2022-07-08)
------------------

* Feature - This release adds support for authentication using IAM user identity instead of passed IAM role, identified by excluding the IamRoleArn field in the StartRestoreJob API. This feature applies to only resource clients with a destructive restore nature (e.g. SAP HANA).

1.44.0 (2022-05-04)
------------------

Expand Down
2 changes: 1 addition & 1 deletion gems/aws-sdk-backup/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.44.0
1.45.0
2 changes: 1 addition & 1 deletion gems/aws-sdk-backup/lib/aws-sdk-backup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
# @!group service
module Aws::Backup

GEM_VERSION = '1.44.0'
GEM_VERSION = '1.45.0'

end
33 changes: 15 additions & 18 deletions gems/aws-sdk-backup/lib/aws-sdk-backup/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3245,11 +3245,10 @@ def put_backup_vault_notifications(params = {}, options = {})
# “transition to cold after days” setting cannot be changed after a
# backup has been transitioned to cold.
#
# Only resource types that support full Backup management can transition
# their backups to cold storage. Those resource types are listed in the
# "Full Backup management" section of the [ Feature availability by
# resource][1] table. Backup ignores this expression for other resource
# types.
# Resource types that are able to be transitioned to cold storage are
# listed in the "Lifecycle to cold storage" section of the [ Feature
# availability by resource][1] table. Backup ignores this expression for
# other resource types.
#
#
#
Expand Down Expand Up @@ -3351,11 +3350,10 @@ def start_backup_job(params = {}, options = {})
# days” setting. The “transition to cold after days” setting cannot be
# changed after a backup has been transitioned to cold.
#
# Only resource types that support full Backup management can transition
# their backups to cold storage. Those resource types are listed in the
# "Full Backup management" section of the [ Feature availability by
# resource][1] table. Backup ignores this expression for other resource
# types.
# Resource types that are able to be transitioned to cold storage are
# listed in the "Lifecycle to cold storage" section of the [ Feature
# availability by resource][1] table. Backup ignores this expression for
# other resource types.
#
#
#
Expand Down Expand Up @@ -3479,7 +3477,7 @@ def start_report_job(params = {}, options = {})
# directories rather than the entire file system. This parameter is
# optional. For example, `"itemsToRestore":"["/my.test"]"`.
#
# @option params [required, String] :iam_role_arn
# @option params [String] :iam_role_arn
# The Amazon Resource Name (ARN) of the IAM role that Backup uses to
# create the target recovery point; for example,
# `arn:aws:iam::123456789012:role/S3Access`.
Expand Down Expand Up @@ -3529,7 +3527,7 @@ def start_report_job(params = {}, options = {})
# metadata: { # required
# "MetadataKey" => "MetadataValue",
# },
# iam_role_arn: "IAMRoleArn", # required
# iam_role_arn: "IAMRoleArn",
# idempotency_token: "string",
# resource_type: "ResourceType",
# })
Expand Down Expand Up @@ -3826,11 +3824,10 @@ def update_global_settings(params = {}, options = {})
# “transition to cold after days” setting cannot be changed after a
# backup has been transitioned to cold.
#
# Only resource types that support full Backup management can transition
# their backups to cold storage. Those resource types are listed in the
# "Full Backup management" section of the [ Feature availability by
# resource][1] table. Backup ignores this expression for other resource
# types.
# Resource types that are able to be transitioned to cold storage are
# listed in the "Lifecycle to cold storage" section of the [ Feature
# availability by resource][1] table. Backup ignores this expression for
# other resource types.
#
# This operation does not support continuous backups.
#
Expand Down Expand Up @@ -4030,7 +4027,7 @@ def build_request(operation_name, params = {})
params: params,
config: config)
context[:gem_name] = 'aws-sdk-backup'
context[:gem_version] = '1.44.0'
context[:gem_version] = '1.45.0'
Seahorse::Client::Request.new(handlers, context)
end

Expand Down
2 changes: 1 addition & 1 deletion gems/aws-sdk-backup/lib/aws-sdk-backup/client_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ module ClientApi

StartRestoreJobInput.add_member(:recovery_point_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "RecoveryPointArn"))
StartRestoreJobInput.add_member(:metadata, Shapes::ShapeRef.new(shape: Metadata, required: true, location_name: "Metadata"))
StartRestoreJobInput.add_member(:iam_role_arn, Shapes::ShapeRef.new(shape: IAMRoleArn, required: true, location_name: "IamRoleArn"))
StartRestoreJobInput.add_member(:iam_role_arn, Shapes::ShapeRef.new(shape: IAMRoleArn, location_name: "IamRoleArn"))
StartRestoreJobInput.add_member(:idempotency_token, Shapes::ShapeRef.new(shape: string, location_name: "IdempotencyToken"))
StartRestoreJobInput.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
StartRestoreJobInput.struct_class = Types::StartRestoreJobInput
Expand Down
77 changes: 36 additions & 41 deletions gems/aws-sdk-backup/lib/aws-sdk-backup/types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,8 @@ class BackupPlansListMember < Struct.new(
# The “transition to cold after days” setting cannot be changed after
# a backup has been transitioned to cold.
#
# Only resource types that support full Backup management can
# transition their backups to cold storage. Those resource types are
# listed in the "Full Backup management" section of the [ Feature
# Resource types that are able to be transitioned to cold storage are
# listed in the "Lifecycle to cold storage" section of the [ Feature
# availability by resource][1] table. Backup ignores this expression
# for other resource types.
#
Expand Down Expand Up @@ -616,9 +615,8 @@ class BackupRule < Struct.new(
# The “transition to cold after days” setting cannot be changed after
# a backup has been transitioned to cold.
#
# Only resource types that support full Backup management can
# transition their backups to cold storage. Those resource types are
# listed in the "Full Backup management" section of the [ Feature
# Resource types that are able to be transitioned to cold storage are
# listed in the "Lifecycle to cold storage" section of the [ Feature
# availability by resource][1] table. Backup ignores this expression
# for other resource types.
#
Expand Down Expand Up @@ -662,6 +660,11 @@ class BackupRuleInput < Struct.new(

# Used to specify a set of resources to a backup plan.
#
# Specifying your desired `Conditions`, `ListOfTags`, `NotResources`,
# and/or `Resources` is recommended. If none of these are specified,
# Backup will attempt to select all supported and opted-in storage
# resources, which could have unintended cost implications.
#
# @note When making an API call, you may pass BackupSelection
# data as a hash:
#
Expand Down Expand Up @@ -729,9 +732,9 @@ class BackupRuleInput < Struct.new(
#
# @!attribute [rw] list_of_tags
# A list of conditions that you define to assign resources to your
# backup plans using tags. For example, `"StringEquals":
# \{"Department": "accounting"`. Condition operators are case
# sensitive.
# backup plans using tags. For example, `"StringEquals": \{
# "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue":
# "true" \},`. Condition operators are case sensitive.
#
# `ListOfTags` differs from `Conditions` as follows:
#
Expand All @@ -755,9 +758,9 @@ class BackupRuleInput < Struct.new(
#
# @!attribute [rw] conditions
# A list of conditions that you define to assign resources to your
# backup plans using tags. For example, `"StringEquals":
# \{"Department": "accounting"`. Condition operators are case
# sensitive.
# backup plans using tags. For example, `"StringEquals": \{
# "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue":
# "true" \},`. Condition operators are case sensitive.
#
# `Conditions` differs from `ListOfTags` as follows:
#
Expand Down Expand Up @@ -964,11 +967,10 @@ class BackupVaultListMember < Struct.new(
# “transition to cold after days” setting cannot be changed after a
# backup has been transitioned to cold.
#
# Only resource types that support full Backup management can transition
# their backups to cold storage. Those resource types are listed in the
# "Full Backup management" section of the [ Feature availability by
# resource][1] table. Backup ignores this expression for other resource
# types.
# Resource types that are able to be transitioned to cold storage are
# listed in the "Lifecycle to cold storage" section of the [ Feature
# availability by resource][1] table. Backup ignores this expression for
# other resource types.
#
#
#
Expand Down Expand Up @@ -1268,9 +1270,8 @@ class ControlScope < Struct.new(
# days” setting. The “transition to cold after days” setting cannot be
# changed after a backup has been transitioned to cold.
#
# Only resource types that support full Backup management can
# transition their backups to cold storage. Those resource types are
# listed in the "Full Backup management" section of the [ Feature
# Resource types that are able to be transitioned to cold storage are
# listed in the "Lifecycle to cold storage" section of the [ Feature
# availability by resource][1] table. Backup ignores this expression
# for other resource types.
#
Expand Down Expand Up @@ -2779,9 +2780,8 @@ class DescribeRecoveryPointInput < Struct.new(
# setting. The “transition to cold after days” setting cannot be
# changed after a backup has been transitioned to cold.
#
# Only resource types that support full Backup management can
# transition their backups to cold storage. Those resource types are
# listed in the "Full Backup management" section of the [ Feature
# Resource types that are able to be transitioned to cold storage are
# listed in the "Lifecycle to cold storage" section of the [ Feature
# availability by resource][1] table. Backup ignores this expression
# for other resource types.
#
Expand Down Expand Up @@ -3726,11 +3726,10 @@ class InvalidResourceStateException < Struct.new(
# days” setting. The “transition to cold after days” setting cannot be
# changed after a backup has been transitioned to cold.
#
# Only resource types that support full Backup management can transition
# their backups to cold storage. Those resource types are listed in the
# "Full Backup management" section of the [ Feature availability by
# resource][1] table. Backup ignores this expression for other resource
# types.
# Resource types that are able to be transitioned to cold storage are
# listed in the "Lifecycle to cold storage" section of the [ Feature
# availability by resource][1] table. Backup ignores this expression for
# other resource types.
#
#
#
Expand Down Expand Up @@ -5198,9 +5197,8 @@ class PutBackupVaultNotificationsInput < Struct.new(
# The “transition to cold after days” setting cannot be changed after
# a backup has been transitioned to cold.
#
# Only resource types that support full Backup management can
# transition their backups to cold storage. Those resource types are
# listed in the "Full Backup management" section of the [ Feature
# Resource types that are able to be transitioned to cold storage are
# listed in the "Lifecycle to cold storage" section of the [ Feature
# availability by resource][1] table. Backup ignores this expression
# for other resource types.
#
Expand Down Expand Up @@ -5804,9 +5802,8 @@ class ServiceUnavailableException < Struct.new(
# The “transition to cold after days” setting cannot be changed after
# a backup has been transitioned to cold.
#
# Only resource types that support full Backup management can
# transition their backups to cold storage. Those resource types are
# listed in the "Full Backup management" section of the [ Feature
# Resource types that are able to be transitioned to cold storage are
# listed in the "Lifecycle to cold storage" section of the [ Feature
# availability by resource][1] table. Backup ignores this expression
# for other resource types.
#
Expand Down Expand Up @@ -5931,9 +5928,8 @@ class StartBackupJobOutput < Struct.new(
# days” setting. The “transition to cold after days” setting cannot be
# changed after a backup has been transitioned to cold.
#
# Only resource types that support full Backup management can
# transition their backups to cold storage. Those resource types are
# listed in the "Full Backup management" section of the [ Feature
# Resource types that are able to be transitioned to cold storage are
# listed in the "Lifecycle to cold storage" section of the [ Feature
# availability by resource][1] table. Backup ignores this expression
# for other resource types.
#
Expand Down Expand Up @@ -6028,7 +6024,7 @@ class StartReportJobOutput < Struct.new(
# metadata: { # required
# "MetadataKey" => "MetadataValue",
# },
# iam_role_arn: "IAMRoleArn", # required
# iam_role_arn: "IAMRoleArn",
# idempotency_token: "string",
# resource_type: "ResourceType",
# }
Expand Down Expand Up @@ -6508,9 +6504,8 @@ class UpdateRecoveryPointLifecycleInput < Struct.new(
# The “transition to cold after days” setting cannot be changed after
# a backup has been transitioned to cold.
#
# Only resource types that support full Backup management can
# transition their backups to cold storage. Those resource types are
# listed in the "Full Backup management" section of the [ Feature
# Resource types that are able to be transitioned to cold storage are
# listed in the "Lifecycle to cold storage" section of the [ Feature
# availability by resource][1] table. Backup ignores this expression
# for other resource types.
#
Expand Down

0 comments on commit a4e47ca

Please sign in to comment.