aws-sdk-opsworkscm 1.26.0 → 1.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c5e60bd435b897c4c44e152700fe2c14d97895f
4
- data.tar.gz: 16d1010a6657ed53359b171da597d90b42d6faa9
3
+ metadata.gz: 44bd4204762e6205cfd1482860e0c87bca26ac0a
4
+ data.tar.gz: e509343bbf7d9abbbb91d66ad51041128eb50a93
5
5
  SHA512:
6
- metadata.gz: e53680f83e2693c31e1ca118d52488b5daf20c6743e59e74aaa1e3ab7adabd301437e718f9498ac285b07bfd61a10ca13f073c35ca84eacda106ec3b401b444e
7
- data.tar.gz: ba4b0409c50f6692d3626522c2140bdfb04f53d2da1cf50bf0eb7886ffa8c67dce50b16349c229686339496a1622009e35f2630986b6c6911adc78dd3de3973a
6
+ metadata.gz: 908ee4362f97ecf5035e6f558485b5f6e5dc81710dff457036f3cebf7599b96e71d7af23942e728dd392c72e5f00fa674940c1eb80dbaeb97c1b165657b4c818
7
+ data.tar.gz: 6fd24dc90c5517b7398ab448a29862bd505155eef5dfc88a929bc79a8ce61e9a27b3605ff55893cedfacf7057be1cbc5b3247c34b115c461988527ca6e4b6f23
@@ -43,6 +43,6 @@ require_relative 'aws-sdk-opsworkscm/customizations'
43
43
  # @service
44
44
  module Aws::OpsWorksCM
45
45
 
46
- GEM_VERSION = '1.26.0'
46
+ GEM_VERSION = '1.27.0'
47
47
 
48
48
  end
@@ -367,6 +367,26 @@ module Aws::OpsWorksCM
367
367
  # @option params [String] :description
368
368
  # A user-defined description of the backup.
369
369
  #
370
+ # @option params [Array<Types::Tag>] :tags
371
+ # A map that contains tag keys and tag values to attach to an AWS
372
+ # OpsWorks-CM server backup.
373
+ #
374
+ # * The key cannot be empty.
375
+ #
376
+ # * The key can be a maximum of 127 characters, and can contain only
377
+ # Unicode letters, numbers, or separators, or the following special
378
+ # characters: `+ - = . _ : /`
379
+ #
380
+ # * The value can be a maximum 255 characters, and contain only Unicode
381
+ # letters, numbers, or separators, or the following special
382
+ # characters: `+ - = . _ : /`
383
+ #
384
+ # * Leading and trailing white spaces are trimmed from both the key and
385
+ # value.
386
+ #
387
+ # * A maximum of 50 user-applied tags is allowed for tag-supported AWS
388
+ # OpsWorks-CM resources.
389
+ #
370
390
  # @return [Types::CreateBackupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
371
391
  #
372
392
  # * {Types::CreateBackupResponse#backup #backup} => Types::Backup
@@ -376,6 +396,12 @@ module Aws::OpsWorksCM
376
396
  # resp = client.create_backup({
377
397
  # server_name: "ServerName", # required
378
398
  # description: "String",
399
+ # tags: [
400
+ # {
401
+ # key: "TagKey", # required
402
+ # value: "TagValue", # required
403
+ # },
404
+ # ],
379
405
  # })
380
406
  #
381
407
  # @example Response structure
@@ -458,21 +484,22 @@ module Aws::OpsWorksCM
458
484
  # Valid values are `true` or `false`. The default value is `true`.
459
485
  #
460
486
  # @option params [String] :custom_domain
461
- # An optional public endpoint of a server, such as
462
- # `https://aws.my-company.com`. To access the server, create a CNAME DNS
463
- # record in your preferred DNS service that points the custom domain to
464
- # the endpoint that is generated when the server is created (the value
465
- # of the CreateServer Endpoint attribute). You cannot access the server
466
- # by using the generated `Endpoint` value if the server is using a
467
- # custom domain. If you specify a custom domain, you must also specify
468
- # values for `CustomCertificate` and `CustomPrivateKey`.
487
+ # Supported on servers running Chef Automate 2. An optional public
488
+ # endpoint of a server, such as `https://aws.my-company.com`. To access
489
+ # the server, create a CNAME DNS record in your preferred DNS service
490
+ # that points the custom domain to the endpoint that is generated when
491
+ # the server is created (the value of the CreateServer Endpoint
492
+ # attribute). You cannot access the server by using the generated
493
+ # `Endpoint` value if the server is using a custom domain. If you
494
+ # specify a custom domain, you must also specify values for
495
+ # `CustomCertificate` and `CustomPrivateKey`.
469
496
  #
470
497
  # @option params [String] :custom_certificate
471
- # A PEM-formatted HTTPS certificate. The value can be be a single,
472
- # self-signed certificate, or a certificate chain. If you specify a
473
- # custom certificate, you must also specify values for `CustomDomain`
474
- # and `CustomPrivateKey`. The following are requirements for the
475
- # `CustomCertificate` value:
498
+ # Supported on servers running Chef Automate 2. A PEM-formatted HTTPS
499
+ # certificate. The value can be be a single, self-signed certificate, or
500
+ # a certificate chain. If you specify a custom certificate, you must
501
+ # also specify values for `CustomDomain` and `CustomPrivateKey`. The
502
+ # following are requirements for the `CustomCertificate` value:
476
503
  #
477
504
  # * You can provide either a self-signed, custom certificate, or the
478
505
  # full certificate chain.
@@ -491,10 +518,11 @@ module Aws::OpsWorksCM
491
518
  # * The certificate must match the value of `CustomPrivateKey`.
492
519
  #
493
520
  # @option params [String] :custom_private_key
494
- # A private key in PEM format for connecting to the server by using
495
- # HTTPS. The private key must not be encrypted; it cannot be protected
496
- # by a password or passphrase. If you specify a custom private key, you
497
- # must also specify values for `CustomDomain` and `CustomCertificate`.
521
+ # Supported on servers running Chef Automate 2. A private key in PEM
522
+ # format for connecting to the server by using HTTPS. The private key
523
+ # must not be encrypted; it cannot be protected by a password or
524
+ # passphrase. If you specify a custom private key, you must also specify
525
+ # values for `CustomDomain` and `CustomCertificate`.
498
526
  #
499
527
  # @option params [Boolean] :disable_automated_backup
500
528
  # Enable or disable scheduled backups. Valid values are `true` or
@@ -641,6 +669,27 @@ module Aws::OpsWorksCM
641
669
  #
642
670
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html
643
671
  #
672
+ # @option params [Array<Types::Tag>] :tags
673
+ # A map that contains tag keys and tag values to attach to an AWS
674
+ # OpsWorks for Chef Automate or AWS OpsWorks for Puppet Enterprise
675
+ # server.
676
+ #
677
+ # * The key cannot be empty.
678
+ #
679
+ # * The key can be a maximum of 127 characters, and can contain only
680
+ # Unicode letters, numbers, or separators, or the following special
681
+ # characters: `+ - = . _ : /`
682
+ #
683
+ # * The value can be a maximum 255 characters, and contain only Unicode
684
+ # letters, numbers, or separators, or the following special
685
+ # characters: `+ - = . _ : /`
686
+ #
687
+ # * Leading and trailing white spaces are trimmed from both the key and
688
+ # value.
689
+ #
690
+ # * A maximum of 50 user-applied tags is allowed for any AWS OpsWorks-CM
691
+ # server.
692
+ #
644
693
  # @option params [String] :backup_id
645
694
  # If you specify this field, AWS OpsWorks CM creates the server by using
646
695
  # the backup represented by BackupId.
@@ -676,6 +725,12 @@ module Aws::OpsWorksCM
676
725
  # security_group_ids: ["String"],
677
726
  # service_role_arn: "ServiceRoleArn", # required
678
727
  # subnet_ids: ["String"],
728
+ # tags: [
729
+ # {
730
+ # key: "TagKey", # required
731
+ # value: "TagValue", # required
732
+ # },
733
+ # ],
679
734
  # backup_id: "BackupId",
680
735
  # })
681
736
  #
@@ -1194,6 +1249,63 @@ module Aws::OpsWorksCM
1194
1249
  req.send_request(options)
1195
1250
  end
1196
1251
 
1252
+ # Returns a list of tags that are applied to the specified AWS OpsWorks
1253
+ # for Chef Automate or AWS OpsWorks for Puppet Enterprise servers or
1254
+ # backups.
1255
+ #
1256
+ # @option params [required, String] :resource_arn
1257
+ # The Amazon Resource Number (ARN) of an AWS OpsWorks for Chef Automate
1258
+ # or AWS OpsWorks for Puppet Enterprise server for which you want to
1259
+ # show applied tags. For example,
1260
+ # `arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE`.
1261
+ #
1262
+ # @option params [String] :next_token
1263
+ # NextToken is a string that is returned in some command responses. It
1264
+ # indicates that not all entries have been returned, and that you must
1265
+ # run at least one more request to get remaining items. To get remaining
1266
+ # results, call `ListTagsForResource` again, and assign the token from
1267
+ # the previous results as the value of the `nextToken` parameter. If
1268
+ # there are no more results, the response object's `nextToken`
1269
+ # parameter value is `null`. Setting a `nextToken` value that was not
1270
+ # returned in your previous results causes an
1271
+ # `InvalidNextTokenException` to occur.
1272
+ #
1273
+ # @option params [Integer] :max_results
1274
+ # To receive a paginated response, use this parameter to specify the
1275
+ # maximum number of results to be returned with a single call. If the
1276
+ # number of available results exceeds this maximum, the response
1277
+ # includes a `NextToken` value that you can assign to the `NextToken`
1278
+ # request parameter to get the next set of results.
1279
+ #
1280
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1281
+ #
1282
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Array&lt;Types::Tag&gt;
1283
+ # * {Types::ListTagsForResourceResponse#next_token #next_token} => String
1284
+ #
1285
+ # @example Request syntax with placeholder values
1286
+ #
1287
+ # resp = client.list_tags_for_resource({
1288
+ # resource_arn: "AWSOpsWorksCMResourceArn", # required
1289
+ # next_token: "NextToken",
1290
+ # max_results: 1,
1291
+ # })
1292
+ #
1293
+ # @example Response structure
1294
+ #
1295
+ # resp.tags #=> Array
1296
+ # resp.tags[0].key #=> String
1297
+ # resp.tags[0].value #=> String
1298
+ # resp.next_token #=> String
1299
+ #
1300
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/ListTagsForResource AWS API Documentation
1301
+ #
1302
+ # @overload list_tags_for_resource(params = {})
1303
+ # @param [Hash] params ({})
1304
+ def list_tags_for_resource(params = {}, options = {})
1305
+ req = build_request(:list_tags_for_resource, params)
1306
+ req.send_request(options)
1307
+ end
1308
+
1197
1309
  # Restores a backup to a server that is in a `CONNECTION_LOST`,
1198
1310
  # `HEALTHY`, `RUNNING`, `UNHEALTHY`, or `TERMINATED` state. When you run
1199
1311
  # RestoreServer, the server's EC2 instance is deleted, and a new EC2
@@ -1201,6 +1313,12 @@ module Aws::OpsWorksCM
1201
1313
  # endpoint, so configuration management of the server's client devices
1202
1314
  # (nodes) should continue to work.
1203
1315
  #
1316
+ # Restoring from a backup is performed by creating a new EC2 instance.
1317
+ # If restoration is successful, and the server is in a `HEALTHY` state,
1318
+ # AWS OpsWorks CM switches traffic over to the new instance. After
1319
+ # restoration is finished, the old EC2 instance is maintained in a
1320
+ # `Running` or `Stopped` state, but is eventually terminated.
1321
+ #
1204
1322
  # This operation is asynchronous.
1205
1323
  #
1206
1324
  # An `InvalidStateException` is thrown when the server is not in a valid
@@ -1319,6 +1437,85 @@ module Aws::OpsWorksCM
1319
1437
  req.send_request(options)
1320
1438
  end
1321
1439
 
1440
+ # Applies tags to an AWS OpsWorks for Chef Automate or AWS OpsWorks for
1441
+ # Puppet Enterprise server, or to server backups.
1442
+ #
1443
+ # @option params [required, String] :resource_arn
1444
+ # The Amazon Resource Number (ARN) of a resource to which you want to
1445
+ # apply tags. For example,
1446
+ # `arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE`.
1447
+ #
1448
+ # @option params [required, Array<Types::Tag>] :tags
1449
+ # A map that contains tag keys and tag values to attach to AWS
1450
+ # OpsWorks-CM servers or backups.
1451
+ #
1452
+ # * The key cannot be empty.
1453
+ #
1454
+ # * The key can be a maximum of 127 characters, and can contain only
1455
+ # Unicode letters, numbers, or separators, or the following special
1456
+ # characters: `+ - = . _ : /`
1457
+ #
1458
+ # * The value can be a maximum 255 characters, and contain only Unicode
1459
+ # letters, numbers, or separators, or the following special
1460
+ # characters: `+ - = . _ : /`
1461
+ #
1462
+ # * Leading and trailing white spaces are trimmed from both the key and
1463
+ # value.
1464
+ #
1465
+ # * A maximum of 50 user-applied tags is allowed for any AWS OpsWorks-CM
1466
+ # server or backup.
1467
+ #
1468
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1469
+ #
1470
+ # @example Request syntax with placeholder values
1471
+ #
1472
+ # resp = client.tag_resource({
1473
+ # resource_arn: "AWSOpsWorksCMResourceArn", # required
1474
+ # tags: [ # required
1475
+ # {
1476
+ # key: "TagKey", # required
1477
+ # value: "TagValue", # required
1478
+ # },
1479
+ # ],
1480
+ # })
1481
+ #
1482
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/TagResource AWS API Documentation
1483
+ #
1484
+ # @overload tag_resource(params = {})
1485
+ # @param [Hash] params ({})
1486
+ def tag_resource(params = {}, options = {})
1487
+ req = build_request(:tag_resource, params)
1488
+ req.send_request(options)
1489
+ end
1490
+
1491
+ # Removes specified tags from an AWS OpsWorks-CM server or backup.
1492
+ #
1493
+ # @option params [required, String] :resource_arn
1494
+ # The Amazon Resource Number (ARN) of a resource from which you want to
1495
+ # remove tags. For example,
1496
+ # `arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE`.
1497
+ #
1498
+ # @option params [required, Array<String>] :tag_keys
1499
+ # The keys of tags that you want to remove.
1500
+ #
1501
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1502
+ #
1503
+ # @example Request syntax with placeholder values
1504
+ #
1505
+ # resp = client.untag_resource({
1506
+ # resource_arn: "AWSOpsWorksCMResourceArn", # required
1507
+ # tag_keys: ["TagKey"], # required
1508
+ # })
1509
+ #
1510
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/UntagResource AWS API Documentation
1511
+ #
1512
+ # @overload untag_resource(params = {})
1513
+ # @param [Hash] params ({})
1514
+ def untag_resource(params = {}, options = {})
1515
+ req = build_request(:untag_resource, params)
1516
+ req.send_request(options)
1517
+ end
1518
+
1322
1519
  # Updates settings for a server.
1323
1520
  #
1324
1521
  # This operation is synchronous.
@@ -1489,7 +1686,7 @@ module Aws::OpsWorksCM
1489
1686
  params: params,
1490
1687
  config: config)
1491
1688
  context[:gem_name] = 'aws-sdk-opsworkscm'
1492
- context[:gem_version] = '1.26.0'
1689
+ context[:gem_version] = '1.27.0'
1493
1690
  Seahorse::Client::Request.new(handlers, context)
1494
1691
  end
1495
1692
 
@@ -11,6 +11,7 @@ module Aws::OpsWorksCM
11
11
 
12
12
  include Seahorse::Model
13
13
 
14
+ AWSOpsWorksCMResourceArn = Shapes::StringShape.new(name: 'AWSOpsWorksCMResourceArn')
14
15
  AccountAttribute = Shapes::StructureShape.new(name: 'AccountAttribute')
15
16
  AccountAttributes = Shapes::ListShape.new(name: 'AccountAttributes')
16
17
  AssociateNodeRequest = Shapes::StructureShape.new(name: 'AssociateNodeRequest')
@@ -59,6 +60,8 @@ module Aws::OpsWorksCM
59
60
  InvalidStateException = Shapes::StructureShape.new(name: 'InvalidStateException')
60
61
  KeyPair = Shapes::StringShape.new(name: 'KeyPair')
61
62
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
63
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
64
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
62
65
  MaintenanceStatus = Shapes::StringShape.new(name: 'MaintenanceStatus')
63
66
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
64
67
  NextToken = Shapes::StringShape.new(name: 'NextToken')
@@ -80,8 +83,17 @@ module Aws::OpsWorksCM
80
83
  StartMaintenanceResponse = Shapes::StructureShape.new(name: 'StartMaintenanceResponse')
81
84
  String = Shapes::StringShape.new(name: 'String')
82
85
  Strings = Shapes::ListShape.new(name: 'Strings')
86
+ Tag = Shapes::StructureShape.new(name: 'Tag')
87
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
88
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
89
+ TagList = Shapes::ListShape.new(name: 'TagList')
90
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
91
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
92
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
83
93
  TimeWindowDefinition = Shapes::StringShape.new(name: 'TimeWindowDefinition')
84
94
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
95
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
96
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
85
97
  UpdateServerEngineAttributesRequest = Shapes::StructureShape.new(name: 'UpdateServerEngineAttributesRequest')
86
98
  UpdateServerEngineAttributesResponse = Shapes::StructureShape.new(name: 'UpdateServerEngineAttributesResponse')
87
99
  UpdateServerRequest = Shapes::StructureShape.new(name: 'UpdateServerRequest')
@@ -133,6 +145,7 @@ module Aws::OpsWorksCM
133
145
 
134
146
  CreateBackupRequest.add_member(:server_name, Shapes::ShapeRef.new(shape: ServerName, required: true, location_name: "ServerName"))
135
147
  CreateBackupRequest.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "Description"))
148
+ CreateBackupRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
136
149
  CreateBackupRequest.struct_class = Types::CreateBackupRequest
137
150
 
138
151
  CreateBackupResponse.add_member(:backup, Shapes::ShapeRef.new(shape: Backup, location_name: "Backup"))
@@ -157,6 +170,7 @@ module Aws::OpsWorksCM
157
170
  CreateServerRequest.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: Strings, location_name: "SecurityGroupIds"))
158
171
  CreateServerRequest.add_member(:service_role_arn, Shapes::ShapeRef.new(shape: ServiceRoleArn, required: true, location_name: "ServiceRoleArn"))
159
172
  CreateServerRequest.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: Strings, location_name: "SubnetIds"))
173
+ CreateServerRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
160
174
  CreateServerRequest.add_member(:backup_id, Shapes::ShapeRef.new(shape: BackupId, location_name: "BackupId"))
161
175
  CreateServerRequest.struct_class = Types::CreateServerRequest
162
176
 
@@ -246,6 +260,15 @@ module Aws::OpsWorksCM
246
260
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
247
261
  LimitExceededException.struct_class = Types::LimitExceededException
248
262
 
263
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AWSOpsWorksCMResourceArn, required: true, location_name: "ResourceArn"))
264
+ ListTagsForResourceRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
265
+ ListTagsForResourceRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
266
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
267
+
268
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
269
+ ListTagsForResourceResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
270
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
271
+
249
272
  ResourceAlreadyExistsException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
250
273
  ResourceAlreadyExistsException.struct_class = Types::ResourceAlreadyExistsException
251
274
 
@@ -305,6 +328,26 @@ module Aws::OpsWorksCM
305
328
 
306
329
  Strings.member = Shapes::ShapeRef.new(shape: String)
307
330
 
331
+ Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
332
+ Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
333
+ Tag.struct_class = Types::Tag
334
+
335
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
336
+
337
+ TagList.member = Shapes::ShapeRef.new(shape: Tag)
338
+
339
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AWSOpsWorksCMResourceArn, required: true, location_name: "ResourceArn"))
340
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
341
+ TagResourceRequest.struct_class = Types::TagResourceRequest
342
+
343
+ TagResourceResponse.struct_class = Types::TagResourceResponse
344
+
345
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AWSOpsWorksCMResourceArn, required: true, location_name: "ResourceArn"))
346
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
347
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
348
+
349
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
350
+
308
351
  UpdateServerEngineAttributesRequest.add_member(:server_name, Shapes::ShapeRef.new(shape: ServerName, required: true, location_name: "ServerName"))
309
352
  UpdateServerEngineAttributesRequest.add_member(:attribute_name, Shapes::ShapeRef.new(shape: AttributeName, required: true, location_name: "AttributeName"))
310
353
  UpdateServerEngineAttributesRequest.add_member(:attribute_value, Shapes::ShapeRef.new(shape: AttributeValue, location_name: "AttributeValue"))
@@ -476,6 +519,16 @@ module Aws::OpsWorksCM
476
519
  o.errors << Shapes::ShapeRef.new(shape: InvalidStateException)
477
520
  end)
478
521
 
522
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
523
+ o.name = "ListTagsForResource"
524
+ o.http_method = "POST"
525
+ o.http_request_uri = "/"
526
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
527
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
528
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
529
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
530
+ end)
531
+
479
532
  api.add_operation(:restore_server, Seahorse::Model::Operation.new.tap do |o|
480
533
  o.name = "RestoreServer"
481
534
  o.http_method = "POST"
@@ -498,6 +551,28 @@ module Aws::OpsWorksCM
498
551
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
499
552
  end)
500
553
 
554
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
555
+ o.name = "TagResource"
556
+ o.http_method = "POST"
557
+ o.http_request_uri = "/"
558
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
559
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
560
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
561
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
562
+ o.errors << Shapes::ShapeRef.new(shape: InvalidStateException)
563
+ end)
564
+
565
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
566
+ o.name = "UntagResource"
567
+ o.http_method = "POST"
568
+ o.http_request_uri = "/"
569
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
570
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
571
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
572
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
573
+ o.errors << Shapes::ShapeRef.new(shape: InvalidStateException)
574
+ end)
575
+
501
576
  api.add_operation(:update_server, Seahorse::Model::Operation.new.tap do |o|
502
577
  o.name = "UpdateServer"
503
578
  o.http_method = "POST"
@@ -255,6 +255,12 @@ module Aws::OpsWorksCM
255
255
  # {
256
256
  # server_name: "ServerName", # required
257
257
  # description: "String",
258
+ # tags: [
259
+ # {
260
+ # key: "TagKey", # required
261
+ # value: "TagValue", # required
262
+ # },
263
+ # ],
258
264
  # }
259
265
  #
260
266
  # @!attribute [rw] server_name
@@ -265,11 +271,33 @@ module Aws::OpsWorksCM
265
271
  # A user-defined description of the backup.
266
272
  # @return [String]
267
273
  #
274
+ # @!attribute [rw] tags
275
+ # A map that contains tag keys and tag values to attach to an AWS
276
+ # OpsWorks-CM server backup.
277
+ #
278
+ # * The key cannot be empty.
279
+ #
280
+ # * The key can be a maximum of 127 characters, and can contain only
281
+ # Unicode letters, numbers, or separators, or the following special
282
+ # characters: `+ - = . _ : /`
283
+ #
284
+ # * The value can be a maximum 255 characters, and contain only
285
+ # Unicode letters, numbers, or separators, or the following special
286
+ # characters: `+ - = . _ : /`
287
+ #
288
+ # * Leading and trailing white spaces are trimmed from both the key
289
+ # and value.
290
+ #
291
+ # * A maximum of 50 user-applied tags is allowed for tag-supported AWS
292
+ # OpsWorks-CM resources.
293
+ # @return [Array<Types::Tag>]
294
+ #
268
295
  # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/CreateBackupRequest AWS API Documentation
269
296
  #
270
297
  class CreateBackupRequest < Struct.new(
271
298
  :server_name,
272
- :description)
299
+ :description,
300
+ :tags)
273
301
  include Aws::Structure
274
302
  end
275
303
 
@@ -312,6 +340,12 @@ module Aws::OpsWorksCM
312
340
  # security_group_ids: ["String"],
313
341
  # service_role_arn: "ServiceRoleArn", # required
314
342
  # subnet_ids: ["String"],
343
+ # tags: [
344
+ # {
345
+ # key: "TagKey", # required
346
+ # value: "TagValue", # required
347
+ # },
348
+ # ],
315
349
  # backup_id: "BackupId",
316
350
  # }
317
351
  #
@@ -321,23 +355,23 @@ module Aws::OpsWorksCM
321
355
  # @return [Boolean]
322
356
  #
323
357
  # @!attribute [rw] custom_domain
324
- # An optional public endpoint of a server, such as
325
- # `https://aws.my-company.com`. To access the server, create a CNAME
326
- # DNS record in your preferred DNS service that points the custom
327
- # domain to the endpoint that is generated when the server is created
328
- # (the value of the CreateServer Endpoint attribute). You cannot
329
- # access the server by using the generated `Endpoint` value if the
330
- # server is using a custom domain. If you specify a custom domain, you
331
- # must also specify values for `CustomCertificate` and
332
- # `CustomPrivateKey`.
358
+ # Supported on servers running Chef Automate 2. An optional public
359
+ # endpoint of a server, such as `https://aws.my-company.com`. To
360
+ # access the server, create a CNAME DNS record in your preferred DNS
361
+ # service that points the custom domain to the endpoint that is
362
+ # generated when the server is created (the value of the CreateServer
363
+ # Endpoint attribute). You cannot access the server by using the
364
+ # generated `Endpoint` value if the server is using a custom domain.
365
+ # If you specify a custom domain, you must also specify values for
366
+ # `CustomCertificate` and `CustomPrivateKey`.
333
367
  # @return [String]
334
368
  #
335
369
  # @!attribute [rw] custom_certificate
336
- # A PEM-formatted HTTPS certificate. The value can be be a single,
337
- # self-signed certificate, or a certificate chain. If you specify a
338
- # custom certificate, you must also specify values for `CustomDomain`
339
- # and `CustomPrivateKey`. The following are requirements for the
340
- # `CustomCertificate` value:
370
+ # Supported on servers running Chef Automate 2. A PEM-formatted HTTPS
371
+ # certificate. The value can be be a single, self-signed certificate,
372
+ # or a certificate chain. If you specify a custom certificate, you
373
+ # must also specify values for `CustomDomain` and `CustomPrivateKey`.
374
+ # The following are requirements for the `CustomCertificate` value:
341
375
  #
342
376
  # * You can provide either a self-signed, custom certificate, or the
343
377
  # full certificate chain.
@@ -357,11 +391,11 @@ module Aws::OpsWorksCM
357
391
  # @return [String]
358
392
  #
359
393
  # @!attribute [rw] custom_private_key
360
- # A private key in PEM format for connecting to the server by using
361
- # HTTPS. The private key must not be encrypted; it cannot be protected
362
- # by a password or passphrase. If you specify a custom private key,
363
- # you must also specify values for `CustomDomain` and
364
- # `CustomCertificate`.
394
+ # Supported on servers running Chef Automate 2. A private key in PEM
395
+ # format for connecting to the server by using HTTPS. The private key
396
+ # must not be encrypted; it cannot be protected by a password or
397
+ # passphrase. If you specify a custom private key, you must also
398
+ # specify values for `CustomDomain` and `CustomCertificate`.
365
399
  # @return [String]
366
400
  #
367
401
  # @!attribute [rw] disable_automated_backup
@@ -525,6 +559,28 @@ module Aws::OpsWorksCM
525
559
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html
526
560
  # @return [Array<String>]
527
561
  #
562
+ # @!attribute [rw] tags
563
+ # A map that contains tag keys and tag values to attach to an AWS
564
+ # OpsWorks for Chef Automate or AWS OpsWorks for Puppet Enterprise
565
+ # server.
566
+ #
567
+ # * The key cannot be empty.
568
+ #
569
+ # * The key can be a maximum of 127 characters, and can contain only
570
+ # Unicode letters, numbers, or separators, or the following special
571
+ # characters: `+ - = . _ : /`
572
+ #
573
+ # * The value can be a maximum 255 characters, and contain only
574
+ # Unicode letters, numbers, or separators, or the following special
575
+ # characters: `+ - = . _ : /`
576
+ #
577
+ # * Leading and trailing white spaces are trimmed from both the key
578
+ # and value.
579
+ #
580
+ # * A maximum of 50 user-applied tags is allowed for any AWS
581
+ # OpsWorks-CM server.
582
+ # @return [Array<Types::Tag>]
583
+ #
528
584
  # @!attribute [rw] backup_id
529
585
  # If you specify this field, AWS OpsWorks CM creates the server by
530
586
  # using the backup represented by BackupId.
@@ -552,6 +608,7 @@ module Aws::OpsWorksCM
552
608
  :security_group_ids,
553
609
  :service_role_arn,
554
610
  :subnet_ids,
611
+ :tags,
555
612
  :backup_id)
556
613
  include Aws::Structure
557
614
  end
@@ -1052,6 +1109,68 @@ module Aws::OpsWorksCM
1052
1109
  include Aws::Structure
1053
1110
  end
1054
1111
 
1112
+ # @note When making an API call, you may pass ListTagsForResourceRequest
1113
+ # data as a hash:
1114
+ #
1115
+ # {
1116
+ # resource_arn: "AWSOpsWorksCMResourceArn", # required
1117
+ # next_token: "NextToken",
1118
+ # max_results: 1,
1119
+ # }
1120
+ #
1121
+ # @!attribute [rw] resource_arn
1122
+ # The Amazon Resource Number (ARN) of an AWS OpsWorks for Chef
1123
+ # Automate or AWS OpsWorks for Puppet Enterprise server for which you
1124
+ # want to show applied tags. For example,
1125
+ # `arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE`.
1126
+ # @return [String]
1127
+ #
1128
+ # @!attribute [rw] next_token
1129
+ # NextToken is a string that is returned in some command responses. It
1130
+ # indicates that not all entries have been returned, and that you must
1131
+ # run at least one more request to get remaining items. To get
1132
+ # remaining results, call `ListTagsForResource` again, and assign the
1133
+ # token from the previous results as the value of the `nextToken`
1134
+ # parameter. If there are no more results, the response object's
1135
+ # `nextToken` parameter value is `null`. Setting a `nextToken` value
1136
+ # that was not returned in your previous results causes an
1137
+ # `InvalidNextTokenException` to occur.
1138
+ # @return [String]
1139
+ #
1140
+ # @!attribute [rw] max_results
1141
+ # To receive a paginated response, use this parameter to specify the
1142
+ # maximum number of results to be returned with a single call. If the
1143
+ # number of available results exceeds this maximum, the response
1144
+ # includes a `NextToken` value that you can assign to the `NextToken`
1145
+ # request parameter to get the next set of results.
1146
+ # @return [Integer]
1147
+ #
1148
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/ListTagsForResourceRequest AWS API Documentation
1149
+ #
1150
+ class ListTagsForResourceRequest < Struct.new(
1151
+ :resource_arn,
1152
+ :next_token,
1153
+ :max_results)
1154
+ include Aws::Structure
1155
+ end
1156
+
1157
+ # @!attribute [rw] tags
1158
+ # Tags that have been applied to the resource.
1159
+ # @return [Array<Types::Tag>]
1160
+ #
1161
+ # @!attribute [rw] next_token
1162
+ # A token that you can use as the value of `NextToken` in subsequent
1163
+ # calls to the API to show more results.
1164
+ # @return [String]
1165
+ #
1166
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/ListTagsForResourceResponse AWS API Documentation
1167
+ #
1168
+ class ListTagsForResourceResponse < Struct.new(
1169
+ :tags,
1170
+ :next_token)
1171
+ include Aws::Structure
1172
+ end
1173
+
1055
1174
  # The requested resource cannot be created because it already exists.
1056
1175
  #
1057
1176
  # @!attribute [rw] message
@@ -1370,6 +1489,124 @@ module Aws::OpsWorksCM
1370
1489
  include Aws::Structure
1371
1490
  end
1372
1491
 
1492
+ # A map that contains tag keys and tag values to attach to an AWS
1493
+ # OpsWorks for Chef Automate or AWS OpsWorks for Puppet Enterprise
1494
+ # server. Leading and trailing white spaces are trimmed from both the
1495
+ # key and value. A maximum of 50 user-applied tags is allowed for
1496
+ # tag-supported AWS OpsWorks-CM resources.
1497
+ #
1498
+ # @note When making an API call, you may pass Tag
1499
+ # data as a hash:
1500
+ #
1501
+ # {
1502
+ # key: "TagKey", # required
1503
+ # value: "TagValue", # required
1504
+ # }
1505
+ #
1506
+ # @!attribute [rw] key
1507
+ # A tag key, such as `Stage` or `Name`. A tag key cannot be empty. The
1508
+ # key can be a maximum of 127 characters, and can contain only Unicode
1509
+ # letters, numbers, or separators, or the following special
1510
+ # characters: `+ - = . _ : /`
1511
+ # @return [String]
1512
+ #
1513
+ # @!attribute [rw] value
1514
+ # An optional tag value, such as `Production` or `test-owcm-server`.
1515
+ # The value can be a maximum of 255 characters, and contain only
1516
+ # Unicode letters, numbers, or separators, or the following special
1517
+ # characters: `+ - = . _ : /`
1518
+ # @return [String]
1519
+ #
1520
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/Tag AWS API Documentation
1521
+ #
1522
+ class Tag < Struct.new(
1523
+ :key,
1524
+ :value)
1525
+ include Aws::Structure
1526
+ end
1527
+
1528
+ # @note When making an API call, you may pass TagResourceRequest
1529
+ # data as a hash:
1530
+ #
1531
+ # {
1532
+ # resource_arn: "AWSOpsWorksCMResourceArn", # required
1533
+ # tags: [ # required
1534
+ # {
1535
+ # key: "TagKey", # required
1536
+ # value: "TagValue", # required
1537
+ # },
1538
+ # ],
1539
+ # }
1540
+ #
1541
+ # @!attribute [rw] resource_arn
1542
+ # The Amazon Resource Number (ARN) of a resource to which you want to
1543
+ # apply tags. For example,
1544
+ # `arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE`.
1545
+ # @return [String]
1546
+ #
1547
+ # @!attribute [rw] tags
1548
+ # A map that contains tag keys and tag values to attach to AWS
1549
+ # OpsWorks-CM servers or backups.
1550
+ #
1551
+ # * The key cannot be empty.
1552
+ #
1553
+ # * The key can be a maximum of 127 characters, and can contain only
1554
+ # Unicode letters, numbers, or separators, or the following special
1555
+ # characters: `+ - = . _ : /`
1556
+ #
1557
+ # * The value can be a maximum 255 characters, and contain only
1558
+ # Unicode letters, numbers, or separators, or the following special
1559
+ # characters: `+ - = . _ : /`
1560
+ #
1561
+ # * Leading and trailing white spaces are trimmed from both the key
1562
+ # and value.
1563
+ #
1564
+ # * A maximum of 50 user-applied tags is allowed for any AWS
1565
+ # OpsWorks-CM server or backup.
1566
+ # @return [Array<Types::Tag>]
1567
+ #
1568
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/TagResourceRequest AWS API Documentation
1569
+ #
1570
+ class TagResourceRequest < Struct.new(
1571
+ :resource_arn,
1572
+ :tags)
1573
+ include Aws::Structure
1574
+ end
1575
+
1576
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/TagResourceResponse AWS API Documentation
1577
+ #
1578
+ class TagResourceResponse < Aws::EmptyStructure; end
1579
+
1580
+ # @note When making an API call, you may pass UntagResourceRequest
1581
+ # data as a hash:
1582
+ #
1583
+ # {
1584
+ # resource_arn: "AWSOpsWorksCMResourceArn", # required
1585
+ # tag_keys: ["TagKey"], # required
1586
+ # }
1587
+ #
1588
+ # @!attribute [rw] resource_arn
1589
+ # The Amazon Resource Number (ARN) of a resource from which you want
1590
+ # to remove tags. For example,
1591
+ # `arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE`.
1592
+ # @return [String]
1593
+ #
1594
+ # @!attribute [rw] tag_keys
1595
+ # The keys of tags that you want to remove.
1596
+ # @return [Array<String>]
1597
+ #
1598
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/UntagResourceRequest AWS API Documentation
1599
+ #
1600
+ class UntagResourceRequest < Struct.new(
1601
+ :resource_arn,
1602
+ :tag_keys)
1603
+ include Aws::Structure
1604
+ end
1605
+
1606
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/UntagResourceResponse AWS API Documentation
1607
+ #
1608
+ class UntagResourceResponse < Aws::EmptyStructure; end
1609
+
1373
1610
  # @note When making an API call, you may pass UpdateServerEngineAttributesRequest
1374
1611
  # data as a hash:
1375
1612
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-opsworkscm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.0
4
+ version: 1.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-23 00:00:00.000000000 Z
11
+ date: 2019-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core