diff --git a/VERSION b/VERSION index 65b1de60f40..10c983064a8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.413 \ No newline at end of file +1.11.414 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-chatbot/include/aws/chatbot/model/ChimeWebhookConfiguration.h b/generated/src/aws-cpp-sdk-chatbot/include/aws/chatbot/model/ChimeWebhookConfiguration.h index cf84fecadff..c3bfeb73713 100644 --- a/generated/src/aws-cpp-sdk-chatbot/include/aws/chatbot/model/ChimeWebhookConfiguration.h +++ b/generated/src/aws-cpp-sdk-chatbot/include/aws/chatbot/model/ChimeWebhookConfiguration.h @@ -148,6 +148,37 @@ namespace Model inline ChimeWebhookConfiguration& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } inline ChimeWebhookConfiguration& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } ///@} + + ///@{ + /** + *

Either ENABLED or DISABLED. The resource returns + * DISABLED if the organization's AWS Chatbot policy has explicitly + * denied that configuration. For example, if Amazon Chime is disabled.

+ */ + inline const Aws::String& GetState() const{ return m_state; } + inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } + inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; } + inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } + inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); } + inline ChimeWebhookConfiguration& WithState(const Aws::String& value) { SetState(value); return *this;} + inline ChimeWebhookConfiguration& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} + inline ChimeWebhookConfiguration& WithState(const char* value) { SetState(value); return *this;} + ///@} + + ///@{ + /** + *

Provided if State is DISABLED. Provides context as to why the + * resource is disabled.

+ */ + inline const Aws::String& GetStateReason() const{ return m_stateReason; } + inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; } + inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; } + inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); } + inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); } + inline ChimeWebhookConfiguration& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;} + inline ChimeWebhookConfiguration& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;} + inline ChimeWebhookConfiguration& WithStateReason(const char* value) { SetStateReason(value); return *this;} + ///@} private: Aws::String m_webhookDescription; @@ -170,6 +201,12 @@ namespace Model Aws::Vector m_tags; bool m_tagsHasBeenSet = false; + + Aws::String m_state; + bool m_stateHasBeenSet = false; + + Aws::String m_stateReason; + bool m_stateReasonHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-chatbot/include/aws/chatbot/model/ConfiguredTeam.h b/generated/src/aws-cpp-sdk-chatbot/include/aws/chatbot/model/ConfiguredTeam.h index f008a49c7f2..11e014a39b8 100644 --- a/generated/src/aws-cpp-sdk-chatbot/include/aws/chatbot/model/ConfiguredTeam.h +++ b/generated/src/aws-cpp-sdk-chatbot/include/aws/chatbot/model/ConfiguredTeam.h @@ -85,6 +85,37 @@ namespace Model inline ConfiguredTeam& WithTeamName(Aws::String&& value) { SetTeamName(std::move(value)); return *this;} inline ConfiguredTeam& WithTeamName(const char* value) { SetTeamName(value); return *this;} ///@} + + ///@{ + /** + *

Either ENABLED or DISABLED. The resource returns + * DISABLED if the organization's AWS Chatbot policy has explicitly + * denied that configuration. For example, if Amazon Chime is disabled.

+ */ + inline const Aws::String& GetState() const{ return m_state; } + inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } + inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; } + inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } + inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); } + inline ConfiguredTeam& WithState(const Aws::String& value) { SetState(value); return *this;} + inline ConfiguredTeam& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} + inline ConfiguredTeam& WithState(const char* value) { SetState(value); return *this;} + ///@} + + ///@{ + /** + *

Provided if State is DISABLED. Provides context as to why the + * resource is disabled.

+ */ + inline const Aws::String& GetStateReason() const{ return m_stateReason; } + inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; } + inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; } + inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); } + inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); } + inline ConfiguredTeam& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;} + inline ConfiguredTeam& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;} + inline ConfiguredTeam& WithStateReason(const char* value) { SetStateReason(value); return *this;} + ///@} private: Aws::String m_tenantId; @@ -95,6 +126,12 @@ namespace Model Aws::String m_teamName; bool m_teamNameHasBeenSet = false; + + Aws::String m_state; + bool m_stateHasBeenSet = false; + + Aws::String m_stateReason; + bool m_stateReasonHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-chatbot/include/aws/chatbot/model/SlackChannelConfiguration.h b/generated/src/aws-cpp-sdk-chatbot/include/aws/chatbot/model/SlackChannelConfiguration.h index d9f908cd09f..355032379c2 100644 --- a/generated/src/aws-cpp-sdk-chatbot/include/aws/chatbot/model/SlackChannelConfiguration.h +++ b/generated/src/aws-cpp-sdk-chatbot/include/aws/chatbot/model/SlackChannelConfiguration.h @@ -214,6 +214,37 @@ namespace Model inline SlackChannelConfiguration& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } inline SlackChannelConfiguration& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } ///@} + + ///@{ + /** + *

Either ENABLED or DISABLED. The resource returns + * DISABLED if the organization's AWS Chatbot policy has explicitly + * denied that configuration. For example, if Amazon Chime is disabled.

+ */ + inline const Aws::String& GetState() const{ return m_state; } + inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } + inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; } + inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } + inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); } + inline SlackChannelConfiguration& WithState(const Aws::String& value) { SetState(value); return *this;} + inline SlackChannelConfiguration& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} + inline SlackChannelConfiguration& WithState(const char* value) { SetState(value); return *this;} + ///@} + + ///@{ + /** + *

Provided if State is DISABLED. Provides context as to why the + * resource is disabled.

+ */ + inline const Aws::String& GetStateReason() const{ return m_stateReason; } + inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; } + inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; } + inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); } + inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); } + inline SlackChannelConfiguration& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;} + inline SlackChannelConfiguration& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;} + inline SlackChannelConfiguration& WithStateReason(const char* value) { SetStateReason(value); return *this;} + ///@} private: Aws::String m_slackTeamName; @@ -251,6 +282,12 @@ namespace Model Aws::Vector m_tags; bool m_tagsHasBeenSet = false; + + Aws::String m_state; + bool m_stateHasBeenSet = false; + + Aws::String m_stateReason; + bool m_stateReasonHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-chatbot/include/aws/chatbot/model/SlackWorkspace.h b/generated/src/aws-cpp-sdk-chatbot/include/aws/chatbot/model/SlackWorkspace.h index 418460c78b6..5d9b065acbb 100644 --- a/generated/src/aws-cpp-sdk-chatbot/include/aws/chatbot/model/SlackWorkspace.h +++ b/generated/src/aws-cpp-sdk-chatbot/include/aws/chatbot/model/SlackWorkspace.h @@ -64,6 +64,37 @@ namespace Model inline SlackWorkspace& WithSlackTeamName(Aws::String&& value) { SetSlackTeamName(std::move(value)); return *this;} inline SlackWorkspace& WithSlackTeamName(const char* value) { SetSlackTeamName(value); return *this;} ///@} + + ///@{ + /** + *

Either ENABLED or DISABLED. The resource returns + * DISABLED if the organization's AWS Chatbot policy has explicitly + * denied that configuration. For example, if Amazon Chime is disabled.

+ */ + inline const Aws::String& GetState() const{ return m_state; } + inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } + inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; } + inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } + inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); } + inline SlackWorkspace& WithState(const Aws::String& value) { SetState(value); return *this;} + inline SlackWorkspace& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} + inline SlackWorkspace& WithState(const char* value) { SetState(value); return *this;} + ///@} + + ///@{ + /** + *

Provided if State is DISABLED. Provides context as to why the + * resource is disabled.

+ */ + inline const Aws::String& GetStateReason() const{ return m_stateReason; } + inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; } + inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; } + inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); } + inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); } + inline SlackWorkspace& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;} + inline SlackWorkspace& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;} + inline SlackWorkspace& WithStateReason(const char* value) { SetStateReason(value); return *this;} + ///@} private: Aws::String m_slackTeamId; @@ -71,6 +102,12 @@ namespace Model Aws::String m_slackTeamName; bool m_slackTeamNameHasBeenSet = false; + + Aws::String m_state; + bool m_stateHasBeenSet = false; + + Aws::String m_stateReason; + bool m_stateReasonHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-chatbot/include/aws/chatbot/model/TeamsChannelConfiguration.h b/generated/src/aws-cpp-sdk-chatbot/include/aws/chatbot/model/TeamsChannelConfiguration.h index acb45908bbd..9473e362ea0 100644 --- a/generated/src/aws-cpp-sdk-chatbot/include/aws/chatbot/model/TeamsChannelConfiguration.h +++ b/generated/src/aws-cpp-sdk-chatbot/include/aws/chatbot/model/TeamsChannelConfiguration.h @@ -235,6 +235,37 @@ namespace Model inline TeamsChannelConfiguration& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } inline TeamsChannelConfiguration& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } ///@} + + ///@{ + /** + *

Either ENABLED or DISABLED. The resource returns + * DISABLED if the organization's AWS Chatbot policy has explicitly + * denied that configuration. For example, if Amazon Chime is disabled.

+ */ + inline const Aws::String& GetState() const{ return m_state; } + inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } + inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; } + inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } + inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); } + inline TeamsChannelConfiguration& WithState(const Aws::String& value) { SetState(value); return *this;} + inline TeamsChannelConfiguration& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} + inline TeamsChannelConfiguration& WithState(const char* value) { SetState(value); return *this;} + ///@} + + ///@{ + /** + *

Provided if State is DISABLED. Provides context as to why the + * resource is disabled.

+ */ + inline const Aws::String& GetStateReason() const{ return m_stateReason; } + inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; } + inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; } + inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); } + inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); } + inline TeamsChannelConfiguration& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;} + inline TeamsChannelConfiguration& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;} + inline TeamsChannelConfiguration& WithStateReason(const char* value) { SetStateReason(value); return *this;} + ///@} private: Aws::String m_channelId; @@ -275,6 +306,12 @@ namespace Model Aws::Vector m_tags; bool m_tagsHasBeenSet = false; + + Aws::String m_state; + bool m_stateHasBeenSet = false; + + Aws::String m_stateReason; + bool m_stateReasonHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-chatbot/source/model/ChimeWebhookConfiguration.cpp b/generated/src/aws-cpp-sdk-chatbot/source/model/ChimeWebhookConfiguration.cpp index e15136bb25a..6606f1363cb 100644 --- a/generated/src/aws-cpp-sdk-chatbot/source/model/ChimeWebhookConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-chatbot/source/model/ChimeWebhookConfiguration.cpp @@ -25,7 +25,9 @@ ChimeWebhookConfiguration::ChimeWebhookConfiguration() : m_snsTopicArnsHasBeenSet(false), m_configurationNameHasBeenSet(false), m_loggingLevelHasBeenSet(false), - m_tagsHasBeenSet(false) + m_tagsHasBeenSet(false), + m_stateHasBeenSet(false), + m_stateReasonHasBeenSet(false) { } @@ -92,6 +94,20 @@ ChimeWebhookConfiguration& ChimeWebhookConfiguration::operator =(JsonView jsonVa m_tagsHasBeenSet = true; } + if(jsonValue.ValueExists("State")) + { + m_state = jsonValue.GetString("State"); + + m_stateHasBeenSet = true; + } + + if(jsonValue.ValueExists("StateReason")) + { + m_stateReason = jsonValue.GetString("StateReason"); + + m_stateReasonHasBeenSet = true; + } + return *this; } @@ -151,6 +167,18 @@ JsonValue ChimeWebhookConfiguration::Jsonize() const } + if(m_stateHasBeenSet) + { + payload.WithString("State", m_state); + + } + + if(m_stateReasonHasBeenSet) + { + payload.WithString("StateReason", m_stateReason); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-chatbot/source/model/ConfiguredTeam.cpp b/generated/src/aws-cpp-sdk-chatbot/source/model/ConfiguredTeam.cpp index 02ff1ef92db..0aeab939061 100644 --- a/generated/src/aws-cpp-sdk-chatbot/source/model/ConfiguredTeam.cpp +++ b/generated/src/aws-cpp-sdk-chatbot/source/model/ConfiguredTeam.cpp @@ -21,7 +21,9 @@ namespace Model ConfiguredTeam::ConfiguredTeam() : m_tenantIdHasBeenSet(false), m_teamIdHasBeenSet(false), - m_teamNameHasBeenSet(false) + m_teamNameHasBeenSet(false), + m_stateHasBeenSet(false), + m_stateReasonHasBeenSet(false) { } @@ -54,6 +56,20 @@ ConfiguredTeam& ConfiguredTeam::operator =(JsonView jsonValue) m_teamNameHasBeenSet = true; } + if(jsonValue.ValueExists("State")) + { + m_state = jsonValue.GetString("State"); + + m_stateHasBeenSet = true; + } + + if(jsonValue.ValueExists("StateReason")) + { + m_stateReason = jsonValue.GetString("StateReason"); + + m_stateReasonHasBeenSet = true; + } + return *this; } @@ -79,6 +95,18 @@ JsonValue ConfiguredTeam::Jsonize() const } + if(m_stateHasBeenSet) + { + payload.WithString("State", m_state); + + } + + if(m_stateReasonHasBeenSet) + { + payload.WithString("StateReason", m_stateReason); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-chatbot/source/model/SlackChannelConfiguration.cpp b/generated/src/aws-cpp-sdk-chatbot/source/model/SlackChannelConfiguration.cpp index 60df8ea7fdd..bcfb4c79eec 100644 --- a/generated/src/aws-cpp-sdk-chatbot/source/model/SlackChannelConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-chatbot/source/model/SlackChannelConfiguration.cpp @@ -31,7 +31,9 @@ SlackChannelConfiguration::SlackChannelConfiguration() : m_guardrailPolicyArnsHasBeenSet(false), m_userAuthorizationRequired(false), m_userAuthorizationRequiredHasBeenSet(false), - m_tagsHasBeenSet(false) + m_tagsHasBeenSet(false), + m_stateHasBeenSet(false), + m_stateReasonHasBeenSet(false) { } @@ -136,6 +138,20 @@ SlackChannelConfiguration& SlackChannelConfiguration::operator =(JsonView jsonVa m_tagsHasBeenSet = true; } + if(jsonValue.ValueExists("State")) + { + m_state = jsonValue.GetString("State"); + + m_stateHasBeenSet = true; + } + + if(jsonValue.ValueExists("StateReason")) + { + m_stateReason = jsonValue.GetString("StateReason"); + + m_stateReasonHasBeenSet = true; + } + return *this; } @@ -230,6 +246,18 @@ JsonValue SlackChannelConfiguration::Jsonize() const } + if(m_stateHasBeenSet) + { + payload.WithString("State", m_state); + + } + + if(m_stateReasonHasBeenSet) + { + payload.WithString("StateReason", m_stateReason); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-chatbot/source/model/SlackWorkspace.cpp b/generated/src/aws-cpp-sdk-chatbot/source/model/SlackWorkspace.cpp index 034fc608f0c..080d5f9ec4a 100644 --- a/generated/src/aws-cpp-sdk-chatbot/source/model/SlackWorkspace.cpp +++ b/generated/src/aws-cpp-sdk-chatbot/source/model/SlackWorkspace.cpp @@ -20,7 +20,9 @@ namespace Model SlackWorkspace::SlackWorkspace() : m_slackTeamIdHasBeenSet(false), - m_slackTeamNameHasBeenSet(false) + m_slackTeamNameHasBeenSet(false), + m_stateHasBeenSet(false), + m_stateReasonHasBeenSet(false) { } @@ -46,6 +48,20 @@ SlackWorkspace& SlackWorkspace::operator =(JsonView jsonValue) m_slackTeamNameHasBeenSet = true; } + if(jsonValue.ValueExists("State")) + { + m_state = jsonValue.GetString("State"); + + m_stateHasBeenSet = true; + } + + if(jsonValue.ValueExists("StateReason")) + { + m_stateReason = jsonValue.GetString("StateReason"); + + m_stateReasonHasBeenSet = true; + } + return *this; } @@ -65,6 +81,18 @@ JsonValue SlackWorkspace::Jsonize() const } + if(m_stateHasBeenSet) + { + payload.WithString("State", m_state); + + } + + if(m_stateReasonHasBeenSet) + { + payload.WithString("StateReason", m_stateReason); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-chatbot/source/model/TeamsChannelConfiguration.cpp b/generated/src/aws-cpp-sdk-chatbot/source/model/TeamsChannelConfiguration.cpp index a3a5c899d28..357eba7e2b5 100644 --- a/generated/src/aws-cpp-sdk-chatbot/source/model/TeamsChannelConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-chatbot/source/model/TeamsChannelConfiguration.cpp @@ -32,7 +32,9 @@ TeamsChannelConfiguration::TeamsChannelConfiguration() : m_guardrailPolicyArnsHasBeenSet(false), m_userAuthorizationRequired(false), m_userAuthorizationRequiredHasBeenSet(false), - m_tagsHasBeenSet(false) + m_tagsHasBeenSet(false), + m_stateHasBeenSet(false), + m_stateReasonHasBeenSet(false) { } @@ -144,6 +146,20 @@ TeamsChannelConfiguration& TeamsChannelConfiguration::operator =(JsonView jsonVa m_tagsHasBeenSet = true; } + if(jsonValue.ValueExists("State")) + { + m_state = jsonValue.GetString("State"); + + m_stateHasBeenSet = true; + } + + if(jsonValue.ValueExists("StateReason")) + { + m_stateReason = jsonValue.GetString("StateReason"); + + m_stateReasonHasBeenSet = true; + } + return *this; } @@ -244,6 +260,18 @@ JsonValue TeamsChannelConfiguration::Jsonize() const } + if(m_stateHasBeenSet) + { + payload.WithString("State", m_state); + + } + + if(m_stateReasonHasBeenSet) + { + payload.WithString("StateReason", m_stateReason); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/LambdaClient.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/LambdaClient.h index 333fd7b304a..798d3ec612f 100644 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/LambdaClient.h +++ b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/LambdaClient.h @@ -168,15 +168,15 @@ namespace Lambda * policies to version $LATEST.

To grant permission to another account, * specify the account ID as the Principal. To grant permission to an * organization defined in Organizations, specify the organization ID as the - * PrincipalOrgID. For Amazon Web Servicesservices, the principal is a - * domain-style identifier that the service defines, such as + * PrincipalOrgID. For Amazon Web Services services, the principal is + * a domain-style identifier that the service defines, such as * s3.amazonaws.com or sns.amazonaws.com. For Amazon Web - * Servicesservices, you can also specify the ARN of the associated resource as the - * SourceArn. If you grant permission to a service principal without - * specifying the source, other accounts could potentially configure resources in - * their account to invoke your Lambda function.

This operation adds a - * statement to a resource-based permissions policy for the function. For more - * information about function policies, see SourceArn. If you grant permission to a service principal + * without specifying the source, other accounts could potentially configure + * resources in their account to invoke your Lambda function.

This operation + * adds a statement to a resource-based permissions policy for the function. For + * more information about function policies, see Using * resource-based policies for Lambda.

See Also:

AWS @@ -340,7 +340,7 @@ namespace Lambda * href="https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role">execution * role. The deployment package is a .zip file archive or container image that * contains your function code. The execution role grants the function permission - * to use Amazon Web Servicesservices, such as Amazon CloudWatch Logs for log + * to use Amazon Web Services services, such as Amazon CloudWatch Logs for log * streaming and X-Ray for request tracing.

If the deployment package is a * container @@ -380,13 +380,13 @@ namespace Lambda * code package has a valid signature from a trusted publisher. The code-signing * configuration includes set of signing profiles, which define the trusted * publishers for this function.

If another Amazon Web Services account or - * an Amazon Web Servicesservice invokes your function, use AddPermission to - * grant permission by creating a resource-based Identity and Access Management + * an Amazon Web Services service invokes your function, use AddPermission + * to grant permission by creating a resource-based Identity and Access Management * (IAM) policy. You can grant permissions at the function level, on a version, or * on an alias.

To invoke your function directly, use Invoke. To - * invoke your function in response to events in other Amazon Web Servicesservices, - * create an event source mapping (CreateEventSourceMapping), or configure a - * function trigger in the other service. For more information, see CreateEventSourceMapping), or + * configure a function trigger in the other service. For more information, see Invoking * Lambda functions.

See Also:

AWS @@ -527,7 +527,7 @@ namespace Lambda * Qualifier parameter. Otherwise, all versions and aliases are * deleted. This doesn't require the user to have explicit permissions for * DeleteAlias.

To delete Lambda event source mappings that invoke a - * function, use DeleteEventSourceMapping. For Amazon Web Servicesservices + * function, use DeleteEventSourceMapping. For Amazon Web Services services * and resources that invoke your function directly, delete the trigger in the * service where you originally configured it.

See Also:

AWS @@ -714,36 +714,6 @@ namespace Lambda return SubmitAsync(&LambdaClient::DeleteProvisionedConcurrencyConfig, request, handler, context); } - /** - *

The option to create and modify full JSON resource-based policies, and - * to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, - * won't be available in all Amazon Web Services Regions until September 30, - * 2024.

Deletes a resource-based - * policy from a function.

See Also:

AWS - * API Reference

- */ - virtual Model::DeleteResourcePolicyOutcome DeleteResourcePolicy(const Model::DeleteResourcePolicyRequest& request) const; - - /** - * A Callable wrapper for DeleteResourcePolicy that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::DeleteResourcePolicyOutcomeCallable DeleteResourcePolicyCallable(const DeleteResourcePolicyRequestT& request) const - { - return SubmitCallable(&LambdaClient::DeleteResourcePolicy, request); - } - - /** - * An Async wrapper for DeleteResourcePolicy that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void DeleteResourcePolicyAsync(const DeleteResourcePolicyRequestT& request, const DeleteResourcePolicyResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const - { - return SubmitAsync(&LambdaClient::DeleteResourcePolicy, request, handler, context); - } - /** *

Retrieves details about your account's limits and @@ -1177,64 +1147,6 @@ namespace Lambda return SubmitAsync(&LambdaClient::GetProvisionedConcurrencyConfig, request, handler, context); } - /** - *

The option to configure public-access settings, and to use the - * PutPublicAccessBlock and GetPublicAccessBlock APIs, won't be available in all - * Amazon Web Services Regions until September 30, 2024.

Retrieve - * the public-access settings for a function.

See Also:

AWS - * API Reference

- */ - virtual Model::GetPublicAccessBlockConfigOutcome GetPublicAccessBlockConfig(const Model::GetPublicAccessBlockConfigRequest& request) const; - - /** - * A Callable wrapper for GetPublicAccessBlockConfig that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::GetPublicAccessBlockConfigOutcomeCallable GetPublicAccessBlockConfigCallable(const GetPublicAccessBlockConfigRequestT& request) const - { - return SubmitCallable(&LambdaClient::GetPublicAccessBlockConfig, request); - } - - /** - * An Async wrapper for GetPublicAccessBlockConfig that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void GetPublicAccessBlockConfigAsync(const GetPublicAccessBlockConfigRequestT& request, const GetPublicAccessBlockConfigResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const - { - return SubmitAsync(&LambdaClient::GetPublicAccessBlockConfig, request, handler, context); - } - - /** - *

The option to create and modify full JSON resource-based policies, and - * to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, - * won't be available in all Amazon Web Services Regions until September 30, - * 2024.

Retrieves the resource-based - * policy attached to a function.

See Also:

AWS - * API Reference

- */ - virtual Model::GetResourcePolicyOutcome GetResourcePolicy(const Model::GetResourcePolicyRequest& request) const; - - /** - * A Callable wrapper for GetResourcePolicy that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::GetResourcePolicyOutcomeCallable GetResourcePolicyCallable(const GetResourcePolicyRequestT& request) const - { - return SubmitCallable(&LambdaClient::GetResourcePolicy, request); - } - - /** - * An Async wrapper for GetResourcePolicy that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void GetResourcePolicyAsync(const GetResourcePolicyRequestT& request, const GetResourcePolicyResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const - { - return SubmitAsync(&LambdaClient::GetResourcePolicy, request, handler, context); - } - /** *

Retrieves the runtime management configuration for a function's version. If * the runtime update mode is Manual, this includes the ARN of the runtime @@ -1658,7 +1570,7 @@ namespace Lambda /** *

Returns a function, event source mapping, or code signing configuration's tags. You - * can also view funciton tags with GetFunction.

See Also:

+ * can also view function tags with GetFunction.

See Also:

* AWS * API Reference

*/ @@ -1941,81 +1853,6 @@ namespace Lambda return SubmitAsync(&LambdaClient::PutProvisionedConcurrencyConfig, request, handler, context); } - /** - *

The option to configure public-access settings, and to use the - * PutPublicAccessBlock and GetPublicAccessBlock APIs, won't be available in all - * Amazon Web Services Regions until September 30, 2024.

Configure - * your function's public-access settings.

To control public access to a - * Lambda function, you can choose whether to allow the creation of resource-based - * policies that allow public access to that function. You can also block - * public access to a function, even if it has an existing resource-based policy - * that allows it.

See Also:

AWS - * API Reference

- */ - virtual Model::PutPublicAccessBlockConfigOutcome PutPublicAccessBlockConfig(const Model::PutPublicAccessBlockConfigRequest& request) const; - - /** - * A Callable wrapper for PutPublicAccessBlockConfig that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::PutPublicAccessBlockConfigOutcomeCallable PutPublicAccessBlockConfigCallable(const PutPublicAccessBlockConfigRequestT& request) const - { - return SubmitCallable(&LambdaClient::PutPublicAccessBlockConfig, request); - } - - /** - * An Async wrapper for PutPublicAccessBlockConfig that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void PutPublicAccessBlockConfigAsync(const PutPublicAccessBlockConfigRequestT& request, const PutPublicAccessBlockConfigResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const - { - return SubmitAsync(&LambdaClient::PutPublicAccessBlockConfig, request, handler, context); - } - - /** - *

The option to create and modify full JSON resource-based policies, and - * to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, - * won't be available in all Amazon Web Services Regions until September 30, - * 2024.

Adds a resource-based - * policy to a function. You can use resource-based policies to grant access to - * other Amazon - * Web Services accounts, organizations, - * or services. - * Resource-based policies apply to a single function, version, or alias.

- *

Adding a resource-based policy using this API action replaces any - * existing policy you've previously created. This means that if you've previously - * added resource-based permissions to a function using the AddPermission - * action, those permissions will be overwritten by your new policy.

- *

See Also:

AWS - * API Reference

- */ - virtual Model::PutResourcePolicyOutcome PutResourcePolicy(const Model::PutResourcePolicyRequest& request) const; - - /** - * A Callable wrapper for PutResourcePolicy that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::PutResourcePolicyOutcomeCallable PutResourcePolicyCallable(const PutResourcePolicyRequestT& request) const - { - return SubmitCallable(&LambdaClient::PutResourcePolicy, request); - } - - /** - * An Async wrapper for PutResourcePolicy that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void PutResourcePolicyAsync(const PutResourcePolicyRequestT& request, const PutResourcePolicyResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const - { - return SubmitAsync(&LambdaClient::PutResourcePolicy, request, handler, context); - } - /** *

Sets the runtime management configuration for a function's version. For more * information, see Revokes function-use permission from an Amazon Web Servicesservice or another - * Amazon Web Services account. You can get the ID of the statement from the output - * of GetPolicy.

See Also:

Revokes function-use permission from an Amazon Web Services service or + * another Amazon Web Services account. You can get the ID of the statement from + * the output of GetPolicy.

See Also:

AWS * API Reference

*/ @@ -2339,8 +2176,8 @@ namespace Lambda * function and are locked when you publish a version. You can't modify the * configuration of a published version, only the unpublished version.

To * configure function concurrency, use PutFunctionConcurrency. To grant - * invoke permissions to an Amazon Web Services account or Amazon Web - * Servicesservice, use AddPermission.

See Also:

AddPermission.

See Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/LambdaErrors.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/LambdaErrors.h index 61e40f17468..2558fd4933d 100644 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/LambdaErrors.h +++ b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/LambdaErrors.h @@ -71,7 +71,6 @@ enum class LambdaErrors POLICY_LENGTH_EXCEEDED, PRECONDITION_FAILED, PROVISIONED_CONCURRENCY_CONFIG_NOT_FOUND, - PUBLIC_POLICY, RECURSIVE_INVOCATION, REQUEST_TOO_LARGE, RESOURCE_CONFLICT, diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/LambdaServiceClientModel.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/LambdaServiceClientModel.h index 69890da18bc..7599216384e 100644 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/LambdaServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/LambdaServiceClientModel.h @@ -43,8 +43,6 @@ #include #include #include -#include -#include #include #include #include @@ -66,8 +64,6 @@ #include #include #include -#include -#include #include #include #include @@ -139,7 +135,6 @@ namespace Aws class DeleteFunctionUrlConfigRequest; class DeleteLayerVersionRequest; class DeleteProvisionedConcurrencyConfigRequest; - class DeleteResourcePolicyRequest; class GetAccountSettingsRequest; class GetAliasRequest; class GetCodeSigningConfigRequest; @@ -156,8 +151,6 @@ namespace Aws class GetLayerVersionPolicyRequest; class GetPolicyRequest; class GetProvisionedConcurrencyConfigRequest; - class GetPublicAccessBlockConfigRequest; - class GetResourcePolicyRequest; class GetRuntimeManagementConfigRequest; class InvokeRequest; class InvokeWithResponseStreamRequest; @@ -180,8 +173,6 @@ namespace Aws class PutFunctionEventInvokeConfigRequest; class PutFunctionRecursionConfigRequest; class PutProvisionedConcurrencyConfigRequest; - class PutPublicAccessBlockConfigRequest; - class PutResourcePolicyRequest; class PutRuntimeManagementConfigRequest; class RemoveLayerVersionPermissionRequest; class RemovePermissionRequest; @@ -214,7 +205,6 @@ namespace Aws typedef Aws::Utils::Outcome DeleteFunctionUrlConfigOutcome; typedef Aws::Utils::Outcome DeleteLayerVersionOutcome; typedef Aws::Utils::Outcome DeleteProvisionedConcurrencyConfigOutcome; - typedef Aws::Utils::Outcome DeleteResourcePolicyOutcome; typedef Aws::Utils::Outcome GetAccountSettingsOutcome; typedef Aws::Utils::Outcome GetAliasOutcome; typedef Aws::Utils::Outcome GetCodeSigningConfigOutcome; @@ -231,8 +221,6 @@ namespace Aws typedef Aws::Utils::Outcome GetLayerVersionPolicyOutcome; typedef Aws::Utils::Outcome GetPolicyOutcome; typedef Aws::Utils::Outcome GetProvisionedConcurrencyConfigOutcome; - typedef Aws::Utils::Outcome GetPublicAccessBlockConfigOutcome; - typedef Aws::Utils::Outcome GetResourcePolicyOutcome; typedef Aws::Utils::Outcome GetRuntimeManagementConfigOutcome; typedef Aws::Utils::Outcome InvokeOutcome; typedef Aws::Utils::Outcome InvokeWithResponseStreamOutcome; @@ -255,8 +243,6 @@ namespace Aws typedef Aws::Utils::Outcome PutFunctionEventInvokeConfigOutcome; typedef Aws::Utils::Outcome PutFunctionRecursionConfigOutcome; typedef Aws::Utils::Outcome PutProvisionedConcurrencyConfigOutcome; - typedef Aws::Utils::Outcome PutPublicAccessBlockConfigOutcome; - typedef Aws::Utils::Outcome PutResourcePolicyOutcome; typedef Aws::Utils::Outcome PutRuntimeManagementConfigOutcome; typedef Aws::Utils::Outcome RemoveLayerVersionPermissionOutcome; typedef Aws::Utils::Outcome RemovePermissionOutcome; @@ -289,7 +275,6 @@ namespace Aws typedef std::future DeleteFunctionUrlConfigOutcomeCallable; typedef std::future DeleteLayerVersionOutcomeCallable; typedef std::future DeleteProvisionedConcurrencyConfigOutcomeCallable; - typedef std::future DeleteResourcePolicyOutcomeCallable; typedef std::future GetAccountSettingsOutcomeCallable; typedef std::future GetAliasOutcomeCallable; typedef std::future GetCodeSigningConfigOutcomeCallable; @@ -306,8 +291,6 @@ namespace Aws typedef std::future GetLayerVersionPolicyOutcomeCallable; typedef std::future GetPolicyOutcomeCallable; typedef std::future GetProvisionedConcurrencyConfigOutcomeCallable; - typedef std::future GetPublicAccessBlockConfigOutcomeCallable; - typedef std::future GetResourcePolicyOutcomeCallable; typedef std::future GetRuntimeManagementConfigOutcomeCallable; typedef std::future InvokeOutcomeCallable; typedef std::future InvokeWithResponseStreamOutcomeCallable; @@ -330,8 +313,6 @@ namespace Aws typedef std::future PutFunctionEventInvokeConfigOutcomeCallable; typedef std::future PutFunctionRecursionConfigOutcomeCallable; typedef std::future PutProvisionedConcurrencyConfigOutcomeCallable; - typedef std::future PutPublicAccessBlockConfigOutcomeCallable; - typedef std::future PutResourcePolicyOutcomeCallable; typedef std::future PutRuntimeManagementConfigOutcomeCallable; typedef std::future RemoveLayerVersionPermissionOutcomeCallable; typedef std::future RemovePermissionOutcomeCallable; @@ -367,7 +348,6 @@ namespace Aws typedef std::function&) > DeleteFunctionUrlConfigResponseReceivedHandler; typedef std::function&) > DeleteLayerVersionResponseReceivedHandler; typedef std::function&) > DeleteProvisionedConcurrencyConfigResponseReceivedHandler; - typedef std::function&) > DeleteResourcePolicyResponseReceivedHandler; typedef std::function&) > GetAccountSettingsResponseReceivedHandler; typedef std::function&) > GetAliasResponseReceivedHandler; typedef std::function&) > GetCodeSigningConfigResponseReceivedHandler; @@ -384,8 +364,6 @@ namespace Aws typedef std::function&) > GetLayerVersionPolicyResponseReceivedHandler; typedef std::function&) > GetPolicyResponseReceivedHandler; typedef std::function&) > GetProvisionedConcurrencyConfigResponseReceivedHandler; - typedef std::function&) > GetPublicAccessBlockConfigResponseReceivedHandler; - typedef std::function&) > GetResourcePolicyResponseReceivedHandler; typedef std::function&) > GetRuntimeManagementConfigResponseReceivedHandler; typedef std::function&) > InvokeResponseReceivedHandler; typedef std::function&) > InvokeWithResponseStreamResponseReceivedHandler; @@ -408,8 +386,6 @@ namespace Aws typedef std::function&) > PutFunctionEventInvokeConfigResponseReceivedHandler; typedef std::function&) > PutFunctionRecursionConfigResponseReceivedHandler; typedef std::function&) > PutProvisionedConcurrencyConfigResponseReceivedHandler; - typedef std::function&) > PutPublicAccessBlockConfigResponseReceivedHandler; - typedef std::function&) > PutResourcePolicyResponseReceivedHandler; typedef std::function&) > PutRuntimeManagementConfigResponseReceivedHandler; typedef std::function&) > RemoveLayerVersionPermissionResponseReceivedHandler; typedef std::function&) > RemovePermissionResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/AddPermissionRequest.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/AddPermissionRequest.h index 1fa21053dcf..2ca0767ed12 100644 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/AddPermissionRequest.h +++ b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/AddPermissionRequest.h @@ -94,8 +94,8 @@ namespace Model ///@{ /** - *

The Amazon Web Servicesservice, Amazon Web Services account, IAM user, or IAM - * role that invokes the function. If you specify a service, use + *

The Amazon Web Services service, Amazon Web Services account, IAM user, or + * IAM role that invokes the function. If you specify a service, use * SourceArn or SourceAccount to limit who can invoke the * function through that service.

*/ @@ -111,7 +111,7 @@ namespace Model ///@{ /** - *

For Amazon Web Servicesservices, the ARN of the Amazon Web Services resource + *

For Amazon Web Services services, the ARN of the Amazon Web Services resource * that invokes the function. For example, an Amazon S3 bucket or Amazon SNS * topic.

Note that Lambda configures the comparison using the * StringLike operator.

@@ -128,7 +128,7 @@ namespace Model ///@{ /** - *

For Amazon Web Servicesservice, the ID of the Amazon Web Services account + *

For Amazon Web Services service, the ID of the Amazon Web Services account * that owns the resource. Use this together with SourceArn to ensure * that the specified account owns the resource. It is possible for an Amazon S3 * bucket to be deleted by its owner and recreated by another account.

diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/DeleteResourcePolicyRequest.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/DeleteResourcePolicyRequest.h deleted file mode 100644 index 6d81e8d781b..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/DeleteResourcePolicyRequest.h +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include - -namespace Aws -{ -namespace Http -{ - class URI; -} //namespace Http -namespace Lambda -{ -namespace Model -{ - - /** - */ - class DeleteResourcePolicyRequest : public LambdaRequest - { - public: - AWS_LAMBDA_API DeleteResourcePolicyRequest(); - - // Service request name is the Operation name which will send this request out, - // each operation should has unique request name, so that we can get operation's name from this request. - // Note: this is not true for response, multiple operations may have the same response name, - // so we can not get operation's name from response. - inline virtual const char* GetServiceRequestName() const override { return "DeleteResourcePolicy"; } - - AWS_LAMBDA_API Aws::String SerializePayload() const override; - - AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; - - - ///@{ - /** - *

The Amazon Resource Name (ARN) of the function you want to delete the policy - * from. You can use either a qualified or an unqualified ARN, but the value you - * specify must be a complete ARN and wildcard characters are not accepted.

- */ - inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } - inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } - inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } - inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } - inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } - inline DeleteResourcePolicyRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} - inline DeleteResourcePolicyRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} - inline DeleteResourcePolicyRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} - ///@} - - ///@{ - /** - *

Delete the existing policy only if its revision ID matches the string you - * specify. To find the revision ID of the policy currently attached to your - * function, use the GetResourcePolicy action.

- */ - inline const Aws::String& GetRevisionId() const{ return m_revisionId; } - inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; } - inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; } - inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); } - inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); } - inline DeleteResourcePolicyRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} - inline DeleteResourcePolicyRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} - inline DeleteResourcePolicyRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} - ///@} - private: - - Aws::String m_resourceArn; - bool m_resourceArnHasBeenSet = false; - - Aws::String m_revisionId; - bool m_revisionIdHasBeenSet = false; - }; - -} // namespace Model -} // namespace Lambda -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/GetPublicAccessBlockConfigRequest.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/GetPublicAccessBlockConfigRequest.h deleted file mode 100644 index 684229dd43f..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/GetPublicAccessBlockConfigRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include - -namespace Aws -{ -namespace Lambda -{ -namespace Model -{ - - /** - */ - class GetPublicAccessBlockConfigRequest : public LambdaRequest - { - public: - AWS_LAMBDA_API GetPublicAccessBlockConfigRequest(); - - // Service request name is the Operation name which will send this request out, - // each operation should has unique request name, so that we can get operation's name from this request. - // Note: this is not true for response, multiple operations may have the same response name, - // so we can not get operation's name from response. - inline virtual const char* GetServiceRequestName() const override { return "GetPublicAccessBlockConfig"; } - - AWS_LAMBDA_API Aws::String SerializePayload() const override; - - - ///@{ - /** - *

The Amazon Resource Name (ARN) of the function you want to retrieve - * public-access settings for.

- */ - inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } - inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } - inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } - inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } - inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } - inline GetPublicAccessBlockConfigRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} - inline GetPublicAccessBlockConfigRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} - inline GetPublicAccessBlockConfigRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} - ///@} - private: - - Aws::String m_resourceArn; - bool m_resourceArnHasBeenSet = false; - }; - -} // namespace Model -} // namespace Lambda -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/GetPublicAccessBlockConfigResult.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/GetPublicAccessBlockConfigResult.h deleted file mode 100644 index c88f4c91f51..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/GetPublicAccessBlockConfigResult.h +++ /dev/null @@ -1,66 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include - -namespace Aws -{ -template -class AmazonWebServiceResult; - -namespace Utils -{ -namespace Json -{ - class JsonValue; -} // namespace Json -} // namespace Utils -namespace Lambda -{ -namespace Model -{ - class GetPublicAccessBlockConfigResult - { - public: - AWS_LAMBDA_API GetPublicAccessBlockConfigResult(); - AWS_LAMBDA_API GetPublicAccessBlockConfigResult(const Aws::AmazonWebServiceResult& result); - AWS_LAMBDA_API GetPublicAccessBlockConfigResult& operator=(const Aws::AmazonWebServiceResult& result); - - - ///@{ - /** - *

The public-access settings configured for the function you specified

- */ - inline const PublicAccessBlockConfig& GetPublicAccessBlockConfig() const{ return m_publicAccessBlockConfig; } - inline void SetPublicAccessBlockConfig(const PublicAccessBlockConfig& value) { m_publicAccessBlockConfig = value; } - inline void SetPublicAccessBlockConfig(PublicAccessBlockConfig&& value) { m_publicAccessBlockConfig = std::move(value); } - inline GetPublicAccessBlockConfigResult& WithPublicAccessBlockConfig(const PublicAccessBlockConfig& value) { SetPublicAccessBlockConfig(value); return *this;} - inline GetPublicAccessBlockConfigResult& WithPublicAccessBlockConfig(PublicAccessBlockConfig&& value) { SetPublicAccessBlockConfig(std::move(value)); return *this;} - ///@} - - ///@{ - - inline const Aws::String& GetRequestId() const{ return m_requestId; } - inline void SetRequestId(const Aws::String& value) { m_requestId = value; } - inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } - inline void SetRequestId(const char* value) { m_requestId.assign(value); } - inline GetPublicAccessBlockConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - inline GetPublicAccessBlockConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - inline GetPublicAccessBlockConfigResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - ///@} - private: - - PublicAccessBlockConfig m_publicAccessBlockConfig; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace Lambda -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/GetResourcePolicyRequest.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/GetResourcePolicyRequest.h deleted file mode 100644 index c597b6e7c72..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/GetResourcePolicyRequest.h +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include - -namespace Aws -{ -namespace Lambda -{ -namespace Model -{ - - /** - */ - class GetResourcePolicyRequest : public LambdaRequest - { - public: - AWS_LAMBDA_API GetResourcePolicyRequest(); - - // Service request name is the Operation name which will send this request out, - // each operation should has unique request name, so that we can get operation's name from this request. - // Note: this is not true for response, multiple operations may have the same response name, - // so we can not get operation's name from response. - inline virtual const char* GetServiceRequestName() const override { return "GetResourcePolicy"; } - - AWS_LAMBDA_API Aws::String SerializePayload() const override; - - - ///@{ - /** - *

The Amazon Resource Name (ARN) of the function you want to retrieve the - * policy for. You can use either a qualified or an unqualified ARN, but the value - * you specify must be a complete ARN and wildcard characters are not accepted.

- */ - inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } - inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } - inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } - inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } - inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } - inline GetResourcePolicyRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} - inline GetResourcePolicyRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} - inline GetResourcePolicyRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} - ///@} - private: - - Aws::String m_resourceArn; - bool m_resourceArnHasBeenSet = false; - }; - -} // namespace Model -} // namespace Lambda -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/GetResourcePolicyResult.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/GetResourcePolicyResult.h deleted file mode 100644 index fd234363a4e..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/GetResourcePolicyResult.h +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include - -namespace Aws -{ -template -class AmazonWebServiceResult; - -namespace Utils -{ -namespace Json -{ - class JsonValue; -} // namespace Json -} // namespace Utils -namespace Lambda -{ -namespace Model -{ - class GetResourcePolicyResult - { - public: - AWS_LAMBDA_API GetResourcePolicyResult(); - AWS_LAMBDA_API GetResourcePolicyResult(const Aws::AmazonWebServiceResult& result); - AWS_LAMBDA_API GetResourcePolicyResult& operator=(const Aws::AmazonWebServiceResult& result); - - - ///@{ - /** - *

The resource-based policy attached to the function you specified.

- */ - inline const Aws::String& GetPolicy() const{ return m_policy; } - inline void SetPolicy(const Aws::String& value) { m_policy = value; } - inline void SetPolicy(Aws::String&& value) { m_policy = std::move(value); } - inline void SetPolicy(const char* value) { m_policy.assign(value); } - inline GetResourcePolicyResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} - inline GetResourcePolicyResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;} - inline GetResourcePolicyResult& WithPolicy(const char* value) { SetPolicy(value); return *this;} - ///@} - - ///@{ - /** - *

The revision ID of the policy.

- */ - inline const Aws::String& GetRevisionId() const{ return m_revisionId; } - inline void SetRevisionId(const Aws::String& value) { m_revisionId = value; } - inline void SetRevisionId(Aws::String&& value) { m_revisionId = std::move(value); } - inline void SetRevisionId(const char* value) { m_revisionId.assign(value); } - inline GetResourcePolicyResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} - inline GetResourcePolicyResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} - inline GetResourcePolicyResult& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} - ///@} - - ///@{ - - inline const Aws::String& GetRequestId() const{ return m_requestId; } - inline void SetRequestId(const Aws::String& value) { m_requestId = value; } - inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } - inline void SetRequestId(const char* value) { m_requestId.assign(value); } - inline GetResourcePolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - inline GetResourcePolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - inline GetResourcePolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - ///@} - private: - - Aws::String m_policy; - - Aws::String m_revisionId; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace Lambda -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/PublicAccessBlockConfig.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/PublicAccessBlockConfig.h deleted file mode 100644 index da0857f3961..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/PublicAccessBlockConfig.h +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include - -namespace Aws -{ -namespace Utils -{ -namespace Json -{ - class JsonValue; - class JsonView; -} // namespace Json -} // namespace Utils -namespace Lambda -{ -namespace Model -{ - - /** - *

An object that defines the public-access settings for a - * function.

See Also:

AWS - * API Reference

- */ - class PublicAccessBlockConfig - { - public: - AWS_LAMBDA_API PublicAccessBlockConfig(); - AWS_LAMBDA_API PublicAccessBlockConfig(Aws::Utils::Json::JsonView jsonValue); - AWS_LAMBDA_API PublicAccessBlockConfig& operator=(Aws::Utils::Json::JsonView jsonValue); - AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const; - - - ///@{ - /** - *

To block the creation of resource-based policies that would grant public - * access to your function, set BlockPublicPolicy to - * true. To allow the creation of resource-based policies that would - * grant public access to your function, set BlockPublicPolicy to - * false.

- */ - inline bool GetBlockPublicPolicy() const{ return m_blockPublicPolicy; } - inline bool BlockPublicPolicyHasBeenSet() const { return m_blockPublicPolicyHasBeenSet; } - inline void SetBlockPublicPolicy(bool value) { m_blockPublicPolicyHasBeenSet = true; m_blockPublicPolicy = value; } - inline PublicAccessBlockConfig& WithBlockPublicPolicy(bool value) { SetBlockPublicPolicy(value); return *this;} - ///@} - - ///@{ - /** - *

To block public access to your function, even if its resource-based policy - * allows it, set RestrictPublicResource to true. To - * allow public access to a function with a resource-based policy that permits it, - * set RestrictPublicResource to false.

- */ - inline bool GetRestrictPublicResource() const{ return m_restrictPublicResource; } - inline bool RestrictPublicResourceHasBeenSet() const { return m_restrictPublicResourceHasBeenSet; } - inline void SetRestrictPublicResource(bool value) { m_restrictPublicResourceHasBeenSet = true; m_restrictPublicResource = value; } - inline PublicAccessBlockConfig& WithRestrictPublicResource(bool value) { SetRestrictPublicResource(value); return *this;} - ///@} - private: - - bool m_blockPublicPolicy; - bool m_blockPublicPolicyHasBeenSet = false; - - bool m_restrictPublicResource; - bool m_restrictPublicResourceHasBeenSet = false; - }; - -} // namespace Model -} // namespace Lambda -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/PublicPolicyException.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/PublicPolicyException.h deleted file mode 100644 index b22e82b4cb9..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/PublicPolicyException.h +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include - -namespace Aws -{ -namespace Utils -{ -namespace Json -{ - class JsonValue; - class JsonView; -} // namespace Json -} // namespace Utils -namespace Lambda -{ -namespace Model -{ - - /** - *

Lambda prevented your policy from being created because it would grant public - * access to your function. If you intended to create a public policy, use the - * PutPublicAccessBlockConfig API action to configure your function's - * public-access settings to allow public policies.

See Also:

AWS - * API Reference

- */ - class PublicPolicyException - { - public: - AWS_LAMBDA_API PublicPolicyException(); - AWS_LAMBDA_API PublicPolicyException(Aws::Utils::Json::JsonView jsonValue); - AWS_LAMBDA_API PublicPolicyException& operator=(Aws::Utils::Json::JsonView jsonValue); - AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const; - - - ///@{ - /** - *

The exception type.

- */ - inline const Aws::String& GetType() const{ return m_type; } - inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } - inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } - inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } - inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } - inline PublicPolicyException& WithType(const Aws::String& value) { SetType(value); return *this;} - inline PublicPolicyException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} - inline PublicPolicyException& WithType(const char* value) { SetType(value); return *this;} - ///@} - - ///@{ - - inline const Aws::String& GetMessage() const{ return m_message; } - inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } - inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } - inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } - inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } - inline PublicPolicyException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} - inline PublicPolicyException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} - inline PublicPolicyException& WithMessage(const char* value) { SetMessage(value); return *this;} - ///@} - private: - - Aws::String m_type; - bool m_typeHasBeenSet = false; - - Aws::String m_message; - bool m_messageHasBeenSet = false; - }; - -} // namespace Model -} // namespace Lambda -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/PutPublicAccessBlockConfigRequest.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/PutPublicAccessBlockConfigRequest.h deleted file mode 100644 index 8662f8ed661..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/PutPublicAccessBlockConfigRequest.h +++ /dev/null @@ -1,85 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include -#include - -namespace Aws -{ -namespace Lambda -{ -namespace Model -{ - - /** - */ - class PutPublicAccessBlockConfigRequest : public LambdaRequest - { - public: - AWS_LAMBDA_API PutPublicAccessBlockConfigRequest(); - - // Service request name is the Operation name which will send this request out, - // each operation should has unique request name, so that we can get operation's name from this request. - // Note: this is not true for response, multiple operations may have the same response name, - // so we can not get operation's name from response. - inline virtual const char* GetServiceRequestName() const override { return "PutPublicAccessBlockConfig"; } - - AWS_LAMBDA_API Aws::String SerializePayload() const override; - - - ///@{ - /** - *

The Amazon Resource Name (ARN) of the function you want to configure - * public-access settings for. Public-access settings are applied at the function - * level, so you can't apply different settings to function versions or - * aliases.

- */ - inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } - inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } - inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } - inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } - inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } - inline PutPublicAccessBlockConfigRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} - inline PutPublicAccessBlockConfigRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} - inline PutPublicAccessBlockConfigRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} - ///@} - - ///@{ - /** - *

An object defining the public-access settings you want to apply.

To - * block the creation of resource-based policies that would grant public access to - * your function, set BlockPublicPolicy to true. To allow - * the creation of resource-based policies that would grant public access to your - * function, set BlockPublicPolicy to false.

To - * block public access to your function, even if its resource-based policy allows - * it, set RestrictPublicResource to true. To allow - * public access to a function with a resource-based policy that permits it, set - * RestrictPublicResource to false.

The default - * setting for both BlockPublicPolicy and - * RestrictPublicResource is true.

- */ - inline const PublicAccessBlockConfig& GetPublicAccessBlockConfig() const{ return m_publicAccessBlockConfig; } - inline bool PublicAccessBlockConfigHasBeenSet() const { return m_publicAccessBlockConfigHasBeenSet; } - inline void SetPublicAccessBlockConfig(const PublicAccessBlockConfig& value) { m_publicAccessBlockConfigHasBeenSet = true; m_publicAccessBlockConfig = value; } - inline void SetPublicAccessBlockConfig(PublicAccessBlockConfig&& value) { m_publicAccessBlockConfigHasBeenSet = true; m_publicAccessBlockConfig = std::move(value); } - inline PutPublicAccessBlockConfigRequest& WithPublicAccessBlockConfig(const PublicAccessBlockConfig& value) { SetPublicAccessBlockConfig(value); return *this;} - inline PutPublicAccessBlockConfigRequest& WithPublicAccessBlockConfig(PublicAccessBlockConfig&& value) { SetPublicAccessBlockConfig(std::move(value)); return *this;} - ///@} - private: - - Aws::String m_resourceArn; - bool m_resourceArnHasBeenSet = false; - - PublicAccessBlockConfig m_publicAccessBlockConfig; - bool m_publicAccessBlockConfigHasBeenSet = false; - }; - -} // namespace Model -} // namespace Lambda -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/PutPublicAccessBlockConfigResult.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/PutPublicAccessBlockConfigResult.h deleted file mode 100644 index ff030b54a2b..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/PutPublicAccessBlockConfigResult.h +++ /dev/null @@ -1,66 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include - -namespace Aws -{ -template -class AmazonWebServiceResult; - -namespace Utils -{ -namespace Json -{ - class JsonValue; -} // namespace Json -} // namespace Utils -namespace Lambda -{ -namespace Model -{ - class PutPublicAccessBlockConfigResult - { - public: - AWS_LAMBDA_API PutPublicAccessBlockConfigResult(); - AWS_LAMBDA_API PutPublicAccessBlockConfigResult(const Aws::AmazonWebServiceResult& result); - AWS_LAMBDA_API PutPublicAccessBlockConfigResult& operator=(const Aws::AmazonWebServiceResult& result); - - - ///@{ - /** - *

The public-access settings Lambda applied to your function.

- */ - inline const PublicAccessBlockConfig& GetPublicAccessBlockConfig() const{ return m_publicAccessBlockConfig; } - inline void SetPublicAccessBlockConfig(const PublicAccessBlockConfig& value) { m_publicAccessBlockConfig = value; } - inline void SetPublicAccessBlockConfig(PublicAccessBlockConfig&& value) { m_publicAccessBlockConfig = std::move(value); } - inline PutPublicAccessBlockConfigResult& WithPublicAccessBlockConfig(const PublicAccessBlockConfig& value) { SetPublicAccessBlockConfig(value); return *this;} - inline PutPublicAccessBlockConfigResult& WithPublicAccessBlockConfig(PublicAccessBlockConfig&& value) { SetPublicAccessBlockConfig(std::move(value)); return *this;} - ///@} - - ///@{ - - inline const Aws::String& GetRequestId() const{ return m_requestId; } - inline void SetRequestId(const Aws::String& value) { m_requestId = value; } - inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } - inline void SetRequestId(const char* value) { m_requestId.assign(value); } - inline PutPublicAccessBlockConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - inline PutPublicAccessBlockConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - inline PutPublicAccessBlockConfigResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - ///@} - private: - - PublicAccessBlockConfig m_publicAccessBlockConfig; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace Lambda -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/PutResourcePolicyRequest.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/PutResourcePolicyRequest.h deleted file mode 100644 index 13fd8450763..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/PutResourcePolicyRequest.h +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include - -namespace Aws -{ -namespace Lambda -{ -namespace Model -{ - - /** - */ - class PutResourcePolicyRequest : public LambdaRequest - { - public: - AWS_LAMBDA_API PutResourcePolicyRequest(); - - // Service request name is the Operation name which will send this request out, - // each operation should has unique request name, so that we can get operation's name from this request. - // Note: this is not true for response, multiple operations may have the same response name, - // so we can not get operation's name from response. - inline virtual const char* GetServiceRequestName() const override { return "PutResourcePolicy"; } - - AWS_LAMBDA_API Aws::String SerializePayload() const override; - - - ///@{ - /** - *

The Amazon Resource Name (ARN) of the function you want to add the policy to. - * You can use either a qualified or an unqualified ARN, but the value you specify - * must be a complete ARN and wildcard characters are not accepted.

- */ - inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } - inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } - inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } - inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } - inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } - inline PutResourcePolicyRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} - inline PutResourcePolicyRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} - inline PutResourcePolicyRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} - ///@} - - ///@{ - /** - *

The JSON resource-based policy you want to add to your function.

To - * learn more about creating resource-based policies for controlling access to - * Lambda, see Working with resource-based - * IAM policies in Lambda in the Lambda Developer Guide.

- */ - inline const Aws::String& GetPolicy() const{ return m_policy; } - inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; } - inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; } - inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); } - inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); } - inline PutResourcePolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} - inline PutResourcePolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;} - inline PutResourcePolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;} - ///@} - - ///@{ - /** - *

Replace the existing policy only if its revision ID matches the string you - * specify. To find the revision ID of the policy currently attached to your - * function, use the GetResourcePolicy action.

- */ - inline const Aws::String& GetRevisionId() const{ return m_revisionId; } - inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; } - inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; } - inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); } - inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); } - inline PutResourcePolicyRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} - inline PutResourcePolicyRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} - inline PutResourcePolicyRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} - ///@} - private: - - Aws::String m_resourceArn; - bool m_resourceArnHasBeenSet = false; - - Aws::String m_policy; - bool m_policyHasBeenSet = false; - - Aws::String m_revisionId; - bool m_revisionIdHasBeenSet = false; - }; - -} // namespace Model -} // namespace Lambda -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/PutResourcePolicyResult.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/PutResourcePolicyResult.h deleted file mode 100644 index c7a5b7fb5b1..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/PutResourcePolicyResult.h +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include - -namespace Aws -{ -template -class AmazonWebServiceResult; - -namespace Utils -{ -namespace Json -{ - class JsonValue; -} // namespace Json -} // namespace Utils -namespace Lambda -{ -namespace Model -{ - class PutResourcePolicyResult - { - public: - AWS_LAMBDA_API PutResourcePolicyResult(); - AWS_LAMBDA_API PutResourcePolicyResult(const Aws::AmazonWebServiceResult& result); - AWS_LAMBDA_API PutResourcePolicyResult& operator=(const Aws::AmazonWebServiceResult& result); - - - ///@{ - /** - *

The policy Lambda added to your function.

- */ - inline const Aws::String& GetPolicy() const{ return m_policy; } - inline void SetPolicy(const Aws::String& value) { m_policy = value; } - inline void SetPolicy(Aws::String&& value) { m_policy = std::move(value); } - inline void SetPolicy(const char* value) { m_policy.assign(value); } - inline PutResourcePolicyResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} - inline PutResourcePolicyResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;} - inline PutResourcePolicyResult& WithPolicy(const char* value) { SetPolicy(value); return *this;} - ///@} - - ///@{ - /** - *

The revision ID of the policy Lambda added to your function.

- */ - inline const Aws::String& GetRevisionId() const{ return m_revisionId; } - inline void SetRevisionId(const Aws::String& value) { m_revisionId = value; } - inline void SetRevisionId(Aws::String&& value) { m_revisionId = std::move(value); } - inline void SetRevisionId(const char* value) { m_revisionId.assign(value); } - inline PutResourcePolicyResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} - inline PutResourcePolicyResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} - inline PutResourcePolicyResult& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} - ///@} - - ///@{ - - inline const Aws::String& GetRequestId() const{ return m_requestId; } - inline void SetRequestId(const Aws::String& value) { m_requestId = value; } - inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } - inline void SetRequestId(const char* value) { m_requestId.assign(value); } - inline PutResourcePolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - inline PutResourcePolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - inline PutResourcePolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - ///@} - private: - - Aws::String m_policy; - - Aws::String m_revisionId; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace Lambda -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lambda/source/LambdaClient.cpp b/generated/src/aws-cpp-sdk-lambda/source/LambdaClient.cpp index 9786180967c..4a1fb0d4660 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/LambdaClient.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/LambdaClient.cpp @@ -39,7 +39,6 @@ #include #include #include -#include #include #include #include @@ -56,8 +55,6 @@ #include #include #include -#include -#include #include #include #include @@ -80,8 +77,6 @@ #include #include #include -#include -#include #include #include #include @@ -815,39 +810,6 @@ DeleteProvisionedConcurrencyConfigOutcome LambdaClient::DeleteProvisionedConcurr {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteResourcePolicyOutcome LambdaClient::DeleteResourcePolicy(const DeleteResourcePolicyRequest& request) const -{ - AWS_OPERATION_GUARD(DeleteResourcePolicy); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ResourceArnHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DeleteResourcePolicy", "Required field: ResourceArn, is not set"); - return DeleteResourcePolicyOutcome(Aws::Client::AWSError(LambdaErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteResourcePolicy", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteResourcePolicyOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/2024-09-16/resource-policy/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetResourceArn()); - return DeleteResourcePolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - GetAccountSettingsOutcome LambdaClient::GetAccountSettings(const GetAccountSettingsRequest& request) const { AWS_OPERATION_GUARD(GetAccountSettings); @@ -1407,72 +1369,6 @@ GetProvisionedConcurrencyConfigOutcome LambdaClient::GetProvisionedConcurrencyCo {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -GetPublicAccessBlockConfigOutcome LambdaClient::GetPublicAccessBlockConfig(const GetPublicAccessBlockConfigRequest& request) const -{ - AWS_OPERATION_GUARD(GetPublicAccessBlockConfig); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetPublicAccessBlockConfig, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ResourceArnHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("GetPublicAccessBlockConfig", "Required field: ResourceArn, is not set"); - return GetPublicAccessBlockConfigOutcome(Aws::Client::AWSError(LambdaErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetPublicAccessBlockConfig, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetPublicAccessBlockConfig, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetPublicAccessBlockConfig", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetPublicAccessBlockConfigOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetPublicAccessBlockConfig, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/2024-09-16/public-access-block/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetResourceArn()); - return GetPublicAccessBlockConfigOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - -GetResourcePolicyOutcome LambdaClient::GetResourcePolicy(const GetResourcePolicyRequest& request) const -{ - AWS_OPERATION_GUARD(GetResourcePolicy); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ResourceArnHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("GetResourcePolicy", "Required field: ResourceArn, is not set"); - return GetResourcePolicyOutcome(Aws::Client::AWSError(LambdaErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetResourcePolicy", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetResourcePolicyOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/2024-09-16/resource-policy/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetResourceArn()); - return GetResourcePolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - GetRuntimeManagementConfigOutcome LambdaClient::GetRuntimeManagementConfig(const GetRuntimeManagementConfigRequest& request) const { AWS_OPERATION_GUARD(GetRuntimeManagementConfig); @@ -2203,72 +2099,6 @@ PutProvisionedConcurrencyConfigOutcome LambdaClient::PutProvisionedConcurrencyCo {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -PutPublicAccessBlockConfigOutcome LambdaClient::PutPublicAccessBlockConfig(const PutPublicAccessBlockConfigRequest& request) const -{ - AWS_OPERATION_GUARD(PutPublicAccessBlockConfig); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, PutPublicAccessBlockConfig, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ResourceArnHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("PutPublicAccessBlockConfig", "Required field: ResourceArn, is not set"); - return PutPublicAccessBlockConfigOutcome(Aws::Client::AWSError(LambdaErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, PutPublicAccessBlockConfig, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, PutPublicAccessBlockConfig, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".PutPublicAccessBlockConfig", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> PutPublicAccessBlockConfigOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, PutPublicAccessBlockConfig, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/2024-09-16/public-access-block/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetResourceArn()); - return PutPublicAccessBlockConfigOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - -PutResourcePolicyOutcome LambdaClient::PutResourcePolicy(const PutResourcePolicyRequest& request) const -{ - AWS_OPERATION_GUARD(PutResourcePolicy); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, PutResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ResourceArnHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("PutResourcePolicy", "Required field: ResourceArn, is not set"); - return PutResourcePolicyOutcome(Aws::Client::AWSError(LambdaErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, PutResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, PutResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".PutResourcePolicy", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> PutResourcePolicyOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, PutResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/2024-09-16/resource-policy/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetResourceArn()); - return PutResourcePolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - PutRuntimeManagementConfigOutcome LambdaClient::PutRuntimeManagementConfig(const PutRuntimeManagementConfigRequest& request) const { AWS_OPERATION_GUARD(PutRuntimeManagementConfig); diff --git a/generated/src/aws-cpp-sdk-lambda/source/LambdaErrors.cpp b/generated/src/aws-cpp-sdk-lambda/source/LambdaErrors.cpp index 6b2ae3ed934..bfcc290fc7f 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/LambdaErrors.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/LambdaErrors.cpp @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include @@ -85,12 +84,6 @@ template<> AWS_LAMBDA_API KMSInvalidStateException LambdaError::GetModeledError( return KMSInvalidStateException(this->GetJsonPayload().View()); } -template<> AWS_LAMBDA_API PublicPolicyException LambdaError::GetModeledError() -{ - assert(this->GetErrorType() == LambdaErrors::PUBLIC_POLICY); - return PublicPolicyException(this->GetJsonPayload().View()); -} - template<> AWS_LAMBDA_API RecursiveInvocationException LambdaError::GetModeledError() { assert(this->GetErrorType() == LambdaErrors::RECURSIVE_INVOCATION); @@ -296,7 +289,6 @@ static const int E_F_S_MOUNT_CONNECTIVITY_HASH = HashingUtils::HashString("EFSMo static const int RESOURCE_NOT_READY_HASH = HashingUtils::HashString("ResourceNotReadyException"); static const int PROVISIONED_CONCURRENCY_CONFIG_NOT_FOUND_HASH = HashingUtils::HashString("ProvisionedConcurrencyConfigNotFoundException"); static const int K_M_S_INVALID_STATE_HASH = HashingUtils::HashString("KMSInvalidStateException"); -static const int PUBLIC_POLICY_HASH = HashingUtils::HashString("PublicPolicyException"); static const int RECURSIVE_INVOCATION_HASH = HashingUtils::HashString("RecursiveInvocationException"); static const int POLICY_LENGTH_EXCEEDED_HASH = HashingUtils::HashString("PolicyLengthExceededException"); static const int K_M_S_NOT_FOUND_HASH = HashingUtils::HashString("KMSNotFoundException"); @@ -351,10 +343,6 @@ AWSError GetErrorForName(const char* errorName) { return AWSError(static_cast(LambdaErrors::K_M_S_INVALID_STATE), RetryableType::NOT_RETRYABLE); } - else if (hashCode == PUBLIC_POLICY_HASH) - { - return AWSError(static_cast(LambdaErrors::PUBLIC_POLICY), RetryableType::NOT_RETRYABLE); - } else if (hashCode == RECURSIVE_INVOCATION_HASH) { return AWSError(static_cast(LambdaErrors::RECURSIVE_INVOCATION), RetryableType::NOT_RETRYABLE); diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/DeleteResourcePolicyRequest.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/DeleteResourcePolicyRequest.cpp deleted file mode 100644 index 94eaccc80c3..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/source/model/DeleteResourcePolicyRequest.cpp +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include - -#include - -using namespace Aws::Lambda::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws::Http; - -DeleteResourcePolicyRequest::DeleteResourcePolicyRequest() : - m_resourceArnHasBeenSet(false), - m_revisionIdHasBeenSet(false) -{ -} - -Aws::String DeleteResourcePolicyRequest::SerializePayload() const -{ - return {}; -} - -void DeleteResourcePolicyRequest::AddQueryStringParameters(URI& uri) const -{ - Aws::StringStream ss; - if(m_revisionIdHasBeenSet) - { - ss << m_revisionId; - uri.AddQueryStringParameter("RevisionId", ss.str()); - ss.str(""); - } - -} - - - diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/GetPublicAccessBlockConfigRequest.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/GetPublicAccessBlockConfigRequest.cpp deleted file mode 100644 index 667b16c9a42..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/source/model/GetPublicAccessBlockConfigRequest.cpp +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include - -#include - -using namespace Aws::Lambda::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; - -GetPublicAccessBlockConfigRequest::GetPublicAccessBlockConfigRequest() : - m_resourceArnHasBeenSet(false) -{ -} - -Aws::String GetPublicAccessBlockConfigRequest::SerializePayload() const -{ - return {}; -} - - - - diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/GetPublicAccessBlockConfigResult.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/GetPublicAccessBlockConfigResult.cpp deleted file mode 100644 index 42dc3eed92f..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/source/model/GetPublicAccessBlockConfigResult.cpp +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include -#include -#include - -#include - -using namespace Aws::Lambda::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws; - -GetPublicAccessBlockConfigResult::GetPublicAccessBlockConfigResult() -{ -} - -GetPublicAccessBlockConfigResult::GetPublicAccessBlockConfigResult(const Aws::AmazonWebServiceResult& result) -{ - *this = result; -} - -GetPublicAccessBlockConfigResult& GetPublicAccessBlockConfigResult::operator =(const Aws::AmazonWebServiceResult& result) -{ - JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("PublicAccessBlockConfig")) - { - m_publicAccessBlockConfig = jsonValue.GetObject("PublicAccessBlockConfig"); - - } - - - const auto& headers = result.GetHeaderValueCollection(); - const auto& requestIdIter = headers.find("x-amzn-requestid"); - if(requestIdIter != headers.end()) - { - m_requestId = requestIdIter->second; - } - - - return *this; -} diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/GetResourcePolicyRequest.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/GetResourcePolicyRequest.cpp deleted file mode 100644 index 36dae19bcf2..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/source/model/GetResourcePolicyRequest.cpp +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include - -#include - -using namespace Aws::Lambda::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; - -GetResourcePolicyRequest::GetResourcePolicyRequest() : - m_resourceArnHasBeenSet(false) -{ -} - -Aws::String GetResourcePolicyRequest::SerializePayload() const -{ - return {}; -} - - - - diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/GetResourcePolicyResult.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/GetResourcePolicyResult.cpp deleted file mode 100644 index 829ded9aceb..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/source/model/GetResourcePolicyResult.cpp +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include -#include -#include - -#include - -using namespace Aws::Lambda::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws; - -GetResourcePolicyResult::GetResourcePolicyResult() -{ -} - -GetResourcePolicyResult::GetResourcePolicyResult(const Aws::AmazonWebServiceResult& result) -{ - *this = result; -} - -GetResourcePolicyResult& GetResourcePolicyResult::operator =(const Aws::AmazonWebServiceResult& result) -{ - JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("Policy")) - { - m_policy = jsonValue.GetString("Policy"); - - } - - if(jsonValue.ValueExists("RevisionId")) - { - m_revisionId = jsonValue.GetString("RevisionId"); - - } - - - const auto& headers = result.GetHeaderValueCollection(); - const auto& requestIdIter = headers.find("x-amzn-requestid"); - if(requestIdIter != headers.end()) - { - m_requestId = requestIdIter->second; - } - - - return *this; -} diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/PublicAccessBlockConfig.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/PublicAccessBlockConfig.cpp deleted file mode 100644 index d6d2813aa77..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/source/model/PublicAccessBlockConfig.cpp +++ /dev/null @@ -1,75 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include - -#include - -using namespace Aws::Utils::Json; -using namespace Aws::Utils; - -namespace Aws -{ -namespace Lambda -{ -namespace Model -{ - -PublicAccessBlockConfig::PublicAccessBlockConfig() : - m_blockPublicPolicy(false), - m_blockPublicPolicyHasBeenSet(false), - m_restrictPublicResource(false), - m_restrictPublicResourceHasBeenSet(false) -{ -} - -PublicAccessBlockConfig::PublicAccessBlockConfig(JsonView jsonValue) - : PublicAccessBlockConfig() -{ - *this = jsonValue; -} - -PublicAccessBlockConfig& PublicAccessBlockConfig::operator =(JsonView jsonValue) -{ - if(jsonValue.ValueExists("BlockPublicPolicy")) - { - m_blockPublicPolicy = jsonValue.GetBool("BlockPublicPolicy"); - - m_blockPublicPolicyHasBeenSet = true; - } - - if(jsonValue.ValueExists("RestrictPublicResource")) - { - m_restrictPublicResource = jsonValue.GetBool("RestrictPublicResource"); - - m_restrictPublicResourceHasBeenSet = true; - } - - return *this; -} - -JsonValue PublicAccessBlockConfig::Jsonize() const -{ - JsonValue payload; - - if(m_blockPublicPolicyHasBeenSet) - { - payload.WithBool("BlockPublicPolicy", m_blockPublicPolicy); - - } - - if(m_restrictPublicResourceHasBeenSet) - { - payload.WithBool("RestrictPublicResource", m_restrictPublicResource); - - } - - return payload; -} - -} // namespace Model -} // namespace Lambda -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/PublicPolicyException.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/PublicPolicyException.cpp deleted file mode 100644 index 25ad620238c..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/source/model/PublicPolicyException.cpp +++ /dev/null @@ -1,73 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include - -#include - -using namespace Aws::Utils::Json; -using namespace Aws::Utils; - -namespace Aws -{ -namespace Lambda -{ -namespace Model -{ - -PublicPolicyException::PublicPolicyException() : - m_typeHasBeenSet(false), - m_messageHasBeenSet(false) -{ -} - -PublicPolicyException::PublicPolicyException(JsonView jsonValue) - : PublicPolicyException() -{ - *this = jsonValue; -} - -PublicPolicyException& PublicPolicyException::operator =(JsonView jsonValue) -{ - if(jsonValue.ValueExists("Type")) - { - m_type = jsonValue.GetString("Type"); - - m_typeHasBeenSet = true; - } - - if(jsonValue.ValueExists("Message")) - { - m_message = jsonValue.GetString("Message"); - - m_messageHasBeenSet = true; - } - - return *this; -} - -JsonValue PublicPolicyException::Jsonize() const -{ - JsonValue payload; - - if(m_typeHasBeenSet) - { - payload.WithString("Type", m_type); - - } - - if(m_messageHasBeenSet) - { - payload.WithString("Message", m_message); - - } - - return payload; -} - -} // namespace Model -} // namespace Lambda -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/PutPublicAccessBlockConfigRequest.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/PutPublicAccessBlockConfigRequest.cpp deleted file mode 100644 index 27b404c331e..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/source/model/PutPublicAccessBlockConfigRequest.cpp +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include - -#include - -using namespace Aws::Lambda::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; - -PutPublicAccessBlockConfigRequest::PutPublicAccessBlockConfigRequest() : - m_resourceArnHasBeenSet(false), - m_publicAccessBlockConfigHasBeenSet(false) -{ -} - -Aws::String PutPublicAccessBlockConfigRequest::SerializePayload() const -{ - JsonValue payload; - - if(m_publicAccessBlockConfigHasBeenSet) - { - payload.WithObject("PublicAccessBlockConfig", m_publicAccessBlockConfig.Jsonize()); - - } - - return payload.View().WriteReadable(); -} - - - - diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/PutPublicAccessBlockConfigResult.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/PutPublicAccessBlockConfigResult.cpp deleted file mode 100644 index a50969c9304..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/source/model/PutPublicAccessBlockConfigResult.cpp +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include -#include -#include - -#include - -using namespace Aws::Lambda::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws; - -PutPublicAccessBlockConfigResult::PutPublicAccessBlockConfigResult() -{ -} - -PutPublicAccessBlockConfigResult::PutPublicAccessBlockConfigResult(const Aws::AmazonWebServiceResult& result) -{ - *this = result; -} - -PutPublicAccessBlockConfigResult& PutPublicAccessBlockConfigResult::operator =(const Aws::AmazonWebServiceResult& result) -{ - JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("PublicAccessBlockConfig")) - { - m_publicAccessBlockConfig = jsonValue.GetObject("PublicAccessBlockConfig"); - - } - - - const auto& headers = result.GetHeaderValueCollection(); - const auto& requestIdIter = headers.find("x-amzn-requestid"); - if(requestIdIter != headers.end()) - { - m_requestId = requestIdIter->second; - } - - - return *this; -} diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/PutResourcePolicyRequest.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/PutResourcePolicyRequest.cpp deleted file mode 100644 index 34befbc7684..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/source/model/PutResourcePolicyRequest.cpp +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include - -#include - -using namespace Aws::Lambda::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; - -PutResourcePolicyRequest::PutResourcePolicyRequest() : - m_resourceArnHasBeenSet(false), - m_policyHasBeenSet(false), - m_revisionIdHasBeenSet(false) -{ -} - -Aws::String PutResourcePolicyRequest::SerializePayload() const -{ - JsonValue payload; - - if(m_policyHasBeenSet) - { - payload.WithString("Policy", m_policy); - - } - - if(m_revisionIdHasBeenSet) - { - payload.WithString("RevisionId", m_revisionId); - - } - - return payload.View().WriteReadable(); -} - - - - diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/PutResourcePolicyResult.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/PutResourcePolicyResult.cpp deleted file mode 100644 index ecba3ff9d79..00000000000 --- a/generated/src/aws-cpp-sdk-lambda/source/model/PutResourcePolicyResult.cpp +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include -#include -#include - -#include - -using namespace Aws::Lambda::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws; - -PutResourcePolicyResult::PutResourcePolicyResult() -{ -} - -PutResourcePolicyResult::PutResourcePolicyResult(const Aws::AmazonWebServiceResult& result) -{ - *this = result; -} - -PutResourcePolicyResult& PutResourcePolicyResult::operator =(const Aws::AmazonWebServiceResult& result) -{ - JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("Policy")) - { - m_policy = jsonValue.GetString("Policy"); - - } - - if(jsonValue.ValueExists("RevisionId")) - { - m_revisionId = jsonValue.GetString("RevisionId"); - - } - - - const auto& headers = result.GetHeaderValueCollection(); - const auto& requestIdIter = headers.find("x-amzn-requestid"); - if(requestIdIter != headers.end()) - { - m_requestId = requestIdIter->second; - } - - - return *this; -} diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/OrganizationsClient.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/OrganizationsClient.h index c7971869144..d6582ce871d 100644 --- a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/OrganizationsClient.h +++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/OrganizationsClient.h @@ -175,13 +175,15 @@ namespace Organizations * account. How the policy affects accounts depends on the type of policy. Refer to * the Organizations User Guide for information about each policy type:

*

This operation can be called only from the organization's * management account or by a member account that is a delegated administrator for * an Amazon Web Services service.

See Also:

The type of policy to create. You can specify one of the following * values:

*/ inline const PolicyType& GetType() const{ return m_type; } diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DescribeEffectivePolicyRequest.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DescribeEffectivePolicyRequest.h index 9adf4242c8e..ea900226a9f 100644 --- a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DescribeEffectivePolicyRequest.h +++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DescribeEffectivePolicyRequest.h @@ -39,11 +39,13 @@ namespace Model /** *

The type of policy that you want information about. You can specify one of * the following values:

*/ inline const EffectivePolicyType& GetPolicyType() const{ return m_policyType; } diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DisablePolicyTypeRequest.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DisablePolicyTypeRequest.h index a9db5ab4fd8..6101c195f79 100644 --- a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DisablePolicyTypeRequest.h +++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DisablePolicyTypeRequest.h @@ -56,13 +56,15 @@ namespace Model /** *

The policy type that you want to disable in this root. You can specify one of * the following values:

*/ inline const PolicyType& GetPolicyType() const{ return m_policyType; } diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/EffectivePolicyType.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/EffectivePolicyType.h index 9502462d158..d6814b86784 100644 --- a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/EffectivePolicyType.h +++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/EffectivePolicyType.h @@ -18,7 +18,8 @@ namespace Model NOT_SET, TAG_POLICY, BACKUP_POLICY, - AISERVICES_OPT_OUT_POLICY + AISERVICES_OPT_OUT_POLICY, + CHATBOT_POLICY }; namespace EffectivePolicyTypeMapper diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/EnablePolicyTypeRequest.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/EnablePolicyTypeRequest.h index ea7af6f345d..369c47d9554 100644 --- a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/EnablePolicyTypeRequest.h +++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/EnablePolicyTypeRequest.h @@ -56,13 +56,15 @@ namespace Model /** *

The policy type that you want to enable. You can specify one of the following * values:

*/ inline const PolicyType& GetPolicyType() const{ return m_policyType; } diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/ListPoliciesForTargetRequest.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/ListPoliciesForTargetRequest.h index 74406ca1fdf..975a6935415 100644 --- a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/ListPoliciesForTargetRequest.h +++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/ListPoliciesForTargetRequest.h @@ -62,13 +62,15 @@ namespace Model /** *

The type of policy that you want to include in the returned list. You must * specify one of the following values:

*/ inline const PolicyType& GetFilter() const{ return m_filter; } diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/ListPoliciesRequest.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/ListPoliciesRequest.h index 854f33d39e0..1702031f973 100644 --- a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/ListPoliciesRequest.h +++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/ListPoliciesRequest.h @@ -39,13 +39,15 @@ namespace Model /** *

Specifies the type of policy that you want to include in the response. You * must specify one of the following values:

*/ inline const PolicyType& GetFilter() const{ return m_filter; } diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/PolicyType.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/PolicyType.h index b73c6bb3f18..052b131a651 100644 --- a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/PolicyType.h +++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/PolicyType.h @@ -19,7 +19,8 @@ namespace Model SERVICE_CONTROL_POLICY, TAG_POLICY, BACKUP_POLICY, - AISERVICES_OPT_OUT_POLICY + AISERVICES_OPT_OUT_POLICY, + CHATBOT_POLICY }; namespace PolicyTypeMapper diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/EffectivePolicyType.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/EffectivePolicyType.cpp index fbdcc7a81e9..9dc2677cc93 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/EffectivePolicyType.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/EffectivePolicyType.cpp @@ -23,6 +23,7 @@ namespace Aws static const int TAG_POLICY_HASH = HashingUtils::HashString("TAG_POLICY"); static const int BACKUP_POLICY_HASH = HashingUtils::HashString("BACKUP_POLICY"); static const int AISERVICES_OPT_OUT_POLICY_HASH = HashingUtils::HashString("AISERVICES_OPT_OUT_POLICY"); + static const int CHATBOT_POLICY_HASH = HashingUtils::HashString("CHATBOT_POLICY"); EffectivePolicyType GetEffectivePolicyTypeForName(const Aws::String& name) @@ -40,6 +41,10 @@ namespace Aws { return EffectivePolicyType::AISERVICES_OPT_OUT_POLICY; } + else if (hashCode == CHATBOT_POLICY_HASH) + { + return EffectivePolicyType::CHATBOT_POLICY; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -62,6 +67,8 @@ namespace Aws return "BACKUP_POLICY"; case EffectivePolicyType::AISERVICES_OPT_OUT_POLICY: return "AISERVICES_OPT_OUT_POLICY"; + case EffectivePolicyType::CHATBOT_POLICY: + return "CHATBOT_POLICY"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/PolicyType.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/PolicyType.cpp index b03efedc5c8..3cd41b98b42 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/model/PolicyType.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/model/PolicyType.cpp @@ -24,6 +24,7 @@ namespace Aws static const int TAG_POLICY_HASH = HashingUtils::HashString("TAG_POLICY"); static const int BACKUP_POLICY_HASH = HashingUtils::HashString("BACKUP_POLICY"); static const int AISERVICES_OPT_OUT_POLICY_HASH = HashingUtils::HashString("AISERVICES_OPT_OUT_POLICY"); + static const int CHATBOT_POLICY_HASH = HashingUtils::HashString("CHATBOT_POLICY"); PolicyType GetPolicyTypeForName(const Aws::String& name) @@ -45,6 +46,10 @@ namespace Aws { return PolicyType::AISERVICES_OPT_OUT_POLICY; } + else if (hashCode == CHATBOT_POLICY_HASH) + { + return PolicyType::CHATBOT_POLICY; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -69,6 +74,8 @@ namespace Aws return "BACKUP_POLICY"; case PolicyType::AISERVICES_OPT_OUT_POLICY: return "AISERVICES_OPT_OUT_POLICY"; + case PolicyType::CHATBOT_POLICY: + return "CHATBOT_POLICY"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-pcs/include/aws/pcs/model/ComputeNodeGroup.h b/generated/src/aws-cpp-sdk-pcs/include/aws/pcs/model/ComputeNodeGroup.h index a480ab0b2a8..96e0106fa14 100644 --- a/generated/src/aws-cpp-sdk-pcs/include/aws/pcs/model/ComputeNodeGroup.h +++ b/generated/src/aws-cpp-sdk-pcs/include/aws/pcs/model/ComputeNodeGroup.h @@ -203,8 +203,14 @@ namespace Model /** *

The Amazon Resource Name (ARN) of the IAM instance profile used to pass an * IAM role when launching EC2 instances. The role contained in your instance - * profile must have pcs:RegisterComputeNodeGroupInstance permissions - * attached to provision instances correctly.

+ * profile must have the pcs:RegisterComputeNodeGroupInstance + * permission. The resource identifier of the ARN must start with + * AWSPCS or it must have /aws-pcs/ in its path.

Examples

  • + * arn:aws:iam::111122223333:instance-profile/AWSPCS-example-role-1 + *

  • + * arn:aws:iam::111122223333:instance-profile/aws-pcs/example-role-2 + *

*/ inline const Aws::String& GetIamInstanceProfileArn() const{ return m_iamInstanceProfileArn; } inline bool IamInstanceProfileArnHasBeenSet() const { return m_iamInstanceProfileArnHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pcs/include/aws/pcs/model/CreateComputeNodeGroupRequest.h b/generated/src/aws-cpp-sdk-pcs/include/aws/pcs/model/CreateComputeNodeGroupRequest.h index 1e9ca13a332..98dd92d75b9 100644 --- a/generated/src/aws-cpp-sdk-pcs/include/aws/pcs/model/CreateComputeNodeGroupRequest.h +++ b/generated/src/aws-cpp-sdk-pcs/include/aws/pcs/model/CreateComputeNodeGroupRequest.h @@ -134,11 +134,14 @@ namespace Model /** *

The Amazon Resource Name (ARN) of the IAM instance profile used to pass an * IAM role when launching EC2 instances. The role contained in your instance - * profile must have pcs:RegisterComputeNodeGroupInstance permissions - * attached in order to provision instances correctly. The resource identifier of - * the ARN must start with AWSPCS. For example, - * arn:aws:iam:123456789012:instance-profile/AWSPCSMyComputeNodeInstanceProfile. - *

+ * profile must have the pcs:RegisterComputeNodeGroupInstance + * permission. The resource identifier of the ARN must start with + * AWSPCS or it must have /aws-pcs/ in its path.

Examples

  • + * arn:aws:iam::111122223333:instance-profile/AWSPCS-example-role-1 + *

  • + * arn:aws:iam::111122223333:instance-profile/aws-pcs/example-role-2 + *

*/ inline const Aws::String& GetIamInstanceProfileArn() const{ return m_iamInstanceProfileArn; } inline bool IamInstanceProfileArnHasBeenSet() const { return m_iamInstanceProfileArnHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pcs/include/aws/pcs/model/SlurmCustomSetting.h b/generated/src/aws-cpp-sdk-pcs/include/aws/pcs/model/SlurmCustomSetting.h index cda120e1995..32a08b0897a 100644 --- a/generated/src/aws-cpp-sdk-pcs/include/aws/pcs/model/SlurmCustomSetting.h +++ b/generated/src/aws-cpp-sdk-pcs/include/aws/pcs/model/SlurmCustomSetting.h @@ -41,12 +41,18 @@ namespace Model ///@{ /** *

Amazon Web Services PCS supports configuration of the following Slurm - * parameters: - * Prolog ,

*/ inline const Aws::String& GetParameterName() const{ return m_parameterName; } inline bool ParameterNameHasBeenSet() const { return m_parameterNameHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pcs/include/aws/pcs/model/UpdateComputeNodeGroupRequest.h b/generated/src/aws-cpp-sdk-pcs/include/aws/pcs/model/UpdateComputeNodeGroupRequest.h index cbe13378396..7ec8e01e338 100644 --- a/generated/src/aws-cpp-sdk-pcs/include/aws/pcs/model/UpdateComputeNodeGroupRequest.h +++ b/generated/src/aws-cpp-sdk-pcs/include/aws/pcs/model/UpdateComputeNodeGroupRequest.h @@ -153,8 +153,14 @@ namespace Model /** *

The Amazon Resource Name (ARN) of the IAM instance profile used to pass an * IAM role when launching EC2 instances. The role contained in your instance - * profile must have pcs:RegisterComputeNodeGroupInstance permissions - * attached to provision instances correctly.

+ * profile must have the pcs:RegisterComputeNodeGroupInstance + * permission. The resource identifier of the ARN must start with + * AWSPCS or it must have /aws-pcs/ in its path.

Examples

  • + * arn:aws:iam::111122223333:instance-profile/AWSPCS-example-role-1 + *

  • + * arn:aws:iam::111122223333:instance-profile/aws-pcs/example-role-2 + *

*/ inline const Aws::String& GetIamInstanceProfileArn() const{ return m_iamInstanceProfileArn; } inline bool IamInstanceProfileArnHasBeenSet() const { return m_iamInstanceProfileArnHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-rds-data/include/aws/rds-data/RDSDataServiceClient.h b/generated/src/aws-cpp-sdk-rds-data/include/aws/rds-data/RDSDataServiceClient.h index 240bddca005..d87d10a49d7 100644 --- a/generated/src/aws-cpp-sdk-rds-data/include/aws/rds-data/RDSDataServiceClient.h +++ b/generated/src/aws-cpp-sdk-rds-data/include/aws/rds-data/RDSDataServiceClient.h @@ -20,8 +20,9 @@ namespace RDSDataService * run SQL statements on an Amazon Aurora DB cluster. To run these statements, you * use the RDS Data API (Data API).

Data API is available with the following * types of Aurora databases:

  • Aurora PostgreSQL - Serverless v2, - * Serverless v1, and provisioned

  • Aurora MySQL - Serverless v1 - * only

For more information about the Data API, see

  • Aurora MySQL - Serverless v2, + * provisioned, and Serverless v1

  • For more information about the + * Data API, see Using * RDS Data API in the Amazon Aurora User Guide.

    */ @@ -127,10 +128,10 @@ namespace RDSDataService * of 24 hours. A transaction is terminated and rolled back automatically after 24 * hours.

    A transaction times out if no calls use its transaction ID in * three minutes. If a transaction times out before it's committed, it's rolled - * back automatically.

    DDL statements inside a transaction cause an implicit - * commit. We recommend that you run each DDL statement in a separate - * ExecuteStatement call with continueAfterTimeout - * enabled.

    See Also:

    For Aurora MySQL, DDL statements inside a transaction + * cause an implicit commit. We recommend that you run each MySQL DDL statement in + * a separate ExecuteStatement call with + * continueAfterTimeout enabled.

    See Also:

    AWS * API Reference

    */ diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CreateDomainRequest.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CreateDomainRequest.h index 40062d411c1..d39eac50671 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CreateDomainRequest.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CreateDomainRequest.h @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -195,6 +196,19 @@ namespace Model inline CreateDomainRequest& WithAppSecurityGroupManagement(AppSecurityGroupManagement&& value) { SetAppSecurityGroupManagement(std::move(value)); return *this;} ///@} + ///@{ + /** + *

    Indicates whether custom tag propagation is supported for the domain. + * Defaults to DISABLED.

    + */ + inline const TagPropagation& GetTagPropagation() const{ return m_tagPropagation; } + inline bool TagPropagationHasBeenSet() const { return m_tagPropagationHasBeenSet; } + inline void SetTagPropagation(const TagPropagation& value) { m_tagPropagationHasBeenSet = true; m_tagPropagation = value; } + inline void SetTagPropagation(TagPropagation&& value) { m_tagPropagationHasBeenSet = true; m_tagPropagation = std::move(value); } + inline CreateDomainRequest& WithTagPropagation(const TagPropagation& value) { SetTagPropagation(value); return *this;} + inline CreateDomainRequest& WithTagPropagation(TagPropagation&& value) { SetTagPropagation(std::move(value)); return *this;} + ///@} + ///@{ /** *

    The default settings used to create a space.

    @@ -238,6 +252,9 @@ namespace Model AppSecurityGroupManagement m_appSecurityGroupManagement; bool m_appSecurityGroupManagementHasBeenSet = false; + TagPropagation m_tagPropagation; + bool m_tagPropagationHasBeenSet = false; + DefaultSpaceSettings m_defaultSpaceSettings; bool m_defaultSpaceSettingsHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DescribeDomainResult.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DescribeDomainResult.h index 6839b5a7615..b708999dcb4 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DescribeDomainResult.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DescribeDomainResult.h @@ -14,6 +14,7 @@ #include #include #include +#include #include #include @@ -300,6 +301,17 @@ namespace Model inline DescribeDomainResult& WithAppSecurityGroupManagement(AppSecurityGroupManagement&& value) { SetAppSecurityGroupManagement(std::move(value)); return *this;} ///@} + ///@{ + /** + *

    Indicates whether custom tag propagation is supported for the domain.

    + */ + inline const TagPropagation& GetTagPropagation() const{ return m_tagPropagation; } + inline void SetTagPropagation(const TagPropagation& value) { m_tagPropagation = value; } + inline void SetTagPropagation(TagPropagation&& value) { m_tagPropagation = std::move(value); } + inline DescribeDomainResult& WithTagPropagation(const TagPropagation& value) { SetTagPropagation(value); return *this;} + inline DescribeDomainResult& WithTagPropagation(TagPropagation&& value) { SetTagPropagation(std::move(value)); return *this;} + ///@} + ///@{ /** *

    The default settings used to create a space.

    @@ -363,6 +375,8 @@ namespace Model AppSecurityGroupManagement m_appSecurityGroupManagement; + TagPropagation m_tagPropagation; + DefaultSpaceSettings m_defaultSpaceSettings; Aws::String m_requestId; diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/TagPropagation.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/TagPropagation.h new file mode 100644 index 00000000000..8f4bead43c9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/TagPropagation.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace SageMaker +{ +namespace Model +{ + enum class TagPropagation + { + NOT_SET, + ENABLED, + DISABLED + }; + +namespace TagPropagationMapper +{ +AWS_SAGEMAKER_API TagPropagation GetTagPropagationForName(const Aws::String& name); + +AWS_SAGEMAKER_API Aws::String GetNameForTagPropagation(TagPropagation value); +} // namespace TagPropagationMapper +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/UpdateDomainRequest.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/UpdateDomainRequest.h index 384974825a7..b05142a4899 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/UpdateDomainRequest.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/UpdateDomainRequest.h @@ -13,6 +13,7 @@ #include #include #include +#include #include namespace Aws @@ -146,6 +147,19 @@ namespace Model inline UpdateDomainRequest& WithAppNetworkAccessType(const AppNetworkAccessType& value) { SetAppNetworkAccessType(value); return *this;} inline UpdateDomainRequest& WithAppNetworkAccessType(AppNetworkAccessType&& value) { SetAppNetworkAccessType(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

    Indicates whether custom tag propagation is supported for the domain. + * Defaults to DISABLED.

    + */ + inline const TagPropagation& GetTagPropagation() const{ return m_tagPropagation; } + inline bool TagPropagationHasBeenSet() const { return m_tagPropagationHasBeenSet; } + inline void SetTagPropagation(const TagPropagation& value) { m_tagPropagationHasBeenSet = true; m_tagPropagation = value; } + inline void SetTagPropagation(TagPropagation&& value) { m_tagPropagationHasBeenSet = true; m_tagPropagation = std::move(value); } + inline UpdateDomainRequest& WithTagPropagation(const TagPropagation& value) { SetTagPropagation(value); return *this;} + inline UpdateDomainRequest& WithTagPropagation(TagPropagation&& value) { SetTagPropagation(std::move(value)); return *this;} + ///@} private: Aws::String m_domainId; @@ -168,6 +182,9 @@ namespace Model AppNetworkAccessType m_appNetworkAccessType; bool m_appNetworkAccessTypeHasBeenSet = false; + + TagPropagation m_tagPropagation; + bool m_tagPropagationHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CreateDomainRequest.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CreateDomainRequest.cpp index abd6757edc6..d4c4141f358 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/CreateDomainRequest.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CreateDomainRequest.cpp @@ -26,6 +26,8 @@ CreateDomainRequest::CreateDomainRequest() : m_kmsKeyIdHasBeenSet(false), m_appSecurityGroupManagement(AppSecurityGroupManagement::NOT_SET), m_appSecurityGroupManagementHasBeenSet(false), + m_tagPropagation(TagPropagation::NOT_SET), + m_tagPropagationHasBeenSet(false), m_defaultSpaceSettingsHasBeenSet(false) { } @@ -101,6 +103,11 @@ Aws::String CreateDomainRequest::SerializePayload() const payload.WithString("AppSecurityGroupManagement", AppSecurityGroupManagementMapper::GetNameForAppSecurityGroupManagement(m_appSecurityGroupManagement)); } + if(m_tagPropagationHasBeenSet) + { + payload.WithString("TagPropagation", TagPropagationMapper::GetNameForTagPropagation(m_tagPropagation)); + } + if(m_defaultSpaceSettingsHasBeenSet) { payload.WithObject("DefaultSpaceSettings", m_defaultSpaceSettings.Jsonize()); diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/DescribeDomainResult.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/DescribeDomainResult.cpp index 56a7d7bf2a6..496b6425ba4 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/DescribeDomainResult.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/DescribeDomainResult.cpp @@ -21,7 +21,8 @@ DescribeDomainResult::DescribeDomainResult() : m_status(DomainStatus::NOT_SET), m_authMode(AuthMode::NOT_SET), m_appNetworkAccessType(AppNetworkAccessType::NOT_SET), - m_appSecurityGroupManagement(AppSecurityGroupManagement::NOT_SET) + m_appSecurityGroupManagement(AppSecurityGroupManagement::NOT_SET), + m_tagPropagation(TagPropagation::NOT_SET) { } @@ -157,6 +158,12 @@ DescribeDomainResult& DescribeDomainResult::operator =(const Aws::AmazonWebServi } + if(jsonValue.ValueExists("TagPropagation")) + { + m_tagPropagation = TagPropagationMapper::GetTagPropagationForName(jsonValue.GetString("TagPropagation")); + + } + if(jsonValue.ValueExists("DefaultSpaceSettings")) { m_defaultSpaceSettings = jsonValue.GetObject("DefaultSpaceSettings"); diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/TagPropagation.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/TagPropagation.cpp new file mode 100644 index 00000000000..dce50b6055b --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/TagPropagation.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace SageMaker + { + namespace Model + { + namespace TagPropagationMapper + { + + static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + + + TagPropagation GetTagPropagationForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ENABLED_HASH) + { + return TagPropagation::ENABLED; + } + else if (hashCode == DISABLED_HASH) + { + return TagPropagation::DISABLED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return TagPropagation::NOT_SET; + } + + Aws::String GetNameForTagPropagation(TagPropagation enumValue) + { + switch(enumValue) + { + case TagPropagation::NOT_SET: + return {}; + case TagPropagation::ENABLED: + return "ENABLED"; + case TagPropagation::DISABLED: + return "DISABLED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace TagPropagationMapper + } // namespace Model + } // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/UpdateDomainRequest.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/UpdateDomainRequest.cpp index 557b657fc65..7b1ebf93c73 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/UpdateDomainRequest.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/UpdateDomainRequest.cpp @@ -21,7 +21,9 @@ UpdateDomainRequest::UpdateDomainRequest() : m_defaultSpaceSettingsHasBeenSet(false), m_subnetIdsHasBeenSet(false), m_appNetworkAccessType(AppNetworkAccessType::NOT_SET), - m_appNetworkAccessTypeHasBeenSet(false) + m_appNetworkAccessTypeHasBeenSet(false), + m_tagPropagation(TagPropagation::NOT_SET), + m_tagPropagationHasBeenSet(false) { } @@ -74,6 +76,11 @@ Aws::String UpdateDomainRequest::SerializePayload() const payload.WithString("AppNetworkAccessType", AppNetworkAccessTypeMapper::GetNameForAppNetworkAccessType(m_appNetworkAccessType)); } + if(m_tagPropagationHasBeenSet) + { + payload.WithString("TagPropagation", TagPropagationMapper::GetNameForTagPropagation(m_tagPropagation)); + } + return payload.View().WriteReadable(); } diff --git a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h index 8a203a61fbe..6f32c8836c3 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h +++ b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h @@ -4,7 +4,7 @@ */ #pragma once -#define AWS_SDK_VERSION_STRING "1.11.413" +#define AWS_SDK_VERSION_STRING "1.11.414" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 413 +#define AWS_SDK_VERSION_PATCH 414 diff --git a/tools/code-generation/api-descriptions/chatbot-2017-10-11.normal.json b/tools/code-generation/api-descriptions/chatbot-2017-10-11.normal.json index ab43939cfdb..af4332e9c51 100644 --- a/tools/code-generation/api-descriptions/chatbot-2017-10-11.normal.json +++ b/tools/code-generation/api-descriptions/chatbot-2017-10-11.normal.json @@ -519,6 +519,14 @@ "Tags":{ "shape":"Tags", "documentation":"

    A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.

    " + }, + "State":{ + "shape":"ResourceState", + "documentation":"

    Either ENABLED or DISABLED. The resource returns DISABLED if the organization's AWS Chatbot policy has explicitly denied that configuration. For example, if Amazon Chime is disabled.

    " + }, + "StateReason":{ + "shape":"String", + "documentation":"

    Provided if State is DISABLED. Provides context as to why the resource is disabled.

    " } }, "documentation":"

    An AWS Chatbot configuration for Amazon Chime.

    " @@ -564,6 +572,14 @@ "TeamName":{ "shape":"UUID", "documentation":"

    The name of the Microsoft Teams Team.

    " + }, + "State":{ + "shape":"ResourceState", + "documentation":"

    Either ENABLED or DISABLED. The resource returns DISABLED if the organization's AWS Chatbot policy has explicitly denied that configuration. For example, if Amazon Chime is disabled.

    " + }, + "StateReason":{ + "shape":"String", + "documentation":"

    Provided if State is DISABLED. Provides context as to why the resource is disabled.

    " } }, "documentation":"

    A Microsoft Teams team that is authorized with AWS Chatbot.

    " @@ -1417,6 +1433,10 @@ }, "exception":true }, + "ResourceState":{ + "type":"string", + "pattern":"(ENABLED|DISABLED)" + }, "ServiceUnavailableException":{ "type":"structure", "members":{ @@ -1488,6 +1508,14 @@ "Tags":{ "shape":"Tags", "documentation":"

    A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.

    " + }, + "State":{ + "shape":"ResourceState", + "documentation":"

    Either ENABLED or DISABLED. The resource returns DISABLED if the organization's AWS Chatbot policy has explicitly denied that configuration. For example, if Amazon Chime is disabled.

    " + }, + "StateReason":{ + "shape":"String", + "documentation":"

    Provided if State is DISABLED. Provides context as to why the resource is disabled.

    " } }, "documentation":"

    An AWS Chatbot configuration for Slack.

    " @@ -1575,6 +1603,14 @@ "SlackTeamName":{ "shape":"SlackTeamName", "documentation":"

    The name of the Slack workspace.

    " + }, + "State":{ + "shape":"ResourceState", + "documentation":"

    Either ENABLED or DISABLED. The resource returns DISABLED if the organization's AWS Chatbot policy has explicitly denied that configuration. For example, if Amazon Chime is disabled.

    " + }, + "StateReason":{ + "shape":"String", + "documentation":"

    Provided if State is DISABLED. Provides context as to why the resource is disabled.

    " } }, "documentation":"

    A Slack workspace.

    " @@ -1587,6 +1623,7 @@ "type":"list", "member":{"shape":"Arn"} }, + "String":{"type":"string"}, "Tag":{ "type":"structure", "required":[ @@ -1726,6 +1763,14 @@ "Tags":{ "shape":"Tags", "documentation":"

    A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.

    " + }, + "State":{ + "shape":"ResourceState", + "documentation":"

    Either ENABLED or DISABLED. The resource returns DISABLED if the organization's AWS Chatbot policy has explicitly denied that configuration. For example, if Amazon Chime is disabled.

    " + }, + "StateReason":{ + "shape":"String", + "documentation":"

    Provided if State is DISABLED. Provides context as to why the resource is disabled.

    " } }, "documentation":"

    An AWS Chatbot configuration for Microsoft Teams.

    " diff --git a/tools/code-generation/api-descriptions/lambda-2015-03-31.normal.json b/tools/code-generation/api-descriptions/lambda-2015-03-31.normal.json index bdb644cdd2b..49d0b40b55c 100644 --- a/tools/code-generation/api-descriptions/lambda-2015-03-31.normal.json +++ b/tools/code-generation/api-descriptions/lambda-2015-03-31.normal.json @@ -48,10 +48,9 @@ {"shape":"InvalidParameterValueException"}, {"shape":"PolicyLengthExceededException"}, {"shape":"TooManyRequestsException"}, - {"shape":"PreconditionFailedException"}, - {"shape":"PublicPolicyException"} + {"shape":"PreconditionFailedException"} ], - "documentation":"

    Grants a principal permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies to version $LATEST.

    To grant permission to another account, specify the account ID as the Principal. To grant permission to an organization defined in Organizations, specify the organization ID as the PrincipalOrgID. For Amazon Web Servicesservices, the principal is a domain-style identifier that the service defines, such as s3.amazonaws.com or sns.amazonaws.com. For Amazon Web Servicesservices, you can also specify the ARN of the associated resource as the SourceArn. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function.

    This operation adds a statement to a resource-based permissions policy for the function. For more information about function policies, see Using resource-based policies for Lambda.

    " + "documentation":"

    Grants a principal permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies to version $LATEST.

    To grant permission to another account, specify the account ID as the Principal. To grant permission to an organization defined in Organizations, specify the organization ID as the PrincipalOrgID. For Amazon Web Services services, the principal is a domain-style identifier that the service defines, such as s3.amazonaws.com or sns.amazonaws.com. For Amazon Web Services services, you can also specify the ARN of the associated resource as the SourceArn. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function.

    This operation adds a statement to a resource-based permissions policy for the function. For more information about function policies, see Using resource-based policies for Lambda.

    " }, "CreateAlias":{ "name":"CreateAlias", @@ -124,7 +123,7 @@ {"shape":"InvalidCodeSignatureException"}, {"shape":"CodeSigningConfigNotFoundException"} ], - "documentation":"

    Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Servicesservices, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing.

    If the deployment package is a container image, then you set the package type to Image. For a container image, the code property must include the URI of a container image in the Amazon ECR registry. You do not need to specify the handler and runtime properties.

    If the deployment package is a .zip file archive, then you set the package type to Zip. For a .zip file archive, the code property specifies the location of the .zip file. You must also specify the handler and runtime properties. The code in the deployment package must be compatible with the target instruction set architecture of the function (x86-64 or arm64). If you do not specify the architecture, then the default value is x86-64.

    When you create a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can't invoke or modify the function. The State, StateReason, and StateReasonCode fields in the response from GetFunctionConfiguration indicate when the function is ready to invoke. For more information, see Lambda function states.

    A function has an unpublished version, and can have published versions and aliases. The unpublished version changes when you update your function's code and configuration. A published version is a snapshot of your function code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be changed to map to a different version. Use the Publish parameter to create version 1 of your function from its initial configuration.

    The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply to both the unpublished and published versions of the function, and include tags (TagResource) and per-function concurrency limits (PutFunctionConcurrency).

    You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with UpdateFunctionCode, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set of signing profiles, which define the trusted publishers for this function.

    If another Amazon Web Services account or an Amazon Web Servicesservice invokes your function, use AddPermission to grant permission by creating a resource-based Identity and Access Management (IAM) policy. You can grant permissions at the function level, on a version, or on an alias.

    To invoke your function directly, use Invoke. To invoke your function in response to events in other Amazon Web Servicesservices, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Lambda functions.

    " + "documentation":"

    Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing.

    If the deployment package is a container image, then you set the package type to Image. For a container image, the code property must include the URI of a container image in the Amazon ECR registry. You do not need to specify the handler and runtime properties.

    If the deployment package is a .zip file archive, then you set the package type to Zip. For a .zip file archive, the code property specifies the location of the .zip file. You must also specify the handler and runtime properties. The code in the deployment package must be compatible with the target instruction set architecture of the function (x86-64 or arm64). If you do not specify the architecture, then the default value is x86-64.

    When you create a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can't invoke or modify the function. The State, StateReason, and StateReasonCode fields in the response from GetFunctionConfiguration indicate when the function is ready to invoke. For more information, see Lambda function states.

    A function has an unpublished version, and can have published versions and aliases. The unpublished version changes when you update your function's code and configuration. A published version is a snapshot of your function code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be changed to map to a different version. Use the Publish parameter to create version 1 of your function from its initial configuration.

    The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply to both the unpublished and published versions of the function, and include tags (TagResource) and per-function concurrency limits (PutFunctionConcurrency).

    You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with UpdateFunctionCode, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set of signing profiles, which define the trusted publishers for this function.

    If another Amazon Web Services account or an Amazon Web Services service invokes your function, use AddPermission to grant permission by creating a resource-based Identity and Access Management (IAM) policy. You can grant permissions at the function level, on a version, or on an alias.

    To invoke your function directly, use Invoke. To invoke your function in response to events in other Amazon Web Services services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Lambda functions.

    " }, "CreateFunctionUrlConfig":{ "name":"CreateFunctionUrlConfig", @@ -211,7 +210,7 @@ {"shape":"InvalidParameterValueException"}, {"shape":"ResourceConflictException"} ], - "documentation":"

    Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter. Otherwise, all versions and aliases are deleted. This doesn't require the user to have explicit permissions for DeleteAlias.

    To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For Amazon Web Servicesservices and resources that invoke your function directly, delete the trigger in the service where you originally configured it.

    " + "documentation":"

    Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter. Otherwise, all versions and aliases are deleted. This doesn't require the user to have explicit permissions for DeleteAlias.

    To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For Amazon Web Services services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.

    " }, "DeleteFunctionCodeSigningConfig":{ "name":"DeleteFunctionCodeSigningConfig", @@ -312,24 +311,6 @@ ], "documentation":"

    Deletes the provisioned concurrency configuration for a function.

    " }, - "DeleteResourcePolicy":{ - "name":"DeleteResourcePolicy", - "http":{ - "method":"DELETE", - "requestUri":"/2024-09-16/resource-policy/{ResourceArn}", - "responseCode":204 - }, - "input":{"shape":"DeleteResourcePolicyRequest"}, - "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ResourceConflictException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"PreconditionFailedException"} - ], - "documentation":"

    The option to create and modify full JSON resource-based policies, and to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, won't be available in all Amazon Web Services Regions until September 30, 2024.

    Deletes a resource-based policy from a function.

    " - }, "GetAccountSettings":{ "name":"GetAccountSettings", "http":{ @@ -600,40 +581,6 @@ ], "documentation":"

    Retrieves the provisioned concurrency configuration for a function's alias or version.

    " }, - "GetPublicAccessBlockConfig":{ - "name":"GetPublicAccessBlockConfig", - "http":{ - "method":"GET", - "requestUri":"/2024-09-16/public-access-block/{ResourceArn}", - "responseCode":200 - }, - "input":{"shape":"GetPublicAccessBlockConfigRequest"}, - "output":{"shape":"GetPublicAccessBlockConfigResponse"}, - "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InvalidParameterValueException"} - ], - "documentation":"

    The option to configure public-access settings, and to use the PutPublicAccessBlock and GetPublicAccessBlock APIs, won't be available in all Amazon Web Services Regions until September 30, 2024.

    Retrieve the public-access settings for a function.

    " - }, - "GetResourcePolicy":{ - "name":"GetResourcePolicy", - "http":{ - "method":"GET", - "requestUri":"/2024-09-16/resource-policy/{ResourceArn}", - "responseCode":200 - }, - "input":{"shape":"GetResourcePolicyRequest"}, - "output":{"shape":"GetResourcePolicyResponse"}, - "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InvalidParameterValueException"} - ], - "documentation":"

    The option to create and modify full JSON resource-based policies, and to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, won't be available in all Amazon Web Services Regions until September 30, 2024.

    Retrieves the resource-based policy attached to a function.

    " - }, "GetRuntimeManagementConfig":{ "name":"GetRuntimeManagementConfig", "http":{ @@ -933,7 +880,7 @@ {"shape":"InvalidParameterValueException"}, {"shape":"TooManyRequestsException"} ], - "documentation":"

    Returns a function, event source mapping, or code signing configuration's tags. You can also view funciton tags with GetFunction.

    " + "documentation":"

    Returns a function, event source mapping, or code signing configuration's tags. You can also view function tags with GetFunction.

    " }, "ListVersionsByFunction":{ "name":"ListVersionsByFunction", @@ -1081,45 +1028,6 @@ ], "documentation":"

    Adds a provisioned concurrency configuration to a function's alias or version.

    " }, - "PutPublicAccessBlockConfig":{ - "name":"PutPublicAccessBlockConfig", - "http":{ - "method":"PUT", - "requestUri":"/2024-09-16/public-access-block/{ResourceArn}", - "responseCode":200 - }, - "input":{"shape":"PutPublicAccessBlockConfigRequest"}, - "output":{"shape":"PutPublicAccessBlockConfigResponse"}, - "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ResourceConflictException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"TooManyRequestsException"} - ], - "documentation":"

    The option to configure public-access settings, and to use the PutPublicAccessBlock and GetPublicAccessBlock APIs, won't be available in all Amazon Web Services Regions until September 30, 2024.

    Configure your function's public-access settings.

    To control public access to a Lambda function, you can choose whether to allow the creation of resource-based policies that allow public access to that function. You can also block public access to a function, even if it has an existing resource-based policy that allows it.

    " - }, - "PutResourcePolicy":{ - "name":"PutResourcePolicy", - "http":{ - "method":"PUT", - "requestUri":"/2024-09-16/resource-policy/{ResourceArn}", - "responseCode":200 - }, - "input":{"shape":"PutResourcePolicyRequest"}, - "output":{"shape":"PutResourcePolicyResponse"}, - "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ResourceConflictException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"PolicyLengthExceededException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"PreconditionFailedException"}, - {"shape":"PublicPolicyException"} - ], - "documentation":"

    The option to create and modify full JSON resource-based policies, and to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, won't be available in all Amazon Web Services Regions until September 30, 2024.

    Adds a resource-based policy to a function. You can use resource-based policies to grant access to other Amazon Web Services accounts, organizations, or services. Resource-based policies apply to a single function, version, or alias.

    Adding a resource-based policy using this API action replaces any existing policy you've previously created. This means that if you've previously added resource-based permissions to a function using the AddPermission action, those permissions will be overwritten by your new policy.

    " - }, "PutRuntimeManagementConfig":{ "name":"PutRuntimeManagementConfig", "http":{ @@ -1168,10 +1076,9 @@ {"shape":"ResourceNotFoundException"}, {"shape":"InvalidParameterValueException"}, {"shape":"TooManyRequestsException"}, - {"shape":"PreconditionFailedException"}, - {"shape":"PublicPolicyException"} + {"shape":"PreconditionFailedException"} ], - "documentation":"

    Revokes function-use permission from an Amazon Web Servicesservice or another Amazon Web Services account. You can get the ID of the statement from the output of GetPolicy.

    " + "documentation":"

    Revokes function-use permission from an Amazon Web Services service or another Amazon Web Services account. You can get the ID of the statement from the output of GetPolicy.

    " }, "TagResource":{ "name":"TagResource", @@ -1304,7 +1211,7 @@ {"shape":"InvalidCodeSignatureException"}, {"shape":"CodeSigningConfigNotFoundException"} ], - "documentation":"

    Modify the version-specific settings of a Lambda function.

    When you update a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute. During this time, you can't modify the function, but you can still invoke it. The LastUpdateStatus, LastUpdateStatusReason, and LastUpdateStatusReasonCode fields in the response from GetFunctionConfiguration indicate when the update is complete and the function is processing events with the new configuration. For more information, see Lambda function states.

    These settings can vary between versions of a function and are locked when you publish a version. You can't modify the configuration of a published version, only the unpublished version.

    To configure function concurrency, use PutFunctionConcurrency. To grant invoke permissions to an Amazon Web Services account or Amazon Web Servicesservice, use AddPermission.

    " + "documentation":"

    Modify the version-specific settings of a Lambda function.

    When you update a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute. During this time, you can't modify the function, but you can still invoke it. The LastUpdateStatus, LastUpdateStatusReason, and LastUpdateStatusReasonCode fields in the response from GetFunctionConfiguration indicate when the update is complete and the function is processing events with the new configuration. For more information, see Lambda function states.

    These settings can vary between versions of a function and are locked when you publish a version. You can't modify the configuration of a published version, only the unpublished version.

    To configure function concurrency, use PutFunctionConcurrency. To grant invoke permissions to an Amazon Web Services account or Amazon Web Services service, use AddPermission.

    " }, "UpdateFunctionEventInvokeConfig":{ "name":"UpdateFunctionEventInvokeConfig", @@ -1472,15 +1379,15 @@ }, "Principal":{ "shape":"Principal", - "documentation":"

    The Amazon Web Servicesservice, Amazon Web Services account, IAM user, or IAM role that invokes the function. If you specify a service, use SourceArn or SourceAccount to limit who can invoke the function through that service.

    " + "documentation":"

    The Amazon Web Services service, Amazon Web Services account, IAM user, or IAM role that invokes the function. If you specify a service, use SourceArn or SourceAccount to limit who can invoke the function through that service.

    " }, "SourceArn":{ "shape":"Arn", - "documentation":"

    For Amazon Web Servicesservices, the ARN of the Amazon Web Services resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.

    Note that Lambda configures the comparison using the StringLike operator.

    " + "documentation":"

    For Amazon Web Services services, the ARN of the Amazon Web Services resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.

    Note that Lambda configures the comparison using the StringLike operator.

    " }, "SourceAccount":{ "shape":"SourceOwner", - "documentation":"

    For Amazon Web Servicesservice, the ID of the Amazon Web Services account that owns the resource. Use this together with SourceArn to ensure that the specified account owns the resource. It is possible for an Amazon S3 bucket to be deleted by its owner and recreated by another account.

    " + "documentation":"

    For Amazon Web Services service, the ID of the Amazon Web Services account that owns the resource. Use this together with SourceArn to ensure that the specified account owns the resource. It is possible for an Amazon S3 bucket to be deleted by its owner and recreated by another account.

    " }, "EventSourceToken":{ "shape":"EventSourceToken", @@ -2337,24 +2244,6 @@ } } }, - "DeleteResourcePolicyRequest":{ - "type":"structure", - "required":["ResourceArn"], - "members":{ - "ResourceArn":{ - "shape":"PolicyResourceArn", - "documentation":"

    The Amazon Resource Name (ARN) of the function you want to delete the policy from. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

    ", - "location":"uri", - "locationName":"ResourceArn" - }, - "RevisionId":{ - "shape":"RevisionId", - "documentation":"

    Delete the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.

    ", - "location":"querystring", - "locationName":"RevisionId" - } - } - }, "Description":{ "type":"string", "max":256, @@ -3595,52 +3484,6 @@ } } }, - "GetPublicAccessBlockConfigRequest":{ - "type":"structure", - "required":["ResourceArn"], - "members":{ - "ResourceArn":{ - "shape":"PublicAccessBlockResourceArn", - "documentation":"

    The Amazon Resource Name (ARN) of the function you want to retrieve public-access settings for.

    ", - "location":"uri", - "locationName":"ResourceArn" - } - } - }, - "GetPublicAccessBlockConfigResponse":{ - "type":"structure", - "members":{ - "PublicAccessBlockConfig":{ - "shape":"PublicAccessBlockConfig", - "documentation":"

    The public-access settings configured for the function you specified

    " - } - } - }, - "GetResourcePolicyRequest":{ - "type":"structure", - "required":["ResourceArn"], - "members":{ - "ResourceArn":{ - "shape":"PolicyResourceArn", - "documentation":"

    The Amazon Resource Name (ARN) of the function you want to retrieve the policy for. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

    ", - "location":"uri", - "locationName":"ResourceArn" - } - } - }, - "GetResourcePolicyResponse":{ - "type":"structure", - "members":{ - "Policy":{ - "shape":"ResourcePolicy", - "documentation":"

    The resource-based policy attached to the function you specified.

    " - }, - "RevisionId":{ - "shape":"RevisionId", - "documentation":"

    The revision ID of the policy.

    " - } - } - }, "GetRuntimeManagementConfigRequest":{ "type":"structure", "required":["FunctionName"], @@ -4964,11 +4807,6 @@ "error":{"httpStatusCode":400}, "exception":true }, - "PolicyResourceArn":{ - "type":"string", - "max":256, - "pattern":"arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_])+)?" - }, "PositiveInteger":{ "type":"integer", "min":1 @@ -5055,38 +4893,6 @@ "FAILED" ] }, - "PublicAccessBlockConfig":{ - "type":"structure", - "members":{ - "BlockPublicPolicy":{ - "shape":"NullableBoolean", - "documentation":"

    To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to false.

    " - }, - "RestrictPublicResource":{ - "shape":"NullableBoolean", - "documentation":"

    To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

    " - } - }, - "documentation":"

    An object that defines the public-access settings for a function.

    " - }, - "PublicAccessBlockResourceArn":{ - "type":"string", - "max":170, - "pattern":"arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+" - }, - "PublicPolicyException":{ - "type":"structure", - "members":{ - "Type":{ - "shape":"String", - "documentation":"

    The exception type.

    " - }, - "Message":{"shape":"String"} - }, - "documentation":"

    Lambda prevented your policy from being created because it would grant public access to your function. If you intended to create a public policy, use the PutPublicAccessBlockConfig API action to configure your function's public-access settings to allow public policies.

    ", - "error":{"httpStatusCode":400}, - "exception":true - }, "PublishLayerVersionRequest":{ "type":"structure", "required":[ @@ -5355,70 +5161,6 @@ } } }, - "PutPublicAccessBlockConfigRequest":{ - "type":"structure", - "required":[ - "ResourceArn", - "PublicAccessBlockConfig" - ], - "members":{ - "ResourceArn":{ - "shape":"PublicAccessBlockResourceArn", - "documentation":"

    The Amazon Resource Name (ARN) of the function you want to configure public-access settings for. Public-access settings are applied at the function level, so you can't apply different settings to function versions or aliases.

    ", - "location":"uri", - "locationName":"ResourceArn" - }, - "PublicAccessBlockConfig":{ - "shape":"PublicAccessBlockConfig", - "documentation":"

    An object defining the public-access settings you want to apply.

    To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to false.

    To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

    The default setting for both BlockPublicPolicy and RestrictPublicResource is true.

    " - } - } - }, - "PutPublicAccessBlockConfigResponse":{ - "type":"structure", - "members":{ - "PublicAccessBlockConfig":{ - "shape":"PublicAccessBlockConfig", - "documentation":"

    The public-access settings Lambda applied to your function.

    " - } - } - }, - "PutResourcePolicyRequest":{ - "type":"structure", - "required":[ - "ResourceArn", - "Policy" - ], - "members":{ - "ResourceArn":{ - "shape":"PolicyResourceArn", - "documentation":"

    The Amazon Resource Name (ARN) of the function you want to add the policy to. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

    ", - "location":"uri", - "locationName":"ResourceArn" - }, - "Policy":{ - "shape":"ResourcePolicy", - "documentation":"

    The JSON resource-based policy you want to add to your function.

    To learn more about creating resource-based policies for controlling access to Lambda, see Working with resource-based IAM policies in Lambda in the Lambda Developer Guide.

    " - }, - "RevisionId":{ - "shape":"RevisionId", - "documentation":"

    Replace the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.

    " - } - } - }, - "PutResourcePolicyResponse":{ - "type":"structure", - "members":{ - "Policy":{ - "shape":"ResourcePolicy", - "documentation":"

    The policy Lambda added to your function.

    " - }, - "RevisionId":{ - "shape":"RevisionId", - "documentation":"

    The revision ID of the policy Lambda added to your function.

    " - } - } - }, "PutRuntimeManagementConfigRequest":{ "type":"structure", "required":[ @@ -5647,12 +5389,6 @@ "error":{"httpStatusCode":502}, "exception":true }, - "ResourcePolicy":{ - "type":"string", - "max":20480, - "min":1, - "pattern":"[\\s\\S]+" - }, "ResponseStreamingInvocationType":{ "type":"string", "enum":[ @@ -5660,12 +5396,6 @@ "DryRun" ] }, - "RevisionId":{ - "type":"string", - "max":36, - "min":36, - "pattern":"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" - }, "RoleArn":{ "type":"string", "pattern":"arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+" diff --git a/tools/code-generation/api-descriptions/organizations-2016-11-28.normal.json b/tools/code-generation/api-descriptions/organizations-2016-11-28.normal.json index a89d4096d16..c45fae4ca12 100644 --- a/tools/code-generation/api-descriptions/organizations-2016-11-28.normal.json +++ b/tools/code-generation/api-descriptions/organizations-2016-11-28.normal.json @@ -60,7 +60,7 @@ {"shape":"UnsupportedAPIEndpointException"}, {"shape":"PolicyChangesInProgressException"} ], - "documentation":"

    Attaches a policy to a root, an organizational unit (OU), or an individual account. How the policy affects accounts depends on the type of policy. Refer to the Organizations User Guide for information about each policy type:

    This operation can be called only from the organization's management account or by a member account that is a delegated administrator for an Amazon Web Services service.

    " + "documentation":"

    Attaches a policy to a root, an organizational unit (OU), or an individual account. How the policy affects accounts depends on the type of policy. Refer to the Organizations User Guide for information about each policy type:

    This operation can be called only from the organization's management account or by a member account that is a delegated administrator for an Amazon Web Services service.

    " }, "CancelHandshake":{ "name":"CancelHandshake", @@ -1661,7 +1661,7 @@ }, "Type":{ "shape":"PolicyType", - "documentation":"

    The type of policy to create. You can specify one of the following values:

    " + "documentation":"

    The type of policy to create. You can specify one of the following values:

    " }, "Tags":{ "shape":"Tags", @@ -1838,7 +1838,7 @@ "members":{ "PolicyType":{ "shape":"EffectivePolicyType", - "documentation":"

    The type of policy that you want information about. You can specify one of the following values:

    " + "documentation":"

    The type of policy that you want information about. You can specify one of the following values:

    " }, "TargetId":{ "shape":"PolicyTargetId", @@ -1978,7 +1978,7 @@ }, "PolicyType":{ "shape":"PolicyType", - "documentation":"

    The policy type that you want to disable in this root. You can specify one of the following values:

    " + "documentation":"

    The policy type that you want to disable in this root. You can specify one of the following values:

    " } } }, @@ -2066,7 +2066,8 @@ "enum":[ "TAG_POLICY", "BACKUP_POLICY", - "AISERVICES_OPT_OUT_POLICY" + "AISERVICES_OPT_OUT_POLICY", + "CHATBOT_POLICY" ] }, "Email":{ @@ -2113,7 +2114,7 @@ }, "PolicyType":{ "shape":"PolicyType", - "documentation":"

    The policy type that you want to enable. You can specify one of the following values:

    " + "documentation":"

    The policy type that you want to enable. You can specify one of the following values:

    " } } }, @@ -2787,7 +2788,7 @@ }, "Filter":{ "shape":"PolicyType", - "documentation":"

    The type of policy that you want to include in the returned list. You must specify one of the following values:

    " + "documentation":"

    The type of policy that you want to include in the returned list. You must specify one of the following values:

    " }, "NextToken":{ "shape":"NextToken", @@ -2818,7 +2819,7 @@ "members":{ "Filter":{ "shape":"PolicyType", - "documentation":"

    Specifies the type of policy that you want to include in the response. You must specify one of the following values:

    " + "documentation":"

    Specifies the type of policy that you want to include in the response. You must specify one of the following values:

    " }, "NextToken":{ "shape":"NextToken", @@ -3266,7 +3267,8 @@ "SERVICE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", - "AISERVICES_OPT_OUT_POLICY" + "AISERVICES_OPT_OUT_POLICY", + "CHATBOT_POLICY" ] }, "PolicyTypeAlreadyEnabledException":{ diff --git a/tools/code-generation/api-descriptions/pcs-2023-02-10.normal.json b/tools/code-generation/api-descriptions/pcs-2023-02-10.normal.json index 0ecd55ea9a1..2f32df5d604 100644 --- a/tools/code-generation/api-descriptions/pcs-2023-02-10.normal.json +++ b/tools/code-generation/api-descriptions/pcs-2023-02-10.normal.json @@ -584,7 +584,7 @@ "customLaunchTemplate":{"shape":"CustomLaunchTemplate"}, "iamInstanceProfileArn":{ "shape":"InstanceProfileArn", - "documentation":"

    The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have pcs:RegisterComputeNodeGroupInstance permissions attached to provision instances correctly.

    " + "documentation":"

    The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have the pcs:RegisterComputeNodeGroupInstance permission. The resource identifier of the ARN must start with AWSPCS or it must have /aws-pcs/ in its path.

    Examples

    • arn:aws:iam::111122223333:instance-profile/AWSPCS-example-role-1

    • arn:aws:iam::111122223333:instance-profile/aws-pcs/example-role-2

    " }, "scalingConfiguration":{"shape":"ScalingConfiguration"}, "instanceConfigs":{ @@ -809,7 +809,7 @@ "customLaunchTemplate":{"shape":"CustomLaunchTemplate"}, "iamInstanceProfileArn":{ "shape":"InstanceProfileArn", - "documentation":"

    The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have pcs:RegisterComputeNodeGroupInstance permissions attached in order to provision instances correctly. The resource identifier of the ARN must start with AWSPCS. For example, arn:aws:iam:123456789012:instance-profile/AWSPCSMyComputeNodeInstanceProfile.

    " + "documentation":"

    The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have the pcs:RegisterComputeNodeGroupInstance permission. The resource identifier of the ARN must start with AWSPCS or it must have /aws-pcs/ in its path.

    Examples

    • arn:aws:iam::111122223333:instance-profile/AWSPCS-example-role-1

    • arn:aws:iam::111122223333:instance-profile/aws-pcs/example-role-2

    " }, "scalingConfiguration":{ "shape":"ScalingConfigurationRequest", @@ -1643,7 +1643,7 @@ "members":{ "parameterName":{ "shape":"String", - "documentation":"

    Amazon Web Services PCS supports configuration of the following Slurm parameters: Prolog , Epilog , and SelectTypeParameters .

    " + "documentation":"

    Amazon Web Services PCS supports configuration of the following Slurm parameters:

    " }, "parameterValue":{ "shape":"String", @@ -1791,7 +1791,7 @@ }, "iamInstanceProfileArn":{ "shape":"InstanceProfileArn", - "documentation":"

    The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have pcs:RegisterComputeNodeGroupInstance permissions attached to provision instances correctly.

    " + "documentation":"

    The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have the pcs:RegisterComputeNodeGroupInstance permission. The resource identifier of the ARN must start with AWSPCS or it must have /aws-pcs/ in its path.

    Examples

    • arn:aws:iam::111122223333:instance-profile/AWSPCS-example-role-1

    • arn:aws:iam::111122223333:instance-profile/aws-pcs/example-role-2

    " }, "slurmConfiguration":{ "shape":"UpdateComputeNodeGroupSlurmConfigurationRequest", diff --git a/tools/code-generation/api-descriptions/rds-data-2018-08-01.normal.json b/tools/code-generation/api-descriptions/rds-data-2018-08-01.normal.json index c5df0342d27..4d05b202a75 100644 --- a/tools/code-generation/api-descriptions/rds-data-2018-08-01.normal.json +++ b/tools/code-generation/api-descriptions/rds-data-2018-08-01.normal.json @@ -2,9 +2,10 @@ "version":"2.0", "metadata":{ "apiVersion":"2018-08-01", + "auth":["aws.auth#sigv4"], "endpointPrefix":"rds-data", - "jsonVersion":"1.1", "protocol":"rest-json", + "protocols":["rest-json"], "serviceFullName":"AWS RDS DataService", "serviceId":"RDS Data", "signatureVersion":"v4", @@ -62,7 +63,7 @@ {"shape":"StatementTimeoutException"}, {"shape":"InternalServerErrorException"} ], - "documentation":"

    Starts a SQL transaction.

    A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24 hours.

    A transaction times out if no calls use its transaction ID in three minutes. If a transaction times out before it's committed, it's rolled back automatically.

    DDL statements inside a transaction cause an implicit commit. We recommend that you run each DDL statement in a separate ExecuteStatement call with continueAfterTimeout enabled.

    " + "documentation":"

    Starts a SQL transaction.

    A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24 hours.

    A transaction times out if no calls use its transaction ID in three minutes. If a transaction times out before it's committed, it's rolled back automatically.

    For Aurora MySQL, DDL statements inside a transaction cause an implicit commit. We recommend that you run each MySQL DDL statement in a separate ExecuteStatement call with continueAfterTimeout enabled.

    " }, "CommitTransaction":{ "name":"CommitTransaction", @@ -107,7 +108,7 @@ {"shape":"ForbiddenException"}, {"shape":"ServiceUnavailableError"} ], - "documentation":"

    Runs one or more SQL statements.

    This operation isn't supported for Aurora PostgreSQL Serverless v2 and provisioned DB clusters, and for Aurora Serverless v1 DB clusters, the operation is deprecated. Use the BatchExecuteStatement or ExecuteStatement operation.

    ", + "documentation":"

    Runs one or more SQL statements.

    This operation isn't supported for Aurora Serverless v2 and provisioned DB clusters. For Aurora Serverless v1 DB clusters, the operation is deprecated. Use the BatchExecuteStatement or ExecuteStatement operation.

    ", "deprecated":true, "deprecatedMessage":"The ExecuteSql API is deprecated, please use the ExecuteStatement API." }, @@ -1054,5 +1055,5 @@ "union":true } }, - "documentation":"

    RDS Data API

    Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these statements, you use the RDS Data API (Data API).

    Data API is available with the following types of Aurora databases:

    • Aurora PostgreSQL - Serverless v2, Serverless v1, and provisioned

    • Aurora MySQL - Serverless v1 only

    For more information about the Data API, see Using RDS Data API in the Amazon Aurora User Guide.

    " + "documentation":"

    RDS Data API

    Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these statements, you use the RDS Data API (Data API).

    Data API is available with the following types of Aurora databases:

    • Aurora PostgreSQL - Serverless v2, provisioned, and Serverless v1

    • Aurora MySQL - Serverless v2, provisioned, and Serverless v1

    For more information about the Data API, see Using RDS Data API in the Amazon Aurora User Guide.

    " } diff --git a/tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json b/tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json index 68ef71f069a..e63889326a5 100644 --- a/tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json +++ b/tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json @@ -8957,6 +8957,10 @@ "shape":"AppSecurityGroupManagement", "documentation":"

    The entity that creates and manages the required security groups for inter-app communication in VPCOnly mode. Required when CreateDomain.AppNetworkAccessType is VPCOnly and DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn is provided. If setting up the domain for use with RStudio, this value must be set to Service.

    " }, + "TagPropagation":{ + "shape":"TagPropagation", + "documentation":"

    Indicates whether custom tag propagation is supported for the domain. Defaults to DISABLED.

    " + }, "DefaultSpaceSettings":{ "shape":"DefaultSpaceSettings", "documentation":"

    The default settings used to create a space.

    " @@ -13762,6 +13766,10 @@ "shape":"AppSecurityGroupManagement", "documentation":"

    The entity that creates and manages the required security groups for inter-app communication in VPCOnly mode. Required when CreateDomain.AppNetworkAccessType is VPCOnly and DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn is provided.

    " }, + "TagPropagation":{ + "shape":"TagPropagation", + "documentation":"

    Indicates whether custom tag propagation is supported for the domain.

    " + }, "DefaultSpaceSettings":{ "shape":"DefaultSpaceSettings", "documentation":"

    The default settings used to create a space.

    " @@ -35740,6 +35748,13 @@ "max":50, "min":0 }, + "TagPropagation":{ + "type":"string", + "enum":[ + "ENABLED", + "DISABLED" + ] + }, "TagValue":{ "type":"string", "max":256, @@ -38131,6 +38146,10 @@ "AppNetworkAccessType":{ "shape":"AppNetworkAccessType", "documentation":"

    Specifies the VPC used for non-EFS traffic.

    • PublicInternetOnly - Non-EFS traffic is through a VPC managed by Amazon SageMaker, which allows direct internet access.

    • VpcOnly - All Studio traffic is through the specified VPC and subnets.

    This configuration can only be modified if there are no apps in the InService, Pending, or Deleting state. The configuration cannot be updated if DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn is already set or DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn is provided as part of the same request.

    " + }, + "TagPropagation":{ + "shape":"TagPropagation", + "documentation":"

    Indicates whether custom tag propagation is supported for the domain. Defaults to DISABLED.

    " } } },