create_resource_provider
¶
create_resource_provider(
appliance_arn: ApplianceArn,
provider_configuration: ResourceProviderConfiguration,
provider_type: ResourceProviderType,
target_configuration: ResourceTargetConfigurations,
*,
config_overrides: Optional[BackupExternalClientConfig] = None,
client_token: Optional[ClientToken] = None,
name: Optional[ResourceName] = None,
secret_configuration_arn: Optional[SecretConfigurationArn] = None,
tags: Optional[AwsTagMap] = None,
target_tags_on_create: Optional[ResourceTargetTagsOnCreate] = None,
target_tag_keys_to_sync: Optional[ResourceTargetTagKeyToSyncList] = None,
auto_delete_not_found_targets_after_days: Optional[int] = None,
) -> CreateResourceProviderOutput
Creates a resource provider on the specified appliance with configuration for the provider and its resource targets.
Parameters:
-
appliance_arn(ApplianceArn) –The Amazon Resource Name (ARN) of the appliance.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure that the request is idempotent.
-
name(Optional[ResourceName], default:None) –The name of the resource provider.
-
provider_configuration(ResourceProviderConfiguration) –The configuration of the resource provider.
-
provider_type(ResourceProviderType) –The type of resource provider.
-
secret_configuration_arn(Optional[SecretConfigurationArn], default:None) –The Amazon Resource Name (ARN) of the AWS Secrets Manager secret used to access the resource provider.
-
tags(Optional[AwsTagMap], default:None) –The tags to associate with the resource provider.
-
target_configuration(ResourceTargetConfigurations) –The default backup configurations for the resource provider's resource targets, by target type.
-
target_tags_on_create(Optional[ResourceTargetTagsOnCreate], default:None) –The tags to apply when the resource provider's resource targets are created.
-
target_tag_keys_to_sync(Optional[ResourceTargetTagKeyToSyncList], default:None) –The tag keys whose values are synchronized from external resources to their resource targets.
-
auto_delete_not_found_targets_after_days(Optional[int], default:None) –The number of days after which resource targets with a status of
NOT_FOUNDare automatically deleted.
Raises:
-
AccessDeniedException–The request was denied because you do not have permission to perform the requested operation.
-
ConflictException–The request conflicts with the current state of the specified resource.
-
InternalServerException–The request failed because of an internal server error.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The request was denied because the request rate is too high.
-
ValidationException–The request contains invalid parameters.
-
ServiceQuotaExceededException–The request would exceed a service quota.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_backup_external/_services/backup_external.py
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 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 | |