activate_type
¶
activate_type(
*,
config_overrides: Optional[CloudFormationClientConfig] = None,
type: Optional[ThirdPartyType] = None,
public_type_arn: Optional[ThirdPartyTypeArn] = None,
publisher_id: Optional[PublisherId] = None,
type_name: Optional[TypeName] = None,
type_name_alias: Optional[TypeName] = None,
auto_update: Optional[AutoUpdate] = None,
logging_config: Optional[LoggingConfig] = None,
execution_role_arn: Optional[RoleARN2] = None,
version_bump: Optional[VersionBump] = None,
major_version: Optional[MajorVersion] = None,
) -> ActivateTypeOutput
Activates a public third-party extension, such as a resource or module, to make it available for use in stack templates in your current account and Region. It can also create CloudFormation Hooks, which allow you to evaluate resource configurations before CloudFormation provisions them. Hooks integrate with both CloudFormation and Cloud Control API operations.
After you activate an extension, you can use SetTypeConfiguration to set specific properties for the extension.
To see which extensions have been activated, use ListTypes. To see configuration details for an extension, use DescribeType.
For more information, see Activate a third-party public extension in your account in the CloudFormation User Guide. For information about creating Hooks, see the CloudFormation Hooks User Guide.
Parameters:
-
type(Optional[ThirdPartyType], default:None) –The extension type.
Conditional: You must specify
PublicTypeArn, orTypeName,Type, andPublisherId. -
public_type_arn(Optional[ThirdPartyTypeArn], default:None) –The Amazon Resource Name (ARN) of the public extension.
Conditional: You must specify
PublicTypeArn, orTypeName,Type, andPublisherId. -
publisher_id(Optional[PublisherId], default:None) –The ID of the extension publisher.
Conditional: You must specify
PublicTypeArn, orTypeName,Type, andPublisherId. -
type_name(Optional[TypeName], default:None) –The name of the extension.
Conditional: You must specify
PublicTypeArn, orTypeName,Type, andPublisherId. -
type_name_alias(Optional[TypeName], default:None) –An alias to assign to the public extension in this account and Region. If you specify an alias for the extension, CloudFormation treats the alias as the extension type name within this account and Region. You must use the alias to refer to the extension in your templates, API calls, and CloudFormation console.
An extension alias must be unique within a given account and Region. You can activate the same public resource multiple times in the same account and Region, using different type name aliases.
-
auto_update(Optional[AutoUpdate], default:None) –Whether to automatically update the extension in this account and Region when a new minor version is published by the extension publisher. Major versions released by the publisher must be manually updated.
The default is
true. -
logging_config(Optional[LoggingConfig], default:None) –Contains logging configuration information for an extension.
-
execution_role_arn(Optional[RoleARN2], default:None) –The name of the IAM execution role to use to activate the extension.
-
version_bump(Optional[VersionBump], default:None) –Manually updates a previously-activated type to a new major or minor version, if available. You can also use this parameter to update the value of
AutoUpdate.-
MAJOR: CloudFormation updates the extension to the newest major version, if one is available. -
MINOR: CloudFormation updates the extension to the newest minor version, if one is available.
-
-
major_version(Optional[MajorVersion], default:None) –The major version of this extension you want to activate, if multiple major versions are available. The default is the latest major version. CloudFormation uses the latest available minor version of the major version selected.
You can specify
MajorVersionorVersionBump, but not both.
Raises:
-
CFNRegistryException–An error occurred during a CloudFormation registry operation.
-
TypeNotFoundException–The specified extension doesn't exist in the CloudFormation registry.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudformation/_services/cloud_formation.py
516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 | |