create_application
async
¶
create_application(
name: ApplicationName,
namespace: ApplicationNamespace,
application_source_config: ApplicationSourceConfig,
*,
config_overrides: Optional[AsyncAppIntegrationsClientConfig] = None,
description: Optional[Description] = None,
subscriptions: Optional[SubscriptionList] = None,
publications: Optional[PublicationList] = None,
client_token: Optional[IdempotencyToken] = None,
tags: Optional[TagMap] = None,
permissions: Optional[PermissionList] = None,
is_service: Optional[Boolean] = None,
initialization_timeout: Optional[InitializationTimeout] = None,
application_config: Optional[ApplicationConfig] = None,
iframe_config: Optional[IframeConfig] = None,
application_type: Optional[ApplicationType] = None,
auth_config: Optional[AuthConfig] = None,
) -> CreateApplicationResponse
Creates and persists an Application resource.
Parameters:
-
name(ApplicationName) –The name of the application.
-
namespace(ApplicationNamespace) –The namespace of the application.
-
description(Optional[Description], default:None) –The description of the application.
-
application_source_config(ApplicationSourceConfig) –The configuration for where the application should be loaded from.
-
subscriptions(Optional[SubscriptionList], default:None) –The events that the application subscribes.
-
publications(Optional[PublicationList], default:None) –The events that the application publishes.
-
client_token(Optional[IdempotencyToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
-
tags(Optional[TagMap], default:None) –The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
-
permissions(Optional[PermissionList], default:None) –The configuration of events or requests that the application has access to.
-
is_service(Optional[Boolean], default:None) –Indicates whether the application is a service.
-
initialization_timeout(Optional[InitializationTimeout], default:None) –The maximum time in milliseconds allowed to establish a connection with the workspace.
-
application_config(Optional[ApplicationConfig], default:None) –The configuration settings for the application.
-
iframe_config(Optional[IframeConfig], default:None) –The iframe configuration for the application.
-
application_type(Optional[ApplicationType], default:None) –The type of application.
-
auth_config(Optional[AuthConfig], default:None) –The authentication settings that Connect Customer uses when calling the external application.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
DuplicateResourceException–A resource with the specified name already exists.
-
InternalServiceError–Request processing failed due to an error or failure with the service.
-
InvalidRequestException–The request is not valid.
-
ResourceQuotaExceededException–The allowed quota for the resource has been exceeded.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnsupportedOperationException–The operation is not supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To create an application The following creates an application named My Application with access url https://example.com.
>>> await client.create_application(name='My Application', namespace='myapplication', description='My first application.', application_source_config={'ExternalUrlConfig': {'AccessUrl': 'https://example.com'}})
Source code in docs_src/capo_appintegrations/_services/async_app_integrations.py
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 | |