create_agent_space
async
¶
create_agent_space(
name: AgentSpaceName,
*,
config_overrides: Optional[AsyncDevOpsAgentClientConfig] = 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,
aws_source_mode: Optional[AwsSourceMode] = 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.
-
aws_source_mode(Optional[AwsSourceMode], default:None) –Specifies whether the AgentSpace's Amazon Web Services source configuration targets an individual Amazon Web Services account or an Amazon Web Services Organization.
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/async_dev_ops_agent.py
3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 | |