create_agent_space
¶
create_agent_space(
name: AgentSpaceName,
*,
config_overrides: Optional[DevOpsAgentClientConfig] = None,
description: Optional[Description] = None,
locale: Optional[Locale] = None,
kms_key_arn: Optional[KmsKeyArn] = None,
client_token: Optional[str] = None,
tags: Optional[Tags] = None,
preferences: Optional[AgentSpacePreferences] = None,
) -> CreateAgentSpaceOutput
Creates a new AgentSpace with the specified name and description. Duplicate space names are allowed.
Parameters:
-
name(AgentSpaceName) –The name of the AgentSpace.
-
description(Optional[Description], default:None) –The description of the AgentSpace.
-
locale(Optional[Locale], default:None) –The locale for the AgentSpace, which determines the language used in agent responses.
-
kms_key_arn(Optional[KmsKeyArn], default:None) –The ARN of the AWS Key Management Service (AWS KMS) customer managed key that's used to encrypt resources.
-
client_token(Optional[str], default:None) –Client-provided token to ensure request idempotency. When the same token is provided in subsequent calls, the same response is returned within a 8-hour window.
-
tags(Optional[Tags], default:None) –Tags to add to the AgentSpace at creation time.
-
preferences(Optional[AgentSpacePreferences], default:None) –The preferences to configure on the agent space. Preferences not provided take their default values.
Raises:
-
AccessDeniedException–Access to the requested resource is denied due to insufficient permissions.
-
ConflictException–The request conflicts with the current state of the resource.
-
ContentSizeExceededException–This exception is thrown when the content size exceeds the allowed limit.
-
InternalServerException–This exception is thrown when an unexpected error occurs in the processing of a request.
-
InvalidParameterException–One or more parameters provided in the request are invalid.
-
ResourceNotFoundException–The requested resource could not be found.
-
ServiceQuotaExceededException–The request would exceed the service quota limit.
-
ThrottlingException–The request was throttled due to too many requests. Please slow down and try again.
-
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_devops_agent/_services/dev_ops_agent.py
3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 | |