aws-sdk-amplify 1.65.0 → 1.66.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
  SHA256:
3
- metadata.gz: 32d20e12745d12a1cb13f67fa18d52481b56d293c8f168bd697d83abd9e167d9
4
- data.tar.gz: 4775cc2619fca1a20653e99170eba2cdd5e730d5dc5daab9612d472637812683
3
+ metadata.gz: bad9cd2b472bfce552692b23b3bcd6bf9f88b49290c4b75b0f0e5a65cc7b1c7a
4
+ data.tar.gz: 816481eacec7293ca9bf26aeda6a80c1bb0a2c84db809ffe1a32825ae4ac46e9
5
5
  SHA512:
6
- metadata.gz: 2fe04c0782dcaeb6e32f3261ffbe427b33f4dd8856173c65b4b13bd2bf83c5df40b006836f0d71f7d17186a0697cf4dc83ce567c197f77480641562631245368
7
- data.tar.gz: c5b79219b9ed224c10f54339870682b67e3438c50777a017ae17cdc4c8f8e75eb5ad6dea033b6fe518263f781e5b0ea56ee7e6972099aa3401d5dcab4f1a1d15
6
+ metadata.gz: bdfc6bb895100eb1b650db4b3310c5fb8660b8ceeac3d7bebfc732da17964a502280bc8279357b761f7087a41b8877be7ce6c22974cc2a99dea3b6d673da56a6
7
+ data.tar.gz: 409577753b13df2964e20d1edbb8ec2ce970b6d65375d17d0db64e0d61419ac298bb6e23a0adace973b1bb998d16ed58f9397ee56b3e6c49e57ed359fd0a55b4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.66.0 (2024-08-13)
5
+ ------------------
6
+
7
+ * Feature - Add a new field "cacheConfig" that enables users to configure the CDN cache settings for an App
8
+
4
9
  1.65.0 (2024-07-02)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.65.0
1
+ 1.66.0
@@ -539,6 +539,9 @@ module Aws::Amplify
539
539
  # @option params [Types::AutoBranchCreationConfig] :auto_branch_creation_config
540
540
  # The automated branch creation configuration for an Amplify app.
541
541
  #
542
+ # @option params [Types::CacheConfig] :cache_config
543
+ # The cache configuration for the Amplify app.
544
+ #
542
545
  # @return [Types::CreateAppResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
543
546
  #
544
547
  # * {Types::CreateAppResult#app #app} => Types::App
@@ -589,6 +592,9 @@ module Aws::Amplify
589
592
  # enable_pull_request_preview: false,
590
593
  # pull_request_environment_name: "PullRequestEnvironmentName",
591
594
  # },
595
+ # cache_config: {
596
+ # type: "AMPLIFY_MANAGED", # required, accepts AMPLIFY_MANAGED, AMPLIFY_MANAGED_NO_COOKIES
597
+ # },
592
598
  # })
593
599
  #
594
600
  # @example Response structure
@@ -637,6 +643,7 @@ module Aws::Amplify
637
643
  # resp.app.auto_branch_creation_config.enable_pull_request_preview #=> Boolean
638
644
  # resp.app.auto_branch_creation_config.pull_request_environment_name #=> String
639
645
  # resp.app.repository_clone_method #=> String, one of "SSH", "TOKEN", "SIGV4"
646
+ # resp.app.cache_config.type #=> String, one of "AMPLIFY_MANAGED", "AMPLIFY_MANAGED_NO_COOKIES"
640
647
  #
641
648
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateApp AWS API Documentation
642
649
  #
@@ -1089,6 +1096,7 @@ module Aws::Amplify
1089
1096
  # resp.app.auto_branch_creation_config.enable_pull_request_preview #=> Boolean
1090
1097
  # resp.app.auto_branch_creation_config.pull_request_environment_name #=> String
1091
1098
  # resp.app.repository_clone_method #=> String, one of "SSH", "TOKEN", "SIGV4"
1099
+ # resp.app.cache_config.type #=> String, one of "AMPLIFY_MANAGED", "AMPLIFY_MANAGED_NO_COOKIES"
1092
1100
  #
1093
1101
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteApp AWS API Documentation
1094
1102
  #
@@ -1436,6 +1444,7 @@ module Aws::Amplify
1436
1444
  # resp.app.auto_branch_creation_config.enable_pull_request_preview #=> Boolean
1437
1445
  # resp.app.auto_branch_creation_config.pull_request_environment_name #=> String
1438
1446
  # resp.app.repository_clone_method #=> String, one of "SSH", "TOKEN", "SIGV4"
1447
+ # resp.app.cache_config.type #=> String, one of "AMPLIFY_MANAGED", "AMPLIFY_MANAGED_NO_COOKIES"
1439
1448
  #
1440
1449
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetApp AWS API Documentation
1441
1450
  #
@@ -1793,6 +1802,7 @@ module Aws::Amplify
1793
1802
  # resp.apps[0].auto_branch_creation_config.enable_pull_request_preview #=> Boolean
1794
1803
  # resp.apps[0].auto_branch_creation_config.pull_request_environment_name #=> String
1795
1804
  # resp.apps[0].repository_clone_method #=> String, one of "SSH", "TOKEN", "SIGV4"
1805
+ # resp.apps[0].cache_config.type #=> String, one of "AMPLIFY_MANAGED", "AMPLIFY_MANAGED_NO_COOKIES"
1796
1806
  # resp.next_token #=> String
1797
1807
  #
1798
1808
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListApps AWS API Documentation
@@ -2508,6 +2518,9 @@ module Aws::Amplify
2508
2518
  #
2509
2519
  # [1]: https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth
2510
2520
  #
2521
+ # @option params [Types::CacheConfig] :cache_config
2522
+ # The cache configuration for the Amplify app.
2523
+ #
2511
2524
  # @return [Types::UpdateAppResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2512
2525
  #
2513
2526
  # * {Types::UpdateAppResult#app #app} => Types::App
@@ -2556,6 +2569,9 @@ module Aws::Amplify
2556
2569
  # repository: "Repository",
2557
2570
  # oauth_token: "OauthToken",
2558
2571
  # access_token: "AccessToken",
2572
+ # cache_config: {
2573
+ # type: "AMPLIFY_MANAGED", # required, accepts AMPLIFY_MANAGED, AMPLIFY_MANAGED_NO_COOKIES
2574
+ # },
2559
2575
  # })
2560
2576
  #
2561
2577
  # @example Response structure
@@ -2604,6 +2620,7 @@ module Aws::Amplify
2604
2620
  # resp.app.auto_branch_creation_config.enable_pull_request_preview #=> Boolean
2605
2621
  # resp.app.auto_branch_creation_config.pull_request_environment_name #=> String
2606
2622
  # resp.app.repository_clone_method #=> String, one of "SSH", "TOKEN", "SIGV4"
2623
+ # resp.app.cache_config.type #=> String, one of "AMPLIFY_MANAGED", "AMPLIFY_MANAGED_NO_COOKIES"
2607
2624
  #
2608
2625
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateApp AWS API Documentation
2609
2626
  #
@@ -2896,7 +2913,7 @@ module Aws::Amplify
2896
2913
  params: params,
2897
2914
  config: config)
2898
2915
  context[:gem_name] = 'aws-sdk-amplify'
2899
- context[:gem_version] = '1.65.0'
2916
+ context[:gem_version] = '1.66.0'
2900
2917
  Seahorse::Client::Request.new(handlers, context)
2901
2918
  end
2902
2919
 
@@ -44,6 +44,8 @@ module Aws::Amplify
44
44
  BranchName = Shapes::StringShape.new(name: 'BranchName')
45
45
  Branches = Shapes::ListShape.new(name: 'Branches')
46
46
  BuildSpec = Shapes::StringShape.new(name: 'BuildSpec')
47
+ CacheConfig = Shapes::StructureShape.new(name: 'CacheConfig')
48
+ CacheConfigType = Shapes::StringShape.new(name: 'CacheConfigType')
47
49
  Certificate = Shapes::StructureShape.new(name: 'Certificate')
48
50
  CertificateArn = Shapes::StringShape.new(name: 'CertificateArn')
49
51
  CertificateSettings = Shapes::StructureShape.new(name: 'CertificateSettings')
@@ -255,6 +257,7 @@ module Aws::Amplify
255
257
  App.add_member(:auto_branch_creation_patterns, Shapes::ShapeRef.new(shape: AutoBranchCreationPatterns, location_name: "autoBranchCreationPatterns"))
256
258
  App.add_member(:auto_branch_creation_config, Shapes::ShapeRef.new(shape: AutoBranchCreationConfig, location_name: "autoBranchCreationConfig"))
257
259
  App.add_member(:repository_clone_method, Shapes::ShapeRef.new(shape: RepositoryCloneMethod, location_name: "repositoryCloneMethod"))
260
+ App.add_member(:cache_config, Shapes::ShapeRef.new(shape: CacheConfig, location_name: "cacheConfig"))
258
261
  App.struct_class = Types::App
259
262
 
260
263
  Apps.member = Shapes::ShapeRef.new(shape: App)
@@ -331,6 +334,9 @@ module Aws::Amplify
331
334
 
332
335
  Branches.member = Shapes::ShapeRef.new(shape: Branch)
333
336
 
337
+ CacheConfig.add_member(:type, Shapes::ShapeRef.new(shape: CacheConfigType, required: true, location_name: "type"))
338
+ CacheConfig.struct_class = Types::CacheConfig
339
+
334
340
  Certificate.add_member(:type, Shapes::ShapeRef.new(shape: CertificateType, required: true, location_name: "type"))
335
341
  Certificate.add_member(:custom_certificate_arn, Shapes::ShapeRef.new(shape: CertificateArn, location_name: "customCertificateArn"))
336
342
  Certificate.add_member(:certificate_verification_dns_record, Shapes::ShapeRef.new(shape: CertificateVerificationDNSRecord, location_name: "certificateVerificationDNSRecord"))
@@ -359,6 +365,7 @@ module Aws::Amplify
359
365
  CreateAppRequest.add_member(:enable_auto_branch_creation, Shapes::ShapeRef.new(shape: EnableAutoBranchCreation, location_name: "enableAutoBranchCreation"))
360
366
  CreateAppRequest.add_member(:auto_branch_creation_patterns, Shapes::ShapeRef.new(shape: AutoBranchCreationPatterns, location_name: "autoBranchCreationPatterns"))
361
367
  CreateAppRequest.add_member(:auto_branch_creation_config, Shapes::ShapeRef.new(shape: AutoBranchCreationConfig, location_name: "autoBranchCreationConfig"))
368
+ CreateAppRequest.add_member(:cache_config, Shapes::ShapeRef.new(shape: CacheConfig, location_name: "cacheConfig"))
362
369
  CreateAppRequest.struct_class = Types::CreateAppRequest
363
370
 
364
371
  CreateAppResult.add_member(:app, Shapes::ShapeRef.new(shape: App, required: true, location_name: "app"))
@@ -770,6 +777,7 @@ module Aws::Amplify
770
777
  UpdateAppRequest.add_member(:repository, Shapes::ShapeRef.new(shape: Repository, location_name: "repository"))
771
778
  UpdateAppRequest.add_member(:oauth_token, Shapes::ShapeRef.new(shape: OauthToken, location_name: "oauthToken"))
772
779
  UpdateAppRequest.add_member(:access_token, Shapes::ShapeRef.new(shape: AccessToken, location_name: "accessToken"))
780
+ UpdateAppRequest.add_member(:cache_config, Shapes::ShapeRef.new(shape: CacheConfig, location_name: "cacheConfig"))
773
781
  UpdateAppRequest.struct_class = Types::UpdateAppRequest
774
782
 
775
783
  UpdateAppResult.add_member(:app, Shapes::ShapeRef.new(shape: App, required: true, location_name: "app"))
@@ -137,6 +137,12 @@ module Aws::Amplify
137
137
  # for GitLab and Bitbucket repositories.
138
138
  # @return [String]
139
139
  #
140
+ # @!attribute [rw] cache_config
141
+ # The cache configuration for the Amplify app. If you don't specify
142
+ # the cache configuration `type`, Amplify uses the default
143
+ # `AMPLIFY_MANAGED` setting.
144
+ # @return [Types::CacheConfig]
145
+ #
140
146
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/App AWS API Documentation
141
147
  #
142
148
  class App < Struct.new(
@@ -163,7 +169,8 @@ module Aws::Amplify
163
169
  :enable_auto_branch_creation,
164
170
  :auto_branch_creation_patterns,
165
171
  :auto_branch_creation_config,
166
- :repository_clone_method)
172
+ :repository_clone_method,
173
+ :cache_config)
167
174
  SENSITIVE = [:basic_auth_credentials, :build_spec]
168
175
  include Aws::Structure
169
176
  end
@@ -499,6 +506,37 @@ module Aws::Amplify
499
506
  include Aws::Structure
500
507
  end
501
508
 
509
+ # Describes the cache configuration for an Amplify app.
510
+ #
511
+ # For more information about how Amplify applies an optimal cache
512
+ # configuration for your app based on the type of content that is being
513
+ # served, see [Managing cache configuration][1] in the *Amplify User
514
+ # guide*.
515
+ #
516
+ #
517
+ #
518
+ # [1]: https://docs.aws.amazon.com/amplify/latest/userguide/managing-cache-configuration
519
+ #
520
+ # @!attribute [rw] type
521
+ # The type of cache configuration to use for an Amplify app.
522
+ #
523
+ # The `AMPLIFY_MANAGED` cache configuration automatically applies an
524
+ # optimized cache configuration for your app based on its platform,
525
+ # routing rules, and rewrite rules. This is the default setting.
526
+ #
527
+ # The `AMPLIFY_MANAGED_NO_COOKIES` cache configuration type is the
528
+ # same as `AMPLIFY_MANAGED`, except that it excludes all cookies from
529
+ # the cache key.
530
+ # @return [String]
531
+ #
532
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CacheConfig AWS API Documentation
533
+ #
534
+ class CacheConfig < Struct.new(
535
+ :type)
536
+ SENSITIVE = []
537
+ include Aws::Structure
538
+ end
539
+
502
540
  # Describes the current SSL/TLS certificate that is in use for the
503
541
  # domain. If you are using `CreateDomainAssociation` to create a new
504
542
  # domain association, `Certificate` describes the new certificate that
@@ -515,7 +553,7 @@ module Aws::Amplify
515
553
  # Make sure you request (or import) the certificate in the US East (N.
516
554
  # Virginia) Region (us-east-1). For more information about using ACM,
517
555
  # see [Importing certificates into Certificate Manager][1] in the *ACM
518
- # User guide* .
556
+ # User guide*.
519
557
  #
520
558
  #
521
559
  #
@@ -718,6 +756,10 @@ module Aws::Amplify
718
756
  # The automated branch creation configuration for an Amplify app.
719
757
  # @return [Types::AutoBranchCreationConfig]
720
758
  #
759
+ # @!attribute [rw] cache_config
760
+ # The cache configuration for the Amplify app.
761
+ # @return [Types::CacheConfig]
762
+ #
721
763
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateAppRequest AWS API Documentation
722
764
  #
723
765
  class CreateAppRequest < Struct.new(
@@ -739,7 +781,8 @@ module Aws::Amplify
739
781
  :custom_headers,
740
782
  :enable_auto_branch_creation,
741
783
  :auto_branch_creation_patterns,
742
- :auto_branch_creation_config)
784
+ :auto_branch_creation_config,
785
+ :cache_config)
743
786
  SENSITIVE = [:oauth_token, :access_token, :basic_auth_credentials, :build_spec]
744
787
  include Aws::Structure
745
788
  end
@@ -2725,6 +2768,10 @@ module Aws::Amplify
2725
2768
  # [1]: https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth
2726
2769
  # @return [String]
2727
2770
  #
2771
+ # @!attribute [rw] cache_config
2772
+ # The cache configuration for the Amplify app.
2773
+ # @return [Types::CacheConfig]
2774
+ #
2728
2775
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateAppRequest AWS API Documentation
2729
2776
  #
2730
2777
  class UpdateAppRequest < Struct.new(
@@ -2746,7 +2793,8 @@ module Aws::Amplify
2746
2793
  :auto_branch_creation_config,
2747
2794
  :repository,
2748
2795
  :oauth_token,
2749
- :access_token)
2796
+ :access_token,
2797
+ :cache_config)
2750
2798
  SENSITIVE = [:basic_auth_credentials, :build_spec, :oauth_token, :access_token]
2751
2799
  include Aws::Structure
2752
2800
  end
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-amplify/customizations'
52
52
  # @!group service
53
53
  module Aws::Amplify
54
54
 
55
- GEM_VERSION = '1.65.0'
55
+ GEM_VERSION = '1.66.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -115,6 +115,9 @@ module Aws
115
115
  build_spec: ::String?,
116
116
  enable_pull_request_preview: bool?,
117
117
  pull_request_environment_name: ::String?
118
+ },
119
+ ?cache_config: {
120
+ type: ("AMPLIFY_MANAGED" | "AMPLIFY_MANAGED_NO_COOKIES")
118
121
  }
119
122
  ) -> _CreateAppResponseSuccess
120
123
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAppResponseSuccess
@@ -574,7 +577,10 @@ module Aws
574
577
  },
575
578
  ?repository: ::String,
576
579
  ?oauth_token: ::String,
577
- ?access_token: ::String
580
+ ?access_token: ::String,
581
+ ?cache_config: {
582
+ type: ("AMPLIFY_MANAGED" | "AMPLIFY_MANAGED_NO_COOKIES")
583
+ }
578
584
  ) -> _UpdateAppResponseSuccess
579
585
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateAppResponseSuccess
580
586
 
data/sig/types.rbs CHANGED
@@ -33,6 +33,7 @@ module Aws::Amplify
33
33
  attr_accessor auto_branch_creation_patterns: ::Array[::String]
34
34
  attr_accessor auto_branch_creation_config: Types::AutoBranchCreationConfig
35
35
  attr_accessor repository_clone_method: ("SSH" | "TOKEN" | "SIGV4")
36
+ attr_accessor cache_config: Types::CacheConfig
36
37
  SENSITIVE: [:basic_auth_credentials, :build_spec]
37
38
  end
38
39
 
@@ -108,6 +109,11 @@ module Aws::Amplify
108
109
  SENSITIVE: [:basic_auth_credentials, :build_spec]
109
110
  end
110
111
 
112
+ class CacheConfig
113
+ attr_accessor type: ("AMPLIFY_MANAGED" | "AMPLIFY_MANAGED_NO_COOKIES")
114
+ SENSITIVE: []
115
+ end
116
+
111
117
  class Certificate
112
118
  attr_accessor type: ("AMPLIFY_MANAGED" | "CUSTOM")
113
119
  attr_accessor custom_certificate_arn: ::String
@@ -141,6 +147,7 @@ module Aws::Amplify
141
147
  attr_accessor enable_auto_branch_creation: bool
142
148
  attr_accessor auto_branch_creation_patterns: ::Array[::String]
143
149
  attr_accessor auto_branch_creation_config: Types::AutoBranchCreationConfig
150
+ attr_accessor cache_config: Types::CacheConfig
144
151
  SENSITIVE: [:oauth_token, :access_token, :basic_auth_credentials, :build_spec]
145
152
  end
146
153
 
@@ -679,6 +686,7 @@ module Aws::Amplify
679
686
  attr_accessor repository: ::String
680
687
  attr_accessor oauth_token: ::String
681
688
  attr_accessor access_token: ::String
689
+ attr_accessor cache_config: Types::CacheConfig
682
690
  SENSITIVE: [:basic_auth_credentials, :build_spec, :oauth_token, :access_token]
683
691
  end
684
692
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-amplify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.65.0
4
+ version: 1.66.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: 2024-07-02 00:00:00.000000000 Z
11
+ date: 2024-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core