update_gateway
¶
update_gateway(
gateway_identifier: GatewayIdentifier,
name: GatewayName,
role_arn: RoleArn,
authorizer_type: AuthorizerType,
*,
config_overrides: Optional[BedrockAgentCoreControlClientConfig] = None,
description: Optional[GatewayDescription] = None,
protocol_type: Optional[GatewayProtocolType] = None,
protocol_configuration: Optional[GatewayProtocolConfiguration] = None,
authorizer_configuration: Optional[AuthorizerConfiguration] = None,
kms_key_arn: Optional[KmsKeyArn] = None,
custom_transform_configuration: Optional[CustomTransformConfiguration] = None,
interceptor_configurations: Optional[GatewayInterceptorConfigurations] = None,
policy_engine_configuration: Optional[GatewayPolicyEngineConfiguration] = None,
exception_level: Optional[ExceptionLevel] = None,
waf_configuration: Optional[WafConfiguration] = None,
) -> UpdateGatewayResponse
Updates an existing gateway.
Parameters:
-
gateway_identifier(GatewayIdentifier) –The identifier of the gateway to update.
-
name(GatewayName) –The name of the gateway. This name must be the same as the one when the gateway was created.
-
description(Optional[GatewayDescription], default:None) –The updated description for the gateway.
-
role_arn(RoleArn) –The updated IAM role ARN that provides permissions for the gateway.
-
protocol_type(Optional[GatewayProtocolType], default:None) –The updated protocol type for the gateway.
-
authorizer_type(AuthorizerType) –The updated authorizer type for the gateway.
-
authorizer_configuration(Optional[AuthorizerConfiguration], default:None) –The updated authorizer configuration for the gateway.
-
kms_key_arn(Optional[KmsKeyArn], default:None) –The updated ARN of the KMS key used to encrypt the gateway.
-
custom_transform_configuration(Optional[CustomTransformConfiguration], default:None) –The updated custom transformation configuration for the gateway. This configuration defines how the gateway transforms requests and responses.
-
interceptor_configurations(Optional[GatewayInterceptorConfigurations], default:None) –The updated interceptor configurations for the gateway.
-
policy_engine_configuration(Optional[GatewayPolicyEngineConfiguration], default:None) –The updated policy engine configuration for the gateway. A policy engine is a collection of policies that evaluates and authorizes agent tool calls. When associated with a gateway, the policy engine intercepts all agent requests and determines whether to allow or deny each action based on the defined policies.
-
exception_level(Optional[ExceptionLevel], default:None) –The level of detail in error messages returned when invoking the gateway.
-
If the value is
DEBUG, granular exception messages are returned to help a user debug the gateway. -
If the value is omitted, a generic error message is returned to the end user.
-
-
waf_configuration(Optional[WafConfiguration], default:None) –The updated Amazon Web Services WAF configuration for the gateway.
Raises:
-
AccessDeniedException–This exception is thrown when a request is denied per access permissions
-
ConflictException–This exception is thrown when there is a conflict performing an operation
-
InternalServerException–This exception is thrown if there was an unexpected error during processing of request
-
ResourceNotFoundException–This exception is thrown when a resource referenced by the operation does not exist
-
ServiceQuotaExceededException–This exception is thrown when a request is made beyond the service quota
-
ThrottlingException–This exception is thrown when the number of requests exceeds the limit
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agentcore_control/_services/bedrock_agent_core_control.py
6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 | |