create_connector
¶
create_connector(
connector_configuration: ConnectorConfiguration,
role_arn: RoleArn,
name: ConnectorName,
*,
config_overrides: Optional[ObservabilityAdminClientConfig] = None,
tags: Optional[TagMapInput] = None,
client_token: Optional[ClientToken] = None,
) -> CreateConnectorOutput
Creates a connector to a third-party cloud provider. With a connector, you can discover resources in the provider and collect their telemetry. Currently, Microsoft Azure is the only supported provider.
Parameters:
-
connector_configuration(ConnectorConfiguration) –The configuration for connecting to the third-party cloud provider.
-
role_arn(RoleArn) –The Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that CloudWatch assumes to get credentials for the third-party cloud provider. The role must trust the Amazon CloudWatch Observability Admin service principal,
observabilityadmin.amazonaws.com. The role must also allowsts:GetWebIdentityTokenfor the provider's token exchange audience. -
name(ConnectorName) –The name of the connector. The name must be unique in the account and Region (case-sensitive). If another connector already uses the name, the request fails with a
ConflictException.The name can contain letters, digits, hyphens (-), underscores (_) and periods (.), and must start with a letter.
-
tags(Optional[TagMapInput], default:None) –The tags that you want to apply to the connector.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the operation completes no more than one time. If you use an Amazon Web Services SDK, the SDK generates this value and reuses it on retries. If this token matches a previous request with the same parameters, the service returns the connector from the first request without an error. If you use the same token with different parameters, including different tags, the service returns a
ValidationException. This operation is idempotent when you use the same token and parameters.
Raises:
-
AccessDeniedException–Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management for Amazon Web Services resources in the IAM user guide.
-
ConflictException–The requested operation conflicts with the current state of the specified resource or with another request.
-
InternalServerException–Indicates the request has failed to process because of an unknown server error, exception, or failure.
-
ServiceQuotaExceededException–The requested operation would exceed the allowed quota for the specified resource type.
-
TooManyRequestsException–The request throughput limit was exceeded.
-
ValidationException–Indicates input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_observabilityadmin/_services/observability_admin.py
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 | |