aws-sdk-wellarchitected 1.85.0 → 1.86.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.
@@ -551,6 +551,51 @@ module Aws::WellArchitected
551
551
  req.send_request(options)
552
552
  end
553
553
 
554
+ # Creates a Basic profile for the calling account. No configuration
555
+ # input is required because the account and region are inferred from the
556
+ # caller. The profile uses the reserved name `basic`. This operation is
557
+ # idempotent. Calling it twice returns the same ARN. Each account can
558
+ # have at most one Basic profile.
559
+ #
560
+ # @option params [Array<Types::Tag>] :tags
561
+ # Tags to apply to the Basic profile at creation time.
562
+ #
563
+ # @return [Types::CreateAgentBasicProfileResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
564
+ #
565
+ # * {Types::CreateAgentBasicProfileResponse#created_by #created_by} => String
566
+ # * {Types::CreateAgentBasicProfileResponse#created_at #created_at} => Time
567
+ # * {Types::CreateAgentBasicProfileResponse#last_modified_by #last_modified_by} => String
568
+ # * {Types::CreateAgentBasicProfileResponse#last_modified_at #last_modified_at} => Time
569
+ # * {Types::CreateAgentBasicProfileResponse#arn #arn} => String
570
+ #
571
+ # @example Request syntax with placeholder values
572
+ #
573
+ # resp = client.create_agent_basic_profile({
574
+ # tags: [
575
+ # {
576
+ # key: "TagKeyString", # required
577
+ # value: "TagValueString", # required
578
+ # },
579
+ # ],
580
+ # })
581
+ #
582
+ # @example Response structure
583
+ #
584
+ # resp.created_by #=> String
585
+ # resp.created_at #=> Time
586
+ # resp.last_modified_by #=> String
587
+ # resp.last_modified_at #=> Time
588
+ # resp.arn #=> String
589
+ #
590
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/CreateAgentBasicProfile AWS API Documentation
591
+ #
592
+ # @overload create_agent_basic_profile(params = {})
593
+ # @param [Hash] params ({})
594
+ def create_agent_basic_profile(params = {}, options = {})
595
+ req = build_request(:create_agent_basic_profile, params)
596
+ req.send_request(options)
597
+ end
598
+
554
599
  # Creates a context associated with an optimization profile. Contexts
555
600
  # provide application and environment information used during
556
601
  # recommendation generation.
@@ -599,6 +644,7 @@ module Aws::WellArchitected
599
644
  # value: "ContextResourceTagValueString", # required
600
645
  # },
601
646
  # ],
647
+ # organizational_unit_ids: ["ContextContentOrganizationalUnitIdsListMemberString"],
602
648
  # application_overview: "ContextContentApplicationOverviewString",
603
649
  # industry: "ContextContentIndustryString",
604
650
  # application_type: "SAS", # accepts SAS, DESKTOP_APPLICATION, OTHER
@@ -625,6 +671,8 @@ module Aws::WellArchitected
625
671
  # resp.context.content.resource_tags #=> Array
626
672
  # resp.context.content.resource_tags[0].key #=> String
627
673
  # resp.context.content.resource_tags[0].value #=> String
674
+ # resp.context.content.organizational_unit_ids #=> Array
675
+ # resp.context.content.organizational_unit_ids[0] #=> String
628
676
  # resp.context.content.application_overview #=> String
629
677
  # resp.context.content.industry #=> String
630
678
  # resp.context.content.application_type #=> String, one of "SAS", "DESKTOP_APPLICATION", "OTHER"
@@ -662,8 +710,8 @@ module Aws::WellArchitected
662
710
  # with.
663
711
  #
664
712
  # @option params [required, Array<String>] :pillars
665
- # The Well-Architected Tool Framework pillars to associate with this
666
- # goal.
713
+ # The Amazon Web Services Well-Architected Framework pillars to
714
+ # associate with this goal.
667
715
  #
668
716
  # @option params [required, String] :title
669
717
  # The title of the goal.
@@ -707,6 +755,207 @@ module Aws::WellArchitected
707
755
  req.send_request(options)
708
756
  end
709
757
 
758
+ # Creates an Organizational Profile for use with AWS Organizations
759
+ # integration. Organizational Profiles are scoped to an AWS Organization
760
+ # and do not require an execution role or aggregation configuration. The
761
+ # organization is inferred from the caller's identity.
762
+ #
763
+ # @option params [required, String] :name
764
+ # The system name of the organizational profile.
765
+ #
766
+ # @option params [String] :display_name
767
+ # The display name of the organizational profile shown to users.
768
+ #
769
+ # @option params [String] :description
770
+ # A description of the organizational profile.
771
+ #
772
+ # @option params [String] :business_overview
773
+ # The business overview for this organizational profile.
774
+ #
775
+ # @option params [required, Array<String>] :pillars
776
+ # The Amazon Web Services Well-Architected Framework pillars to
777
+ # associate with this organizational profile.
778
+ #
779
+ # @option params [Boolean] :deletion_protection
780
+ # Indicates whether deletion protection is enabled for the
781
+ # organizational profile.
782
+ #
783
+ # @option params [String] :client_token
784
+ # A unique, case-sensitive identifier that you provide to ensure the
785
+ # idempotency of the request.
786
+ #
787
+ # **A suitable default value is auto-generated.** You should normally
788
+ # not need to pass this option.**
789
+ #
790
+ # @option params [Types::OrganizationalAggregationConfiguration] :organizational_aggregation_configuration
791
+ # The organizational monitoring boundary. Contains organizational unit
792
+ # or root entries and individual account entries that define the scope
793
+ # for the profile.
794
+ #
795
+ # @option params [Array<Types::Tag>] :tags
796
+ # The tags to associate with the organizational profile.
797
+ #
798
+ # @return [Types::CreateAgentOrganizationalProfileResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
799
+ #
800
+ # * {Types::CreateAgentOrganizationalProfileResponse#name #name} => String
801
+ # * {Types::CreateAgentOrganizationalProfileResponse#display_name #display_name} => String
802
+ # * {Types::CreateAgentOrganizationalProfileResponse#description #description} => String
803
+ # * {Types::CreateAgentOrganizationalProfileResponse#business_overview #business_overview} => String
804
+ # * {Types::CreateAgentOrganizationalProfileResponse#pillars #pillars} => Array&lt;String&gt;
805
+ # * {Types::CreateAgentOrganizationalProfileResponse#deletion_protection #deletion_protection} => Boolean
806
+ # * {Types::CreateAgentOrganizationalProfileResponse#organization_id #organization_id} => String
807
+ # * {Types::CreateAgentOrganizationalProfileResponse#organizational_aggregation_configuration #organizational_aggregation_configuration} => Types::OrganizationalAggregationConfiguration
808
+ # * {Types::CreateAgentOrganizationalProfileResponse#arn #arn} => String
809
+ # * {Types::CreateAgentOrganizationalProfileResponse#eligible_for_scheduled_generation #eligible_for_scheduled_generation} => Boolean
810
+ # * {Types::CreateAgentOrganizationalProfileResponse#eligible_for_architecture_generation #eligible_for_architecture_generation} => Boolean
811
+ # * {Types::CreateAgentOrganizationalProfileResponse#field_errors #field_errors} => Hash&lt;String,String&gt;
812
+ # * {Types::CreateAgentOrganizationalProfileResponse#tags #tags} => Array&lt;Types::Tag&gt;
813
+ # * {Types::CreateAgentOrganizationalProfileResponse#created_by #created_by} => String
814
+ # * {Types::CreateAgentOrganizationalProfileResponse#created_at #created_at} => Time
815
+ # * {Types::CreateAgentOrganizationalProfileResponse#last_modified_by #last_modified_by} => String
816
+ # * {Types::CreateAgentOrganizationalProfileResponse#last_modified_at #last_modified_at} => Time
817
+ #
818
+ # @example Request syntax with placeholder values
819
+ #
820
+ # resp = client.create_agent_organizational_profile({
821
+ # name: "CreateAgentOrganizationalProfileRequestNameString", # required
822
+ # display_name: "CreateAgentOrganizationalProfileRequestDisplayNameString",
823
+ # description: "CreateAgentOrganizationalProfileRequestDescriptionString",
824
+ # business_overview: "CreateAgentOrganizationalProfileRequestBusinessOverviewString",
825
+ # pillars: ["COST_OPTIMIZATION"], # required, accepts COST_OPTIMIZATION, SECURITY, RESILIENCE, PERFORMANCE, OPERATIONAL_EXCELLENCE
826
+ # deletion_protection: false,
827
+ # client_token: "CreateAgentOrganizationalProfileRequestClientTokenString",
828
+ # organizational_aggregation_configuration: {
829
+ # organizational_units: [
830
+ # {
831
+ # organizational_unit_id: "OrganizationalNodeId", # required
832
+ # regions: ["Region"], # required
833
+ # },
834
+ # ],
835
+ # accounts: [
836
+ # {
837
+ # account_id: "AccountId", # required
838
+ # regions: ["Region"], # required
839
+ # },
840
+ # ],
841
+ # },
842
+ # tags: [
843
+ # {
844
+ # key: "TagKeyString", # required
845
+ # value: "TagValueString", # required
846
+ # },
847
+ # ],
848
+ # })
849
+ #
850
+ # @example Response structure
851
+ #
852
+ # resp.name #=> String
853
+ # resp.display_name #=> String
854
+ # resp.description #=> String
855
+ # resp.business_overview #=> String
856
+ # resp.pillars #=> Array
857
+ # resp.pillars[0] #=> String, one of "COST_OPTIMIZATION", "SECURITY", "RESILIENCE", "PERFORMANCE", "OPERATIONAL_EXCELLENCE"
858
+ # resp.deletion_protection #=> Boolean
859
+ # resp.organization_id #=> String
860
+ # resp.organizational_aggregation_configuration.organizational_units #=> Array
861
+ # resp.organizational_aggregation_configuration.organizational_units[0].organizational_unit_id #=> String
862
+ # resp.organizational_aggregation_configuration.organizational_units[0].regions #=> Array
863
+ # resp.organizational_aggregation_configuration.organizational_units[0].regions[0] #=> String
864
+ # resp.organizational_aggregation_configuration.accounts #=> Array
865
+ # resp.organizational_aggregation_configuration.accounts[0].account_id #=> String
866
+ # resp.organizational_aggregation_configuration.accounts[0].regions #=> Array
867
+ # resp.organizational_aggregation_configuration.accounts[0].regions[0] #=> String
868
+ # resp.arn #=> String
869
+ # resp.eligible_for_scheduled_generation #=> Boolean
870
+ # resp.eligible_for_architecture_generation #=> Boolean
871
+ # resp.field_errors #=> Hash
872
+ # resp.field_errors["FieldErrorPath"] #=> String
873
+ # resp.tags #=> Array
874
+ # resp.tags[0].key #=> String
875
+ # resp.tags[0].value #=> String
876
+ # resp.created_by #=> String
877
+ # resp.created_at #=> Time
878
+ # resp.last_modified_by #=> String
879
+ # resp.last_modified_at #=> Time
880
+ #
881
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/CreateAgentOrganizationalProfile AWS API Documentation
882
+ #
883
+ # @overload create_agent_organizational_profile(params = {})
884
+ # @param [Hash] params ({})
885
+ def create_agent_organizational_profile(params = {}, options = {})
886
+ req = build_request(:create_agent_organizational_profile, params)
887
+ req.send_request(options)
888
+ end
889
+
890
+ # Creates an Organizational Report, which is an
891
+ # asynchronously-materialized, point-in-time snapshot of recommendations
892
+ # across all Agent Profiles within the caller's AWS Organization. You
893
+ # can optionally narrow the scope with filters. The operation is
894
+ # idempotent on the caller-supplied clientToken. The AWS Organization
895
+ # the report belongs to is inferred from the caller's authorization
896
+ # context. Reports are retained for 90 days from creation, after which
897
+ # they are automatically deleted. Use DeleteAgentOrganizationalReport to
898
+ # delete a report earlier.
899
+ #
900
+ # @option params [String] :client_token
901
+ # A caller-supplied idempotency token. Two create calls sharing the same
902
+ # token within the service's idempotency window return the same
903
+ # reportId.
904
+ #
905
+ # **A suitable default value is auto-generated.** You should normally
906
+ # not need to pass this option.**
907
+ #
908
+ # @option params [String] :label
909
+ # Optional human-readable label (1-500 characters) that helps callers
910
+ # distinguish reports created with the same filters. Carried through
911
+ # list and get responses.
912
+ #
913
+ # @option params [Types::OrganizationalReportFilters] :filters
914
+ # Optional filters narrowing the report's scope. Absent means the
915
+ # report covers the whole organization.
916
+ #
917
+ # @return [Types::CreateAgentOrganizationalReportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
918
+ #
919
+ # * {Types::CreateAgentOrganizationalReportResponse#report_id #report_id} => String
920
+ # * {Types::CreateAgentOrganizationalReportResponse#state #state} => String
921
+ #
922
+ # @example Request syntax with placeholder values
923
+ #
924
+ # resp = client.create_agent_organizational_report({
925
+ # client_token: "CreateAgentOrganizationalReportRequestClientTokenString",
926
+ # label: "ReportLabel",
927
+ # filters: {
928
+ # account_ids: ["AccountId"],
929
+ # organizational_unit_ids: ["OrganizationalUnitId"],
930
+ # pillars: ["COST_OPTIMIZATION"], # accepts COST_OPTIMIZATION, SECURITY, RESILIENCE, PERFORMANCE, OPERATIONAL_EXCELLENCE
931
+ # recommendation_types: ["RESOURCE"], # accepts RESOURCE, ARCHITECTURE, APPLICATION
932
+ # statuses: ["ACTIVE"], # accepts ACTIVE, SUPPRESSED, COMPLETED
933
+ # priorities: ["HIGH"], # accepts HIGH, MEDIUM, LOW
934
+ # created_at_range: {
935
+ # from: Time.now,
936
+ # to: Time.now,
937
+ # },
938
+ # updated_at_range: {
939
+ # from: Time.now,
940
+ # to: Time.now,
941
+ # },
942
+ # },
943
+ # })
944
+ #
945
+ # @example Response structure
946
+ #
947
+ # resp.report_id #=> String
948
+ # resp.state #=> String, one of "DISCOVERING", "SNAPSHOTTING", "AGGREGATING", "COMPRESSING", "COMPLETED", "FAILED", "DELETING"
949
+ #
950
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/CreateAgentOrganizationalReport AWS API Documentation
951
+ #
952
+ # @overload create_agent_organizational_report(params = {})
953
+ # @param [Hash] params ({})
954
+ def create_agent_organizational_report(params = {}, options = {})
955
+ req = build_request(:create_agent_organizational_report, params)
956
+ req.send_request(options)
957
+ end
958
+
710
959
  # Creates an optimization profile that defines the scope and
711
960
  # configuration for generating recommendations. A profile specifies the
712
961
  # execution role, target pillars, and aggregation settings for analyzing
@@ -725,8 +974,8 @@ module Aws::WellArchitected
725
974
  # The business overview for this profile.
726
975
  #
727
976
  # @option params [required, Array<String>] :pillars
728
- # The Well-Architected Tool Framework pillars to associate with this
729
- # profile.
977
+ # The Amazon Web Services Well-Architected Framework pillars to
978
+ # associate with this profile.
730
979
  #
731
980
  # @option params [Boolean] :deletion_protection
732
981
  # Indicates whether deletion protection is enabled for the profile.
@@ -1685,6 +1934,30 @@ module Aws::WellArchitected
1685
1934
  req.send_request(options)
1686
1935
  end
1687
1936
 
1937
+ # Deletes an Organizational Report and its associated artifacts. The
1938
+ # operation is idempotent, so repeated calls for a report that has
1939
+ # already been deleted return success.
1940
+ #
1941
+ # @option params [required, String] :report_id
1942
+ # Identifier of the report to delete.
1943
+ #
1944
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1945
+ #
1946
+ # @example Request syntax with placeholder values
1947
+ #
1948
+ # resp = client.delete_agent_organizational_report({
1949
+ # report_id: "UUID", # required
1950
+ # })
1951
+ #
1952
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/DeleteAgentOrganizationalReport AWS API Documentation
1953
+ #
1954
+ # @overload delete_agent_organizational_report(params = {})
1955
+ # @param [Hash] params ({})
1956
+ def delete_agent_organizational_report(params = {}, options = {})
1957
+ req = build_request(:delete_agent_organizational_report, params)
1958
+ req.send_request(options)
1959
+ end
1960
+
1688
1961
  # Deletes an optimization profile and its associated configuration. This
1689
1962
  # action cannot be undone.
1690
1963
  #
@@ -1708,6 +1981,55 @@ module Aws::WellArchitected
1708
1981
  req.send_request(options)
1709
1982
  end
1710
1983
 
1984
+ # Removes the resource-based policy from an Agent Profile. This revokes
1985
+ # all cross-account access previously granted by the policy. Only the
1986
+ # profile owner can call this operation.
1987
+ #
1988
+ # @option params [required, String] :profile_arn
1989
+ # The ARN of the Agent Profile whose policy to delete.
1990
+ #
1991
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1992
+ #
1993
+ # @example Request syntax with placeholder values
1994
+ #
1995
+ # resp = client.delete_agent_profile_policy({
1996
+ # profile_arn: "AgentProfileArn", # required
1997
+ # })
1998
+ #
1999
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/DeleteAgentProfilePolicy AWS API Documentation
2000
+ #
2001
+ # @overload delete_agent_profile_policy(params = {})
2002
+ # @param [Hash] params ({})
2003
+ def delete_agent_profile_policy(params = {}, options = {})
2004
+ req = build_request(:delete_agent_profile_policy, params)
2005
+ req.send_request(options)
2006
+ end
2007
+
2008
+ # Removes the resource-based policy from an individual Agent
2009
+ # Recommendation. This revokes all cross-account access previously
2010
+ # granted by the policy. The recommendation owner or any principal with
2011
+ # profile write access on the parent profile can call this operation.
2012
+ #
2013
+ # @option params [required, String] :recommendation_arn
2014
+ # The ARN of the Agent Recommendation whose policy to delete.
2015
+ #
2016
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2017
+ #
2018
+ # @example Request syntax with placeholder values
2019
+ #
2020
+ # resp = client.delete_agent_recommendation_policy({
2021
+ # recommendation_arn: "AgentRecommendationArn", # required
2022
+ # })
2023
+ #
2024
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/DeleteAgentRecommendationPolicy AWS API Documentation
2025
+ #
2026
+ # @overload delete_agent_recommendation_policy(params = {})
2027
+ # @param [Hash] params ({})
2028
+ def delete_agent_recommendation_policy(params = {}, options = {})
2029
+ req = build_request(:delete_agent_recommendation_policy, params)
2030
+ req.send_request(options)
2031
+ end
2032
+
1711
2033
  # Delete an existing lens.
1712
2034
  #
1713
2035
  # Only the owner of a lens can delete it. After the lens is deleted,
@@ -2294,6 +2616,8 @@ module Aws::WellArchitected
2294
2616
  # resp.context.content.resource_tags #=> Array
2295
2617
  # resp.context.content.resource_tags[0].key #=> String
2296
2618
  # resp.context.content.resource_tags[0].value #=> String
2619
+ # resp.context.content.organizational_unit_ids #=> Array
2620
+ # resp.context.content.organizational_unit_ids[0] #=> String
2297
2621
  # resp.context.content.application_overview #=> String
2298
2622
  # resp.context.content.industry #=> String
2299
2623
  # resp.context.content.application_type #=> String, one of "SAS", "DESKTOP_APPLICATION", "OTHER"
@@ -2357,6 +2681,149 @@ module Aws::WellArchitected
2357
2681
  req.send_request(options)
2358
2682
  end
2359
2683
 
2684
+ # Retrieves metadata and current state for a single Organizational
2685
+ # Report. The coverageSummary is populated once the report reaches
2686
+ # COMPLETED and is absent for reports still in progress or in a failed
2687
+ # state.
2688
+ #
2689
+ # @option params [required, String] :report_id
2690
+ # Identifier of the report to retrieve.
2691
+ #
2692
+ # @return [Types::GetAgentOrganizationalReportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2693
+ #
2694
+ # * {Types::GetAgentOrganizationalReportResponse#report_id #report_id} => String
2695
+ # * {Types::GetAgentOrganizationalReportResponse#owner_account_id #owner_account_id} => String
2696
+ # * {Types::GetAgentOrganizationalReportResponse#organization_id #organization_id} => String
2697
+ # * {Types::GetAgentOrganizationalReportResponse#label #label} => String
2698
+ # * {Types::GetAgentOrganizationalReportResponse#state #state} => String
2699
+ # * {Types::GetAgentOrganizationalReportResponse#created_at #created_at} => Time
2700
+ # * {Types::GetAgentOrganizationalReportResponse#filters #filters} => Types::OrganizationalReportFilters
2701
+ # * {Types::GetAgentOrganizationalReportResponse#coverage_summary #coverage_summary} => Types::CoverageSummary
2702
+ #
2703
+ # @example Request syntax with placeholder values
2704
+ #
2705
+ # resp = client.get_agent_organizational_report({
2706
+ # report_id: "UUID", # required
2707
+ # })
2708
+ #
2709
+ # @example Response structure
2710
+ #
2711
+ # resp.report_id #=> String
2712
+ # resp.owner_account_id #=> String
2713
+ # resp.organization_id #=> String
2714
+ # resp.label #=> String
2715
+ # resp.state #=> String, one of "DISCOVERING", "SNAPSHOTTING", "AGGREGATING", "COMPRESSING", "COMPLETED", "FAILED", "DELETING"
2716
+ # resp.created_at #=> Time
2717
+ # resp.filters.account_ids #=> Array
2718
+ # resp.filters.account_ids[0] #=> String
2719
+ # resp.filters.organizational_unit_ids #=> Array
2720
+ # resp.filters.organizational_unit_ids[0] #=> String
2721
+ # resp.filters.pillars #=> Array
2722
+ # resp.filters.pillars[0] #=> String, one of "COST_OPTIMIZATION", "SECURITY", "RESILIENCE", "PERFORMANCE", "OPERATIONAL_EXCELLENCE"
2723
+ # resp.filters.recommendation_types #=> Array
2724
+ # resp.filters.recommendation_types[0] #=> String, one of "RESOURCE", "ARCHITECTURE", "APPLICATION"
2725
+ # resp.filters.statuses #=> Array
2726
+ # resp.filters.statuses[0] #=> String, one of "ACTIVE", "SUPPRESSED", "COMPLETED"
2727
+ # resp.filters.priorities #=> Array
2728
+ # resp.filters.priorities[0] #=> String, one of "HIGH", "MEDIUM", "LOW"
2729
+ # resp.filters.created_at_range.from #=> Time
2730
+ # resp.filters.created_at_range.to #=> Time
2731
+ # resp.filters.updated_at_range.from #=> Time
2732
+ # resp.filters.updated_at_range.to #=> Time
2733
+ # resp.coverage_summary.total_accounts_in_scope #=> Integer
2734
+ # resp.coverage_summary.accounts_with_profile #=> Integer
2735
+ # resp.coverage_summary.accounts_without_profile #=> Integer
2736
+ # resp.coverage_summary.failed_account_count #=> Integer
2737
+ # resp.coverage_summary.total_profiles #=> Integer
2738
+ # resp.coverage_summary.total_recommendations #=> Integer
2739
+ # resp.coverage_summary.recommendation_count_by_pillar #=> Array
2740
+ # resp.coverage_summary.recommendation_count_by_pillar[0].pillar #=> String, one of "COST_OPTIMIZATION", "SECURITY", "RESILIENCE", "PERFORMANCE", "OPERATIONAL_EXCELLENCE"
2741
+ # resp.coverage_summary.recommendation_count_by_pillar[0].count #=> Integer
2742
+ # resp.coverage_summary.recommendation_count_by_priority #=> Array
2743
+ # resp.coverage_summary.recommendation_count_by_priority[0].priority #=> String, one of "HIGH", "MEDIUM", "LOW"
2744
+ # resp.coverage_summary.recommendation_count_by_priority[0].count #=> Integer
2745
+ # resp.coverage_summary.failed_accounts #=> Array
2746
+ # resp.coverage_summary.failed_accounts[0].account_id #=> String
2747
+ # resp.coverage_summary.failed_accounts[0].reason #=> String
2748
+ # resp.coverage_summary.failed_organizational_units #=> Array
2749
+ # resp.coverage_summary.failed_organizational_units[0].organizational_unit_id #=> String
2750
+ # resp.coverage_summary.failed_organizational_units[0].reason #=> String
2751
+ #
2752
+ #
2753
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
2754
+ #
2755
+ # * agent_organizational_report_completed
2756
+ #
2757
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/GetAgentOrganizationalReport AWS API Documentation
2758
+ #
2759
+ # @overload get_agent_organizational_report(params = {})
2760
+ # @param [Hash] params ({})
2761
+ def get_agent_organizational_report(params = {}, options = {})
2762
+ req = build_request(:get_agent_organizational_report, params)
2763
+ req.send_request(options)
2764
+ end
2765
+
2766
+ # Retrieves the data artifact for a completed Organizational Report as a
2767
+ # short-lived presigned S3 URL. The response contains the URL in
2768
+ # downloadUrl and its expiration in expiresAt. To have the service write
2769
+ # the artifact directly into a caller-owned bucket instead, use
2770
+ # SendAgentOrganizationalReportDataToS3.
2771
+ #
2772
+ # @option params [required, String] :report_id
2773
+ # Identifier of the report whose data is being retrieved.
2774
+ #
2775
+ # @option params [required, String] :format
2776
+ # Format of the returned artifact (CSV, JSON, or PARQUET).
2777
+ #
2778
+ # @return [Types::GetAgentOrganizationalReportDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2779
+ #
2780
+ # * {Types::GetAgentOrganizationalReportDataResponse#download_url #download_url} => String
2781
+ # * {Types::GetAgentOrganizationalReportDataResponse#expires_at #expires_at} => Time
2782
+ #
2783
+ # @example Request syntax with placeholder values
2784
+ #
2785
+ # resp = client.get_agent_organizational_report_data({
2786
+ # report_id: "UUID", # required
2787
+ # format: "CSV", # required, accepts CSV, JSON, PARQUET
2788
+ # })
2789
+ #
2790
+ # @example Response structure
2791
+ #
2792
+ # resp.download_url #=> String
2793
+ # resp.expires_at #=> Time
2794
+ #
2795
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/GetAgentOrganizationalReportData AWS API Documentation
2796
+ #
2797
+ # @overload get_agent_organizational_report_data(params = {})
2798
+ # @param [Hash] params ({})
2799
+ def get_agent_organizational_report_data(params = {}, options = {})
2800
+ req = build_request(:get_agent_organizational_report_data, params)
2801
+ req.send_request(options)
2802
+ end
2803
+
2804
+ # Returns the caller's complete set of Well-Architected Agent
2805
+ # preferences with their current states.
2806
+ #
2807
+ # @return [Types::GetAgentPreferencesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2808
+ #
2809
+ # * {Types::GetAgentPreferencesResponse#preferences #preferences} => Array&lt;Types::PreferenceEntry&gt;
2810
+ #
2811
+ # @example Response structure
2812
+ #
2813
+ # resp.preferences #=> Array
2814
+ # resp.preferences[0].key #=> String, one of "ORG_INTEGRATION"
2815
+ # resp.preferences[0].status #=> String, one of "ENABLED", "DISABLED", "FAILED"
2816
+ # resp.preferences[0].detail #=> String
2817
+ #
2818
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/GetAgentPreferences AWS API Documentation
2819
+ #
2820
+ # @overload get_agent_preferences(params = {})
2821
+ # @param [Hash] params ({})
2822
+ def get_agent_preferences(params = {}, options = {})
2823
+ req = build_request(:get_agent_preferences, params)
2824
+ req.send_request(options)
2825
+ end
2826
+
2360
2827
  # Retrieves detailed information about an optimization profile,
2361
2828
  # including its configuration and metadata.
2362
2829
  #
@@ -2372,6 +2839,7 @@ module Aws::WellArchitected
2372
2839
  # * {Types::GetAgentProfileResponse#business_overview #business_overview} => String
2373
2840
  # * {Types::GetAgentProfileResponse#pillars #pillars} => Array&lt;String&gt;
2374
2841
  # * {Types::GetAgentProfileResponse#deletion_protection #deletion_protection} => Boolean
2842
+ # * {Types::GetAgentProfileResponse#profile_type #profile_type} => String
2375
2843
  # * {Types::GetAgentProfileResponse#execution_role_arn #execution_role_arn} => String
2376
2844
  # * {Types::GetAgentProfileResponse#aggregation_configuration #aggregation_configuration} => Array&lt;Types::AggregationConfiguration&gt;
2377
2845
  # * {Types::GetAgentProfileResponse#arn #arn} => String
@@ -2383,6 +2851,7 @@ module Aws::WellArchitected
2383
2851
  # * {Types::GetAgentProfileResponse#created_at #created_at} => Time
2384
2852
  # * {Types::GetAgentProfileResponse#last_modified_by #last_modified_by} => String
2385
2853
  # * {Types::GetAgentProfileResponse#last_modified_at #last_modified_at} => Time
2854
+ # * {Types::GetAgentProfileResponse#organizational_aggregation_configuration #organizational_aggregation_configuration} => Types::OrganizationalAggregationConfiguration
2386
2855
  #
2387
2856
  # @example Request syntax with placeholder values
2388
2857
  #
@@ -2399,6 +2868,7 @@ module Aws::WellArchitected
2399
2868
  # resp.pillars #=> Array
2400
2869
  # resp.pillars[0] #=> String, one of "COST_OPTIMIZATION", "SECURITY", "RESILIENCE", "PERFORMANCE", "OPERATIONAL_EXCELLENCE"
2401
2870
  # resp.deletion_protection #=> Boolean
2871
+ # resp.profile_type #=> String, one of "STANDARD", "BASIC", "ORGANIZATIONAL"
2402
2872
  # resp.execution_role_arn #=> String
2403
2873
  # resp.aggregation_configuration #=> Array
2404
2874
  # resp.aggregation_configuration[0].account_id #=> String
@@ -2417,6 +2887,14 @@ module Aws::WellArchitected
2417
2887
  # resp.created_at #=> Time
2418
2888
  # resp.last_modified_by #=> String
2419
2889
  # resp.last_modified_at #=> Time
2890
+ # resp.organizational_aggregation_configuration.organizational_units #=> Array
2891
+ # resp.organizational_aggregation_configuration.organizational_units[0].organizational_unit_id #=> String
2892
+ # resp.organizational_aggregation_configuration.organizational_units[0].regions #=> Array
2893
+ # resp.organizational_aggregation_configuration.organizational_units[0].regions[0] #=> String
2894
+ # resp.organizational_aggregation_configuration.accounts #=> Array
2895
+ # resp.organizational_aggregation_configuration.accounts[0].account_id #=> String
2896
+ # resp.organizational_aggregation_configuration.accounts[0].regions #=> Array
2897
+ # resp.organizational_aggregation_configuration.accounts[0].regions[0] #=> String
2420
2898
  #
2421
2899
  # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/GetAgentProfile AWS API Documentation
2422
2900
  #
@@ -2427,7 +2905,44 @@ module Aws::WellArchitected
2427
2905
  req.send_request(options)
2428
2906
  end
2429
2907
 
2430
- # Retrieves detailed information about a specific optimization
2908
+ # Retrieves the resource-based policy attached to an Agent Profile. Only
2909
+ # the profile owner can call this operation.
2910
+ #
2911
+ # @option params [required, String] :profile_arn
2912
+ # The ARN of the Agent Profile whose policy to retrieve.
2913
+ #
2914
+ # @return [Types::GetAgentProfilePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2915
+ #
2916
+ # * {Types::GetAgentProfilePolicyResponse#profile_arn #profile_arn} => String
2917
+ # * {Types::GetAgentProfilePolicyResponse#policy #policy} => String
2918
+ #
2919
+ # @example Request syntax with placeholder values
2920
+ #
2921
+ # resp = client.get_agent_profile_policy({
2922
+ # profile_arn: "AgentProfileArn", # required
2923
+ # })
2924
+ #
2925
+ # @example Response structure
2926
+ #
2927
+ # resp.profile_arn #=> String
2928
+ # resp.policy #=> String
2929
+ #
2930
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/GetAgentProfilePolicy AWS API Documentation
2931
+ #
2932
+ # @overload get_agent_profile_policy(params = {})
2933
+ # @param [Hash] params ({})
2934
+ def get_agent_profile_policy(params = {}, options = {})
2935
+ req = build_request(:get_agent_profile_policy, params)
2936
+ req.send_request(options)
2937
+ end
2938
+
2939
+ # Application-level recommendations are a new recommendation format
2940
+ # currently in beta. We are actively seeking customer feedback to
2941
+ # improve their quality and relevance. As with any AI-generated content,
2942
+ # please thoroughly review each recommendation before taking any action
2943
+ # based on it.
2944
+ #
2945
+ # Retrieves detailed information about a specific optimization
2431
2946
  # recommendation, including its impact analysis, content, and
2432
2947
  # implementation guidance.
2433
2948
  #
@@ -2559,7 +3074,13 @@ module Aws::WellArchitected
2559
3074
  req.send_request(options)
2560
3075
  end
2561
3076
 
2562
- # Retrieves information about a recommendation generation process,
3077
+ # Application-level recommendations are a new recommendation format
3078
+ # currently in beta. We are actively seeking customer feedback to
3079
+ # improve their quality and relevance. As with any AI-generated content,
3080
+ # please thoroughly review each recommendation before taking any action
3081
+ # based on it.
3082
+ #
3083
+ # Retrieves information about a recommendation generation process,
2563
3084
  # including its status, progress, and results. Recommendation generation
2564
3085
  # is asynchronous: poll this operation until status reaches a terminal
2565
3086
  # value of COMPLETED (results are ready) or ERROR (see errorDetails).
@@ -2582,12 +3103,14 @@ module Aws::WellArchitected
2582
3103
  # * {Types::GetAgentRecommendationGenerationResponse#created_at #created_at} => Time
2583
3104
  # * {Types::GetAgentRecommendationGenerationResponse#last_modified_by #last_modified_by} => String
2584
3105
  # * {Types::GetAgentRecommendationGenerationResponse#last_modified_at #last_modified_at} => Time
2585
- # * {Types::GetAgentRecommendationGenerationResponse#additional_context #additional_context} => Hash,Array,String,Numeric,Boolean
2586
- # * {Types::GetAgentRecommendationGenerationResponse#scope #scope} => Types::Scope
3106
+ # * {Types::GetAgentRecommendationGenerationResponse#generation_type #generation_type} => String
3107
+ # * {Types::GetAgentRecommendationGenerationResponse#generation_recommendation_types #generation_recommendation_types} => Array&lt;String&gt;
2587
3108
  # * {Types::GetAgentRecommendationGenerationResponse#started_at #started_at} => Time
2588
3109
  # * {Types::GetAgentRecommendationGenerationResponse#ended_at #ended_at} => Time
2589
- # * {Types::GetAgentRecommendationGenerationResponse#progress #progress} => Types::Progress
2590
3110
  # * {Types::GetAgentRecommendationGenerationResponse#error_details #error_details} => Types::ErrorDetails
3111
+ # * {Types::GetAgentRecommendationGenerationResponse#additional_context #additional_context} => Hash,Array,String,Numeric,Boolean
3112
+ # * {Types::GetAgentRecommendationGenerationResponse#scope #scope} => Types::Scope
3113
+ # * {Types::GetAgentRecommendationGenerationResponse#progress #progress} => Types::Progress
2591
3114
  #
2592
3115
  # @example Request syntax with placeholder values
2593
3116
  #
@@ -2607,6 +3130,13 @@ module Aws::WellArchitected
2607
3130
  # resp.created_at #=> Time
2608
3131
  # resp.last_modified_by #=> String
2609
3132
  # resp.last_modified_at #=> Time
3133
+ # resp.generation_type #=> String, one of "ONDEMAND", "SCHEDULED", "BASIC"
3134
+ # resp.generation_recommendation_types #=> Array
3135
+ # resp.generation_recommendation_types[0] #=> String, one of "RESOURCE", "ARCHITECTURE", "APPLICATION"
3136
+ # resp.started_at #=> Time
3137
+ # resp.ended_at #=> Time
3138
+ # resp.error_details.code #=> String
3139
+ # resp.error_details.message #=> String
2610
3140
  # resp.scope.pillars #=> Array
2611
3141
  # resp.scope.pillars[0] #=> String, one of "COST_OPTIMIZATION", "SECURITY", "RESILIENCE", "PERFORMANCE", "OPERATIONAL_EXCELLENCE"
2612
3142
  # resp.scope.goal_ids #=> Array
@@ -2615,13 +3145,9 @@ module Aws::WellArchitected
2615
3145
  # resp.scope.items[0].pillar #=> String, one of "COST_OPTIMIZATION", "SECURITY", "RESILIENCE", "PERFORMANCE", "OPERATIONAL_EXCELLENCE"
2616
3146
  # resp.scope.items[0].ids #=> Array
2617
3147
  # resp.scope.items[0].ids[0] #=> String
2618
- # resp.started_at #=> Time
2619
- # resp.ended_at #=> Time
2620
3148
  # resp.progress.steps_completed #=> Integer
2621
3149
  # resp.progress.total_steps #=> Integer
2622
3150
  # resp.progress.completion_percentage #=> Float
2623
- # resp.error_details.code #=> String
2624
- # resp.error_details.message #=> String
2625
3151
  #
2626
3152
  # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/GetAgentRecommendationGeneration AWS API Documentation
2627
3153
  #
@@ -2632,6 +3158,38 @@ module Aws::WellArchitected
2632
3158
  req.send_request(options)
2633
3159
  end
2634
3160
 
3161
+ # Retrieves the resource-based policy attached to an individual Agent
3162
+ # Recommendation. The recommendation owner or any principal with profile
3163
+ # write access on the parent profile can call this operation.
3164
+ #
3165
+ # @option params [required, String] :recommendation_arn
3166
+ # The ARN of the Agent Recommendation whose policy to retrieve.
3167
+ #
3168
+ # @return [Types::GetAgentRecommendationPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3169
+ #
3170
+ # * {Types::GetAgentRecommendationPolicyResponse#recommendation_arn #recommendation_arn} => String
3171
+ # * {Types::GetAgentRecommendationPolicyResponse#policy #policy} => String
3172
+ #
3173
+ # @example Request syntax with placeholder values
3174
+ #
3175
+ # resp = client.get_agent_recommendation_policy({
3176
+ # recommendation_arn: "AgentRecommendationArn", # required
3177
+ # })
3178
+ #
3179
+ # @example Response structure
3180
+ #
3181
+ # resp.recommendation_arn #=> String
3182
+ # resp.policy #=> String
3183
+ #
3184
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/GetAgentRecommendationPolicy AWS API Documentation
3185
+ #
3186
+ # @overload get_agent_recommendation_policy(params = {})
3187
+ # @param [Hash] params ({})
3188
+ def get_agent_recommendation_policy(params = {}, options = {})
3189
+ req = build_request(:get_agent_recommendation_policy, params)
3190
+ req.send_request(options)
3191
+ end
3192
+
2635
3193
  # Get the answer to a specific question in a workload review.
2636
3194
  #
2637
3195
  # @option params [required, String] :workload_id
@@ -3602,10 +4160,12 @@ module Aws::WellArchitected
3602
4160
  # The Amazon Resource Name (ARN) of the profile to list contexts for.
3603
4161
  #
3604
4162
  # @option params [Integer] :max_results
3605
- # The maximum number of results to return for this request.
4163
+ # The maximum number of contexts to return in a single call. Default is
4164
+ # 100.
3606
4165
  #
3607
4166
  # @option params [String] :next_token
3608
- # The token to use to retrieve the next set of results.
4167
+ # A pagination token returned from a previous call to continue
4168
+ # retrieving results.
3609
4169
  #
3610
4170
  # @return [Types::ListAgentContextsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3611
4171
  #
@@ -3640,6 +4200,8 @@ module Aws::WellArchitected
3640
4200
  # resp.items[0].content.resource_tags #=> Array
3641
4201
  # resp.items[0].content.resource_tags[0].key #=> String
3642
4202
  # resp.items[0].content.resource_tags[0].value #=> String
4203
+ # resp.items[0].content.organizational_unit_ids #=> Array
4204
+ # resp.items[0].content.organizational_unit_ids[0] #=> String
3643
4205
  # resp.items[0].content.application_overview #=> String
3644
4206
  # resp.items[0].content.industry #=> String
3645
4207
  # resp.items[0].content.application_type #=> String, one of "SAS", "DESKTOP_APPLICATION", "OTHER"
@@ -3716,6 +4278,56 @@ module Aws::WellArchitected
3716
4278
  req.send_request(options)
3717
4279
  end
3718
4280
 
4281
+ # Lists Organizational Reports owned by the caller's account within the
4282
+ # caller's AWS Organization, ordered by most recently created first.
4283
+ # Supports pagination and an optional state filter.
4284
+ #
4285
+ # @option params [Integer] :max_results
4286
+ # Maximum number of items to return in a single page. Defaults to 100.
4287
+ #
4288
+ # @option params [String] :next_token
4289
+ # Pagination token from a previous ListAgentOrganizationalReports
4290
+ # response. Absent on the first page.
4291
+ #
4292
+ # @option params [String] :state
4293
+ # Optional filter restricting the response to reports in a single
4294
+ # lifecycle state.
4295
+ #
4296
+ # @return [Types::ListAgentOrganizationalReportsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4297
+ #
4298
+ # * {Types::ListAgentOrganizationalReportsResponse#items #items} => Array&lt;Types::OrganizationalReportSummary&gt;
4299
+ # * {Types::ListAgentOrganizationalReportsResponse#next_token #next_token} => String
4300
+ #
4301
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4302
+ #
4303
+ # @example Request syntax with placeholder values
4304
+ #
4305
+ # resp = client.list_agent_organizational_reports({
4306
+ # max_results: 1,
4307
+ # next_token: "ListAgentOrganizationalReportsRequestNextTokenString",
4308
+ # state: "DISCOVERING", # accepts DISCOVERING, SNAPSHOTTING, AGGREGATING, COMPRESSING, COMPLETED, FAILED, DELETING
4309
+ # })
4310
+ #
4311
+ # @example Response structure
4312
+ #
4313
+ # resp.items #=> Array
4314
+ # resp.items[0].report_id #=> String
4315
+ # resp.items[0].owner_account_id #=> String
4316
+ # resp.items[0].organization_id #=> String
4317
+ # resp.items[0].label #=> String
4318
+ # resp.items[0].state #=> String, one of "DISCOVERING", "SNAPSHOTTING", "AGGREGATING", "COMPRESSING", "COMPLETED", "FAILED", "DELETING"
4319
+ # resp.items[0].created_at #=> Time
4320
+ # resp.next_token #=> String
4321
+ #
4322
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListAgentOrganizationalReports AWS API Documentation
4323
+ #
4324
+ # @overload list_agent_organizational_reports(params = {})
4325
+ # @param [Hash] params ({})
4326
+ def list_agent_organizational_reports(params = {}, options = {})
4327
+ req = build_request(:list_agent_organizational_reports, params)
4328
+ req.send_request(options)
4329
+ end
4330
+
3719
4331
  # Lists optimization profiles in your account. Profiles define the scope
3720
4332
  # and configuration for generating optimization recommendations.
3721
4333
  #
@@ -3751,6 +4363,7 @@ module Aws::WellArchitected
3751
4363
  # resp.items[0].pillars #=> Array
3752
4364
  # resp.items[0].pillars[0] #=> String, one of "COST_OPTIMIZATION", "SECURITY", "RESILIENCE", "PERFORMANCE", "OPERATIONAL_EXCELLENCE"
3753
4365
  # resp.items[0].deletion_protection #=> Boolean
4366
+ # resp.items[0].profile_type #=> String, one of "STANDARD", "BASIC", "ORGANIZATIONAL"
3754
4367
  # resp.items[0].execution_role_arn #=> String
3755
4368
  # resp.items[0].aggregation_configuration #=> Array
3756
4369
  # resp.items[0].aggregation_configuration[0].account_id #=> String
@@ -3762,13 +4375,18 @@ module Aws::WellArchitected
3762
4375
  # resp.items[0].eligible_for_architecture_generation #=> Boolean
3763
4376
  # resp.items[0].field_errors #=> Hash
3764
4377
  # resp.items[0].field_errors["FieldErrorPath"] #=> String
3765
- # resp.items[0].tags #=> Array
3766
- # resp.items[0].tags[0].key #=> String
3767
- # resp.items[0].tags[0].value #=> String
3768
4378
  # resp.items[0].created_by #=> String
3769
4379
  # resp.items[0].created_at #=> Time
3770
4380
  # resp.items[0].last_modified_by #=> String
3771
4381
  # resp.items[0].last_modified_at #=> Time
4382
+ # resp.items[0].organizational_aggregation_configuration.organizational_units #=> Array
4383
+ # resp.items[0].organizational_aggregation_configuration.organizational_units[0].organizational_unit_id #=> String
4384
+ # resp.items[0].organizational_aggregation_configuration.organizational_units[0].regions #=> Array
4385
+ # resp.items[0].organizational_aggregation_configuration.organizational_units[0].regions[0] #=> String
4386
+ # resp.items[0].organizational_aggregation_configuration.accounts #=> Array
4387
+ # resp.items[0].organizational_aggregation_configuration.accounts[0].account_id #=> String
4388
+ # resp.items[0].organizational_aggregation_configuration.accounts[0].regions #=> Array
4389
+ # resp.items[0].organizational_aggregation_configuration.accounts[0].regions[0] #=> String
3772
4390
  # resp.next_token #=> String
3773
4391
  #
3774
4392
  # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListAgentProfiles AWS API Documentation
@@ -3780,7 +4398,13 @@ module Aws::WellArchitected
3780
4398
  req.send_request(options)
3781
4399
  end
3782
4400
 
3783
- # Lists recommendation generation processes for a specified profile.
4401
+ # Application-level recommendations are a new recommendation format
4402
+ # currently in beta. We are actively seeking customer feedback to
4403
+ # improve their quality and relevance. As with any AI-generated content,
4404
+ # please thoroughly review each recommendation before taking any action
4405
+ # based on it.
4406
+ #
4407
+ # Lists recommendation generation processes for a specified profile.
3784
4408
  #
3785
4409
  # @option params [required, String] :profile_arn
3786
4410
  # The Amazon Resource Name (ARN) of the optimization profile to list
@@ -3825,6 +4449,13 @@ module Aws::WellArchitected
3825
4449
  # resp.items[0].created_at #=> Time
3826
4450
  # resp.items[0].last_modified_by #=> String
3827
4451
  # resp.items[0].last_modified_at #=> Time
4452
+ # resp.items[0].generation_type #=> String, one of "ONDEMAND", "SCHEDULED", "BASIC"
4453
+ # resp.items[0].generation_recommendation_types #=> Array
4454
+ # resp.items[0].generation_recommendation_types[0] #=> String, one of "RESOURCE", "ARCHITECTURE", "APPLICATION"
4455
+ # resp.items[0].started_at #=> Time
4456
+ # resp.items[0].ended_at #=> Time
4457
+ # resp.items[0].error_details.code #=> String
4458
+ # resp.items[0].error_details.message #=> String
3828
4459
  # resp.next_token #=> String
3829
4460
  #
3830
4461
  # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListAgentRecommendationGenerations AWS API Documentation
@@ -3836,7 +4467,13 @@ module Aws::WellArchitected
3836
4467
  req.send_request(options)
3837
4468
  end
3838
4469
 
3839
- # Lists recommendation items for a specific recommendation.
4470
+ # Application-level recommendations are a new recommendation format
4471
+ # currently in beta. We are actively seeking customer feedback to
4472
+ # improve their quality and relevance. As with any AI-generated content,
4473
+ # please thoroughly review each recommendation before taking any action
4474
+ # based on it.
4475
+ #
4476
+ # Lists recommendation items for a specific recommendation.
3840
4477
  # Recommendation items provide detailed information about individual
3841
4478
  # optimization opportunities.
3842
4479
  #
@@ -3882,6 +4519,8 @@ module Aws::WellArchitected
3882
4519
  # resp.items[0].created_at #=> Time
3883
4520
  # resp.items[0].last_modified_by #=> String
3884
4521
  # resp.items[0].last_modified_at #=> Time
4522
+ # resp.items[0].auto_remediation.deep_link #=> String
4523
+ # resp.items[0].auto_remediation.cli_command #=> String
3885
4524
  # resp.next_token #=> String
3886
4525
  #
3887
4526
  # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListAgentRecommendationItems AWS API Documentation
@@ -3893,7 +4532,14 @@ module Aws::WellArchitected
3893
4532
  req.send_request(options)
3894
4533
  end
3895
4534
 
3896
- # Lists active optimization recommendations for a specified profile with
4535
+ # Application-level recommendations are a new recommendation format
4536
+ # currently in beta. We are actively seeking customer feedback to
4537
+ # improve their quality and relevance. As with any AI-generated content,
4538
+ # please thoroughly review each recommendation before taking any action
4539
+ # based on it.
4540
+ #
4541
+ # Lists active optimization recommendations for a specified profile
4542
+ # with
3897
4543
  # optional filtering by state.
3898
4544
  #
3899
4545
  # @option params [required, String] :profile_arn
@@ -5188,6 +5834,73 @@ module Aws::WellArchitected
5188
5834
  req.send_request(options)
5189
5835
  end
5190
5836
 
5837
+ # Creates or replaces the caller's Well-Architected Agent preferences.
5838
+ # Each supplied update sets the desired state of one preference.
5839
+ # Preferences not named in the request are left unchanged. Enabling or
5840
+ # disabling is performed synchronously, so a failure to reach the
5841
+ # requested state is returned as a modeled exception rather than a
5842
+ # FAILED status. On success the operation returns an empty response.
5843
+ # Call GetAgentPreferences to read the resulting state. The account the
5844
+ # preferences belong to is inferred from the caller's authorization
5845
+ # context.
5846
+ #
5847
+ # @option params [required, Array<Types::PreferenceUpdate>] :preferences
5848
+ # Preference updates to apply. A given preference key may appear at most
5849
+ # once.
5850
+ #
5851
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5852
+ #
5853
+ # @example Request syntax with placeholder values
5854
+ #
5855
+ # resp = client.put_agent_preferences({
5856
+ # preferences: [ # required
5857
+ # {
5858
+ # key: "ORG_INTEGRATION", # required, accepts ORG_INTEGRATION
5859
+ # state: "ENABLED", # required, accepts ENABLED, DISABLED
5860
+ # },
5861
+ # ],
5862
+ # })
5863
+ #
5864
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/PutAgentPreferences AWS API Documentation
5865
+ #
5866
+ # @overload put_agent_preferences(params = {})
5867
+ # @param [Hash] params ({})
5868
+ def put_agent_preferences(params = {}, options = {})
5869
+ req = build_request(:put_agent_preferences, params)
5870
+ req.send_request(options)
5871
+ end
5872
+
5873
+ # Attaches or replaces a resource-based policy on an Agent Profile. The
5874
+ # policy controls cross-account access to the profile and its child
5875
+ # resources such as recommendations, goals, and contexts. Only the
5876
+ # profile owner can call this operation. The policy must be valid IAM
5877
+ # JSON with Allow-only statements and no negation condition operators.
5878
+ #
5879
+ # @option params [required, String] :profile_arn
5880
+ # The ARN of the Agent Profile to attach the policy to.
5881
+ #
5882
+ # @option params [required, String] :policy
5883
+ # The IAM resource-based policy document in JSON format. Maximum size
5884
+ # 50KB.
5885
+ #
5886
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5887
+ #
5888
+ # @example Request syntax with placeholder values
5889
+ #
5890
+ # resp = client.put_agent_profile_policy({
5891
+ # profile_arn: "AgentProfileArn", # required
5892
+ # policy: "ResourcePolicy", # required
5893
+ # })
5894
+ #
5895
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/PutAgentProfilePolicy AWS API Documentation
5896
+ #
5897
+ # @overload put_agent_profile_policy(params = {})
5898
+ # @param [Hash] params ({})
5899
+ def put_agent_profile_policy(params = {}, options = {})
5900
+ req = build_request(:put_agent_profile_policy, params)
5901
+ req.send_request(options)
5902
+ end
5903
+
5191
5904
  # Submits user feedback on a recommendation to help improve future
5192
5905
  # optimization suggestions and track implementation outcomes.
5193
5906
  #
@@ -5224,35 +5937,146 @@ module Aws::WellArchitected
5224
5937
  req.send_request(options)
5225
5938
  end
5226
5939
 
5227
- # Initiates a new recommendation generation process for the specified
5228
- # optimization profile. This asynchronous operation analyzes your Amazon
5229
- # Web Services resources and generates optimization recommendations
5230
- # based on the configured pillars and scope. Use
5231
- # GetAgentRecommendationGeneration to check status.
5940
+ # Attaches or replaces a resource-based policy on an individual Agent
5941
+ # Recommendation. The policy controls cross-account access to the
5942
+ # recommendation and its child resources such as items and remediations.
5943
+ # The recommendation owner or any principal with profile write access on
5944
+ # the parent profile can call this operation. The policy must be valid
5945
+ # IAM JSON with Allow-only statements and no negation condition
5946
+ # operators.
5947
+ #
5948
+ # @option params [required, String] :recommendation_arn
5949
+ # The ARN of the Agent Recommendation to attach the policy to.
5950
+ #
5951
+ # @option params [required, String] :policy
5952
+ # The IAM resource-based policy document in JSON format. Maximum size
5953
+ # 50KB.
5954
+ #
5955
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5956
+ #
5957
+ # @example Request syntax with placeholder values
5958
+ #
5959
+ # resp = client.put_agent_recommendation_policy({
5960
+ # recommendation_arn: "AgentRecommendationArn", # required
5961
+ # policy: "ResourcePolicy", # required
5962
+ # })
5963
+ #
5964
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/PutAgentRecommendationPolicy AWS API Documentation
5965
+ #
5966
+ # @overload put_agent_recommendation_policy(params = {})
5967
+ # @param [Hash] params ({})
5968
+ def put_agent_recommendation_policy(params = {}, options = {})
5969
+ req = build_request(:put_agent_recommendation_policy, params)
5970
+ req.send_request(options)
5971
+ end
5972
+
5973
+ # Writes the data artifact for a completed Organizational Report
5974
+ # directly into a caller-owned S3 bucket. The artifact is written in the
5975
+ # requested format to the supplied bucketArn and objectKey, and the
5976
+ # resulting S3 location is returned in deliveredTo. This operation
5977
+ # creates an S3 object and should not be retried indiscriminately. To
5978
+ # download the artifact through a short-lived presigned URL instead, use
5979
+ # GetAgentOrganizationalReportData.
5980
+ #
5981
+ # @option params [required, String] :report_id
5982
+ # Identifier of the report whose data is being delivered.
5983
+ #
5984
+ # @option params [required, String] :format
5985
+ # Format of the delivered artifact (CSV, JSON, or PARQUET).
5986
+ #
5987
+ # @option params [required, String] :bucket_arn
5988
+ # ARN of the caller-owned S3 bucket that will receive the artifact.
5989
+ #
5990
+ # @option params [required, String] :object_key
5991
+ # S3 object key under bucketArn where the artifact will be written.
5992
+ #
5993
+ # @return [Types::SendAgentOrganizationalReportDataToS3Response] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5994
+ #
5995
+ # * {Types::SendAgentOrganizationalReportDataToS3Response#delivered_to #delivered_to} => String
5996
+ #
5997
+ # @example Request syntax with placeholder values
5998
+ #
5999
+ # resp = client.send_agent_organizational_report_data_to_s3({
6000
+ # report_id: "UUID", # required
6001
+ # format: "CSV", # required, accepts CSV, JSON, PARQUET
6002
+ # bucket_arn: "S3BucketArn", # required
6003
+ # object_key: "S3ObjectKey", # required
6004
+ # })
6005
+ #
6006
+ # @example Response structure
6007
+ #
6008
+ # resp.delivered_to #=> String
6009
+ #
6010
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/SendAgentOrganizationalReportDataToS3 AWS API Documentation
6011
+ #
6012
+ # @overload send_agent_organizational_report_data_to_s3(params = {})
6013
+ # @param [Hash] params ({})
6014
+ def send_agent_organizational_report_data_to_s3(params = {}, options = {})
6015
+ req = build_request(:send_agent_organizational_report_data_to_s3, params)
6016
+ req.send_request(options)
6017
+ end
6018
+
6019
+ # Starts a recommendation generation process for the specified agent
6020
+ # profile. This asynchronous operation returns immediately. Use
6021
+ # `GetAgentRecommendationGeneration` to check the status of the
6022
+ # generation.
6023
+ #
6024
+ # Currently, only the `ARCHITECTURE` recommendation type is supported.
6025
+ # `RESOURCE` and `APPLICATION` recommendations are generated only by the
6026
+ # scheduled generation cycle and cannot be started with this operation.
6027
+ #
6028
+ # For the `ARCHITECTURE` type, the generation analyzes the
6029
+ # infrastructure as code (IaC) template that you specify in
6030
+ # `additionalContext`, and returns updated templates with best practice
6031
+ # fixes applied. You must specify `scope` and `additionalContext`. You
6032
+ # can optionally specify `name`.
6033
+ #
6034
+ # Architecture review generations are subject to a daily quota for each
6035
+ # profile. For more information, see [Quotas and limits][1] in the
6036
+ # Amazon Web Services Well-Architected User Guide.
6037
+ #
6038
+ #
6039
+ #
6040
+ # [1]: https://docs.aws.amazon.com/wellarchitected/latest/userguide/agent-quotas.html
5232
6041
  #
5233
6042
  # @option params [required, String] :profile_arn
5234
6043
  # The Amazon Resource Name (ARN) of the optimization profile to use for
5235
6044
  # generating recommendations.
5236
6045
  #
5237
6046
  # @option params [required, Array<String>] :types
5238
- # The types of recommendations to generate.
6047
+ # The types of recommendations to generate. You can specify up to two
6048
+ # types in a single request. Currently, only `ARCHITECTURE` is supported
6049
+ # for this operation.
5239
6050
  #
5240
6051
  # @option params [String] :name
5241
- # An optional name for this generation process to help identify it in
5242
- # lists and logs.
6052
+ # An optional name for this generation that identifies the architecture
6053
+ # review in the console and in `ListAgentRecommendationGenerations`
6054
+ # results. Applies to `ARCHITECTURE` type only. Must be absent for other
6055
+ # types.
5243
6056
  #
5244
6057
  # @option params [Hash,Array,String,Numeric,Boolean] :additional_context
5245
- # Optional additional context to guide the recommendation generation,
5246
- # such as specific business requirements or constraints.
6058
+ # The location of the infrastructure as code (IaC) template to review,
6059
+ # and the lenses to review it against. Required for the `ARCHITECTURE`
6060
+ # type. Must be absent for other types. Specify a JSON object with the
6061
+ # following members:
6062
+ #
6063
+ # * `s3Uri`: The Amazon S3 URI of the IaC template, .zip archive, or
6064
+ # folder to review.
6065
+ #
6066
+ # * `s3VersionId`: The version ID of the Amazon S3 object. If you omit
6067
+ # this member, the current version is used.
6068
+ #
6069
+ # * `lensArns`: The ARNs of the lenses to review against. Only
6070
+ # `arn:aws:wellarchitected::aws:lens/wellarchitected` is supported.
5247
6071
  #
5248
6072
  # Document type used to carry open content
5249
6073
  # (Hash,Array,String,Numeric,Boolean). A document type value is
5250
6074
  # serialized using the same format as its surroundings and requires no
5251
6075
  # additional encoding or escaping.
5252
6076
  #
5253
- # @option params [required, Types::Scope] :scope
5254
- # Scope configuration to focus the generation on specific pillars or
5255
- # goals.
6077
+ # @option params [Types::Scope] :scope
6078
+ # Defines which pillars, goals, and items the review covers. Required
6079
+ # for the `ARCHITECTURE` type. Must be absent for other types.
5256
6080
  #
5257
6081
  # @return [Types::StartAgentRecommendationGenerationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5258
6082
  #
@@ -5274,7 +6098,7 @@ module Aws::WellArchitected
5274
6098
  # name: "StartAgentRecommendationGenerationRequestNameString",
5275
6099
  # additional_context: {
5276
6100
  # },
5277
- # scope: { # required
6101
+ # scope: {
5278
6102
  # pillars: ["COST_OPTIMIZATION"], # required, accepts COST_OPTIMIZATION, SECURITY, RESILIENCE, PERFORMANCE, OPERATIONAL_EXCELLENCE
5279
6103
  # goal_ids: ["UUID"],
5280
6104
  # items: [
@@ -5422,6 +6246,7 @@ module Aws::WellArchitected
5422
6246
  # value: "ContextResourceTagValueString", # required
5423
6247
  # },
5424
6248
  # ],
6249
+ # organizational_unit_ids: ["ContextContentOrganizationalUnitIdsListMemberString"],
5425
6250
  # application_overview: "ContextContentApplicationOverviewString",
5426
6251
  # industry: "ContextContentIndustryString",
5427
6252
  # application_type: "SAS", # accepts SAS, DESKTOP_APPLICATION, OTHER
@@ -5448,6 +6273,8 @@ module Aws::WellArchitected
5448
6273
  # resp.context.content.resource_tags #=> Array
5449
6274
  # resp.context.content.resource_tags[0].key #=> String
5450
6275
  # resp.context.content.resource_tags[0].value #=> String
6276
+ # resp.context.content.organizational_unit_ids #=> Array
6277
+ # resp.context.content.organizational_unit_ids[0] #=> String
5451
6278
  # resp.context.content.application_overview #=> String
5452
6279
  # resp.context.content.industry #=> String
5453
6280
  # resp.context.content.application_type #=> String, one of "SAS", "DESKTOP_APPLICATION", "OTHER"
@@ -5535,8 +6362,175 @@ module Aws::WellArchitected
5535
6362
  req.send_request(options)
5536
6363
  end
5537
6364
 
6365
+ # Updates an Organizational Profile. Organizational Profiles are
6366
+ # specific to Profiles created using AWS Organizations integration.
6367
+ # Include only the fields you want to change; any field you omit from
6368
+ # the request keeps its current value.
6369
+ #
6370
+ # To clear an optional text field, supply an empty string for it; the
6371
+ # field is then unset, and a subsequent read omits it rather than
6372
+ # returning an empty string. Omitting the field from the request leaves
6373
+ # the stored value in place. `description` and `businessOverview` can be
6374
+ # cleared this way. `displayName` cannot be cleared because a display
6375
+ # name is required, though you can change it. `pillars` cannot be
6376
+ # cleared because a profile must target at least one pillar.
6377
+ #
6378
+ # `organizationalAggregationConfiguration` behaves differently because
6379
+ # it is a structure rather than a text field. Supplying it with both its
6380
+ # `organizationalUnits` and `accounts` lists empty removes every
6381
+ # monitored organizational unit and account, but the field itself
6382
+ # remains set: a subsequent read returns the structure with two empty
6383
+ # lists rather than omitting it. Omitting the field from the request
6384
+ # keeps the stored boundary.
6385
+ #
6386
+ # @option params [String] :client_token
6387
+ # A unique, case-sensitive identifier that you provide to ensure the
6388
+ # idempotency of the request.
6389
+ #
6390
+ # **A suitable default value is auto-generated.** You should normally
6391
+ # not need to pass this option.**
6392
+ #
6393
+ # @option params [required, String] :profile_arn
6394
+ # The Amazon Resource Name (ARN) of the organizational profile to
6395
+ # update.
6396
+ #
6397
+ # @option params [String] :display_name
6398
+ # The updated display name of the organizational profile. Omit this
6399
+ # field to keep the current display name. A display name is required, so
6400
+ # it cannot be cleared.
6401
+ #
6402
+ # @option params [String] :description
6403
+ # The updated description of the organizational profile. Omit this field
6404
+ # to keep the current description, or supply an empty string to clear
6405
+ # it; a cleared description is read back as absent rather than as an
6406
+ # empty string.
6407
+ #
6408
+ # @option params [String] :business_overview
6409
+ # The updated business overview for the organizational profile. Omit
6410
+ # this field to keep the current business overview, or supply an empty
6411
+ # string to clear it; a cleared business overview is read back as absent
6412
+ # rather than as an empty string.
6413
+ #
6414
+ # @option params [Array<String>] :pillars
6415
+ # The updated Amazon Web Services Well-Architected Framework pillars for
6416
+ # the organizational profile. Omit this field to keep the current
6417
+ # pillars. A profile must target at least one pillar, so an empty list
6418
+ # is rejected.
6419
+ #
6420
+ # @option params [Boolean] :deletion_protection
6421
+ # Indicates whether deletion protection is enabled for the
6422
+ # organizational profile.
6423
+ #
6424
+ # @option params [Types::OrganizationalAggregationConfiguration] :organizational_aggregation_configuration
6425
+ # The organizational monitoring boundary. Contains organizational unit
6426
+ # or root entries and individual account entries that define the scope
6427
+ # for the profile. Omit this field to keep the current boundary, or
6428
+ # supply this structure with both its `organizationalUnits` and
6429
+ # `accounts` lists empty to remove every monitored organizational unit
6430
+ # and account. The field remains set either way — an emptied boundary is
6431
+ # read back as a structure with two empty lists, not as an absent field.
6432
+ #
6433
+ # @return [Types::UpdateAgentOrganizationalProfileResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6434
+ #
6435
+ # * {Types::UpdateAgentOrganizationalProfileResponse#name #name} => String
6436
+ # * {Types::UpdateAgentOrganizationalProfileResponse#display_name #display_name} => String
6437
+ # * {Types::UpdateAgentOrganizationalProfileResponse#description #description} => String
6438
+ # * {Types::UpdateAgentOrganizationalProfileResponse#business_overview #business_overview} => String
6439
+ # * {Types::UpdateAgentOrganizationalProfileResponse#pillars #pillars} => Array&lt;String&gt;
6440
+ # * {Types::UpdateAgentOrganizationalProfileResponse#deletion_protection #deletion_protection} => Boolean
6441
+ # * {Types::UpdateAgentOrganizationalProfileResponse#organization_id #organization_id} => String
6442
+ # * {Types::UpdateAgentOrganizationalProfileResponse#organizational_aggregation_configuration #organizational_aggregation_configuration} => Types::OrganizationalAggregationConfiguration
6443
+ # * {Types::UpdateAgentOrganizationalProfileResponse#arn #arn} => String
6444
+ # * {Types::UpdateAgentOrganizationalProfileResponse#eligible_for_scheduled_generation #eligible_for_scheduled_generation} => Boolean
6445
+ # * {Types::UpdateAgentOrganizationalProfileResponse#eligible_for_architecture_generation #eligible_for_architecture_generation} => Boolean
6446
+ # * {Types::UpdateAgentOrganizationalProfileResponse#field_errors #field_errors} => Hash&lt;String,String&gt;
6447
+ # * {Types::UpdateAgentOrganizationalProfileResponse#created_by #created_by} => String
6448
+ # * {Types::UpdateAgentOrganizationalProfileResponse#created_at #created_at} => Time
6449
+ # * {Types::UpdateAgentOrganizationalProfileResponse#last_modified_by #last_modified_by} => String
6450
+ # * {Types::UpdateAgentOrganizationalProfileResponse#last_modified_at #last_modified_at} => Time
6451
+ #
6452
+ # @example Request syntax with placeholder values
6453
+ #
6454
+ # resp = client.update_agent_organizational_profile({
6455
+ # client_token: "UpdateAgentOrganizationalProfileRequestClientTokenString",
6456
+ # profile_arn: "AgentProfileArn", # required
6457
+ # display_name: "UpdateAgentOrganizationalProfileRequestDisplayNameString",
6458
+ # description: "UpdateAgentOrganizationalProfileRequestDescriptionString",
6459
+ # business_overview: "UpdateAgentOrganizationalProfileRequestBusinessOverviewString",
6460
+ # pillars: ["COST_OPTIMIZATION"], # accepts COST_OPTIMIZATION, SECURITY, RESILIENCE, PERFORMANCE, OPERATIONAL_EXCELLENCE
6461
+ # deletion_protection: false,
6462
+ # organizational_aggregation_configuration: {
6463
+ # organizational_units: [
6464
+ # {
6465
+ # organizational_unit_id: "OrganizationalNodeId", # required
6466
+ # regions: ["Region"], # required
6467
+ # },
6468
+ # ],
6469
+ # accounts: [
6470
+ # {
6471
+ # account_id: "AccountId", # required
6472
+ # regions: ["Region"], # required
6473
+ # },
6474
+ # ],
6475
+ # },
6476
+ # })
6477
+ #
6478
+ # @example Response structure
6479
+ #
6480
+ # resp.name #=> String
6481
+ # resp.display_name #=> String
6482
+ # resp.description #=> String
6483
+ # resp.business_overview #=> String
6484
+ # resp.pillars #=> Array
6485
+ # resp.pillars[0] #=> String, one of "COST_OPTIMIZATION", "SECURITY", "RESILIENCE", "PERFORMANCE", "OPERATIONAL_EXCELLENCE"
6486
+ # resp.deletion_protection #=> Boolean
6487
+ # resp.organization_id #=> String
6488
+ # resp.organizational_aggregation_configuration.organizational_units #=> Array
6489
+ # resp.organizational_aggregation_configuration.organizational_units[0].organizational_unit_id #=> String
6490
+ # resp.organizational_aggregation_configuration.organizational_units[0].regions #=> Array
6491
+ # resp.organizational_aggregation_configuration.organizational_units[0].regions[0] #=> String
6492
+ # resp.organizational_aggregation_configuration.accounts #=> Array
6493
+ # resp.organizational_aggregation_configuration.accounts[0].account_id #=> String
6494
+ # resp.organizational_aggregation_configuration.accounts[0].regions #=> Array
6495
+ # resp.organizational_aggregation_configuration.accounts[0].regions[0] #=> String
6496
+ # resp.arn #=> String
6497
+ # resp.eligible_for_scheduled_generation #=> Boolean
6498
+ # resp.eligible_for_architecture_generation #=> Boolean
6499
+ # resp.field_errors #=> Hash
6500
+ # resp.field_errors["FieldErrorPath"] #=> String
6501
+ # resp.created_by #=> String
6502
+ # resp.created_at #=> Time
6503
+ # resp.last_modified_by #=> String
6504
+ # resp.last_modified_at #=> Time
6505
+ #
6506
+ # @see http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/UpdateAgentOrganizationalProfile AWS API Documentation
6507
+ #
6508
+ # @overload update_agent_organizational_profile(params = {})
6509
+ # @param [Hash] params ({})
6510
+ def update_agent_organizational_profile(params = {}, options = {})
6511
+ req = build_request(:update_agent_organizational_profile, params)
6512
+ req.send_request(options)
6513
+ end
6514
+
5538
6515
  # Updates an existing optimization profile's configuration, including
5539
- # its pillars, execution role, and aggregation settings.
6516
+ # its pillars, execution role, and aggregation settings. Include only
6517
+ # the fields you want to change. Any field you omit from the request
6518
+ # keeps its current value, so you do not need to retrieve the profile
6519
+ # first and resend the fields you are not changing.
6520
+ #
6521
+ # To clear an optional text field, supply an empty string for it; the
6522
+ # field is then unset, and a subsequent read omits it rather than
6523
+ # returning an empty string. Omitting the field from the request leaves
6524
+ # the stored value in place. `description` and `businessOverview` can be
6525
+ # cleared this way. `displayName` cannot be cleared because a display
6526
+ # name is required, though you can change it. `pillars` cannot be
6527
+ # cleared because a profile must target at least one pillar.
6528
+ #
6529
+ # `aggregationConfiguration` behaves differently because it is a list of
6530
+ # per-account configurations rather than a text field. Supplying an
6531
+ # empty list removes every account entry, but the field itself remains
6532
+ # set: a subsequent read returns an empty list rather than omitting the
6533
+ # field. Omitting it from the request keeps the stored entries.
5540
6534
  #
5541
6535
  # @option params [String] :client_token
5542
6536
  # A unique, case-sensitive identifier that you provide to ensure the
@@ -5549,22 +6543,36 @@ module Aws::WellArchitected
5549
6543
  # The Amazon Resource Name (ARN) of the profile to update.
5550
6544
  #
5551
6545
  # @option params [String] :display_name
5552
- # The updated display name of the profile.
6546
+ # The updated display name of the profile. Omit this field to keep the
6547
+ # current display name. A display name is required, so it cannot be
6548
+ # cleared.
5553
6549
  #
5554
6550
  # @option params [String] :description
5555
- # The updated description of the profile.
6551
+ # The updated description of the profile. Omit this field to keep the
6552
+ # current description, or supply an empty string to clear it; a cleared
6553
+ # description is read back as absent rather than as an empty string.
5556
6554
  #
5557
6555
  # @option params [String] :execution_role_arn
5558
- # The updated ARN of the IAM execution role.
6556
+ # The updated ARN of the IAM execution role. Omit this field to keep the
6557
+ # current execution role.
5559
6558
  #
5560
6559
  # @option params [Array<Types::AggregationConfiguration>] :aggregation_configuration
5561
- # The updated aggregation configuration.
6560
+ # The updated aggregation configuration, as a list of per-account
6561
+ # entries. Omit this field to keep the current entries, or supply an
6562
+ # empty list to remove them all. The field remains set either way — an
6563
+ # emptied configuration is read back as an empty list, not as an absent
6564
+ # field.
5562
6565
  #
5563
6566
  # @option params [String] :business_overview
5564
- # The updated business overview for the profile.
6567
+ # The updated business overview for the profile. Omit this field to keep
6568
+ # the current business overview, or supply an empty string to clear it;
6569
+ # a cleared business overview is read back as absent rather than as an
6570
+ # empty string.
5565
6571
  #
5566
6572
  # @option params [Array<String>] :pillars
5567
- # The updated Well-Architected Tool Framework pillars for the profile.
6573
+ # The updated Amazon Web Services Well-Architected Framework pillars for
6574
+ # the profile. Omit this field to keep the current pillars. A profile
6575
+ # must target at least one pillar, so an empty list is rejected.
5568
6576
  #
5569
6577
  # @option params [Boolean] :deletion_protection
5570
6578
  # Indicates whether deletion protection is enabled for the profile.
@@ -5583,7 +6591,6 @@ module Aws::WellArchitected
5583
6591
  # * {Types::UpdateAgentProfileResponse#eligible_for_scheduled_generation #eligible_for_scheduled_generation} => Boolean
5584
6592
  # * {Types::UpdateAgentProfileResponse#eligible_for_architecture_generation #eligible_for_architecture_generation} => Boolean
5585
6593
  # * {Types::UpdateAgentProfileResponse#field_errors #field_errors} => Hash&lt;String,String&gt;
5586
- # * {Types::UpdateAgentProfileResponse#tags #tags} => Array&lt;Types::Tag&gt;
5587
6594
  # * {Types::UpdateAgentProfileResponse#created_by #created_by} => String
5588
6595
  # * {Types::UpdateAgentProfileResponse#created_at #created_at} => Time
5589
6596
  # * {Types::UpdateAgentProfileResponse#last_modified_by #last_modified_by} => String
@@ -5629,9 +6636,6 @@ module Aws::WellArchitected
5629
6636
  # resp.eligible_for_architecture_generation #=> Boolean
5630
6637
  # resp.field_errors #=> Hash
5631
6638
  # resp.field_errors["FieldErrorPath"] #=> String
5632
- # resp.tags #=> Array
5633
- # resp.tags[0].key #=> String
5634
- # resp.tags[0].value #=> String
5635
6639
  # resp.created_by #=> String
5636
6640
  # resp.created_at #=> Time
5637
6641
  # resp.last_modified_by #=> String
@@ -6781,14 +7785,127 @@ module Aws::WellArchitected
6781
7785
  tracer: tracer
6782
7786
  )
6783
7787
  context[:gem_name] = 'aws-sdk-wellarchitected'
6784
- context[:gem_version] = '1.85.0'
7788
+ context[:gem_version] = '1.86.0'
6785
7789
  Seahorse::Client::Request.new(handlers, context)
6786
7790
  end
6787
7791
 
7792
+ # Polls an API operation until a resource enters a desired state.
7793
+ #
7794
+ # ## Basic Usage
7795
+ #
7796
+ # A waiter will call an API operation until:
7797
+ #
7798
+ # * It is successful
7799
+ # * It enters a terminal state
7800
+ # * It makes the maximum number of attempts
7801
+ #
7802
+ # In between attempts, the waiter will sleep.
7803
+ #
7804
+ # # polls in a loop, sleeping between attempts
7805
+ # client.wait_until(waiter_name, params)
7806
+ #
7807
+ # ## Configuration
7808
+ #
7809
+ # You can configure the maximum number of polling attempts, and the
7810
+ # delay (in seconds) between each polling attempt. You can pass
7811
+ # configuration as the final arguments hash.
7812
+ #
7813
+ # # poll for ~25 seconds
7814
+ # client.wait_until(waiter_name, params, {
7815
+ # max_attempts: 5,
7816
+ # delay: 5,
7817
+ # })
7818
+ #
7819
+ # ## Callbacks
7820
+ #
7821
+ # You can be notified before each polling attempt and before each
7822
+ # delay. If you throw `:success` or `:failure` from these callbacks,
7823
+ # it will terminate the waiter.
7824
+ #
7825
+ # started_at = Time.now
7826
+ # client.wait_until(waiter_name, params, {
7827
+ #
7828
+ # # disable max attempts
7829
+ # max_attempts: nil,
7830
+ #
7831
+ # # poll for 1 hour, instead of a number of attempts
7832
+ # before_wait: -> (attempts, response) do
7833
+ # throw :failure if Time.now - started_at > 3600
7834
+ # end
7835
+ # })
7836
+ #
7837
+ # ## Handling Errors
7838
+ #
7839
+ # When a waiter is unsuccessful, it will raise an error.
7840
+ # All of the failure errors extend from
7841
+ # {Aws::Waiters::Errors::WaiterFailed}.
7842
+ #
7843
+ # begin
7844
+ # client.wait_until(...)
7845
+ # rescue Aws::Waiters::Errors::WaiterFailed
7846
+ # # resource did not enter the desired state in time
7847
+ # end
7848
+ #
7849
+ # ## Valid Waiters
7850
+ #
7851
+ # The following table lists the valid waiter names, the operations they call,
7852
+ # and the default `:delay` and `:max_attempts` values.
7853
+ #
7854
+ # | waiter_name | params | :delay | :max_attempts |
7855
+ # | ------------------------------------- | ---------------------------------------- | -------- | ------------- |
7856
+ # | agent_organizational_report_completed | {Client#get_agent_organizational_report} | 15 | 40 |
7857
+ #
7858
+ # @raise [Errors::FailureStateError] Raised when the waiter terminates
7859
+ # because the waiter has entered a state that it will not transition
7860
+ # out of, preventing success.
7861
+ #
7862
+ # @raise [Errors::TooManyAttemptsError] Raised when the configured
7863
+ # maximum number of attempts have been made, and the waiter is not
7864
+ # yet successful.
7865
+ #
7866
+ # @raise [Errors::UnexpectedError] Raised when an error is encounted
7867
+ # while polling for a resource that is not expected.
7868
+ #
7869
+ # @raise [Errors::NoSuchWaiterError] Raised when you request to wait
7870
+ # for an unknown state.
7871
+ #
7872
+ # @return [Boolean] Returns `true` if the waiter was successful.
7873
+ # @param [Symbol] waiter_name
7874
+ # @param [Hash] params ({})
7875
+ # @param [Hash] options ({})
7876
+ # @option options [Integer] :max_attempts
7877
+ # @option options [Integer] :delay
7878
+ # @option options [Proc] :before_attempt
7879
+ # @option options [Proc] :before_wait
7880
+ def wait_until(waiter_name, params = {}, options = {})
7881
+ w = waiter(waiter_name, options)
7882
+ yield(w.waiter) if block_given? # deprecated
7883
+ w.wait(params)
7884
+ end
7885
+
6788
7886
  # @api private
6789
7887
  # @deprecated
6790
7888
  def waiter_names
6791
- []
7889
+ waiters.keys
7890
+ end
7891
+
7892
+ private
7893
+
7894
+ # @param [Symbol] waiter_name
7895
+ # @param [Hash] options ({})
7896
+ def waiter(waiter_name, options = {})
7897
+ waiter_class = waiters[waiter_name]
7898
+ if waiter_class
7899
+ waiter_class.new(options.merge(client: self))
7900
+ else
7901
+ raise Aws::Waiters::Errors::NoSuchWaiterError.new(waiter_name, waiters.keys)
7902
+ end
7903
+ end
7904
+
7905
+ def waiters
7906
+ {
7907
+ agent_organizational_report_completed: Waiters::AgentOrganizationalReportCompleted
7908
+ }
6792
7909
  end
6793
7910
 
6794
7911
  class << self