CfnCloudFormationProductPropsMixin
- class aws_cdk.mixins_preview.aws_servicecatalog.mixins.CfnCloudFormationProductPropsMixin(props, *, strategy=None)
Bases:
MixinSpecifies a product.
- See:
- CloudformationResource:
AWS::ServiceCatalog::CloudFormationProduct
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_servicecatalog import mixins as servicecatalog_mixins # info: Any cfn_cloud_formation_product_props_mixin = servicecatalog_mixins.CfnCloudFormationProductPropsMixin(servicecatalog_mixins.CfnCloudFormationProductMixinProps( accept_language="acceptLanguage", description="description", distributor="distributor", name="name", owner="owner", product_type="productType", provisioning_artifact_parameters=[servicecatalog_mixins.CfnCloudFormationProductPropsMixin.ProvisioningArtifactPropertiesProperty( description="description", disable_template_validation=False, info=info, name="name", type="type" )], replace_provisioning_artifacts=False, source_connection=servicecatalog_mixins.CfnCloudFormationProductPropsMixin.SourceConnectionProperty( connection_parameters=servicecatalog_mixins.CfnCloudFormationProductPropsMixin.ConnectionParametersProperty( code_star=servicecatalog_mixins.CfnCloudFormationProductPropsMixin.CodeStarParametersProperty( artifact_path="artifactPath", branch="branch", connection_arn="connectionArn", repository="repository" ) ), type="type" ), support_description="supportDescription", support_email="supportEmail", support_url="supportUrl", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::ServiceCatalog::CloudFormationProduct.- Parameters:
props (
Union[CfnCloudFormationProductMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['acceptLanguage', 'description', 'distributor', 'name', 'owner', 'productType', 'provisioningArtifactParameters', 'replaceProvisioningArtifacts', 'sourceConnection', 'supportDescription', 'supportEmail', 'supportUrl', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
CodeStarParametersProperty
- class CfnCloudFormationProductPropsMixin.CodeStarParametersProperty(*, artifact_path=None, branch=None, connection_arn=None, repository=None)
Bases:
objectThe subtype containing details about the Codestar connection
Type.- Parameters:
artifact_path (
Optional[str]) – The absolute path wehre the artifact resides within the repo and branch, formatted as “folder/file.json.”.branch (
Optional[str]) – The specific branch where the artifact resides.connection_arn (
Optional[str]) – The CodeStar ARN, which is the connection between AWS Service Catalog and the external repository.repository (
Optional[str]) – The specific repository where the product’s artifact-to-be-synced resides, formatted as “Account/Repo.”.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_servicecatalog import mixins as servicecatalog_mixins code_star_parameters_property = servicecatalog_mixins.CfnCloudFormationProductPropsMixin.CodeStarParametersProperty( artifact_path="artifactPath", branch="branch", connection_arn="connectionArn", repository="repository" )
Attributes
- artifact_path
The absolute path wehre the artifact resides within the repo and branch, formatted as “folder/file.json.”.
- branch
The specific branch where the artifact resides.
- connection_arn
The CodeStar ARN, which is the connection between AWS Service Catalog and the external repository.
- repository
The specific repository where the product’s artifact-to-be-synced resides, formatted as “Account/Repo.”.
ConnectionParametersProperty
- class CfnCloudFormationProductPropsMixin.ConnectionParametersProperty(*, code_star=None)
Bases:
objectProvides connection details.
- Parameters:
code_star (
Union[IResolvable,CodeStarParametersProperty,Dict[str,Any],None]) – ProvidesConnectionTypedetails.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_servicecatalog import mixins as servicecatalog_mixins connection_parameters_property = servicecatalog_mixins.CfnCloudFormationProductPropsMixin.ConnectionParametersProperty( code_star=servicecatalog_mixins.CfnCloudFormationProductPropsMixin.CodeStarParametersProperty( artifact_path="artifactPath", branch="branch", connection_arn="connectionArn", repository="repository" ) )
Attributes
ProvisioningArtifactPropertiesProperty
- class CfnCloudFormationProductPropsMixin.ProvisioningArtifactPropertiesProperty(*, description=None, disable_template_validation=None, info=None, name=None, type=None)
Bases:
objectInformation about a provisioning artifact (also known as a version) for a product.
- Parameters:
description (
Optional[str]) – The description of the provisioning artifact, including how it differs from the previous provisioning artifact.disable_template_validation (
Union[bool,IResolvable,None]) – If set to true, AWS Service Catalog stops validating the specified provisioning artifact even if it is invalid.info (
Any) – Specify the template source with one of the following options, but not both. Keys accepted: [LoadTemplateFromURL,ImportFromPhysicalId] The URL of the AWS CloudFormation template in Amazon S3 in JSON format. Specify the URL in JSON format as follows:"LoadTemplateFromURL": "https://s3.amazonaws.com/cf-templates-ozkq9d3hgiq2-us-east-1/..."ImportFromPhysicalId: The physical id of the resource that contains the template. Currently only supports AWS CloudFormation stack arn. Specify the physical id in JSON format as follows:ImportFromPhysicalId: “arn:aws:cloudformation:[us-east-1]:[accountId]:stack/[StackName]/[resourceId]name (
Optional[str]) – The name of the provisioning artifact (for example, v1 v2beta). No spaces are allowed.type (
Optional[str]) – The type of provisioning artifact. -CLOUD_FORMATION_TEMPLATE- AWS CloudFormation template -TERRAFORM_OPEN_SOURCE- Terraform Open Source configuration file -TERRAFORM_CLOUD- Terraform Cloud configuration file -EXTERNAL- External configuration file
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_servicecatalog import mixins as servicecatalog_mixins # info: Any provisioning_artifact_properties_property = servicecatalog_mixins.CfnCloudFormationProductPropsMixin.ProvisioningArtifactPropertiesProperty( description="description", disable_template_validation=False, info=info, name="name", type="type" )
Attributes
- description
The description of the provisioning artifact, including how it differs from the previous provisioning artifact.
- disable_template_validation
If set to true, AWS Service Catalog stops validating the specified provisioning artifact even if it is invalid.
- info
Specify the template source with one of the following options, but not both.
Keys accepted: [
LoadTemplateFromURL,ImportFromPhysicalId]The URL of the AWS CloudFormation template in Amazon S3 in JSON format. Specify the URL in JSON format as follows:
"LoadTemplateFromURL": "https://s3.amazonaws.com/cf-templates-ozkq9d3hgiq2-us-east-1/..."ImportFromPhysicalId: The physical id of the resource that contains the template. Currently only supports AWS CloudFormation stack arn. Specify the physical id in JSON format as follows:ImportFromPhysicalId: “arn:aws:cloudformation:[us-east-1]:[accountId]:stack/[StackName]/[resourceId]
- name
The name of the provisioning artifact (for example, v1 v2beta).
No spaces are allowed.
- type
The type of provisioning artifact.
CLOUD_FORMATION_TEMPLATE- AWS CloudFormation templateTERRAFORM_OPEN_SOURCE- Terraform Open Source configuration fileTERRAFORM_CLOUD- Terraform Cloud configuration fileEXTERNAL- External configuration file
SourceConnectionProperty
- class CfnCloudFormationProductPropsMixin.SourceConnectionProperty(*, connection_parameters=None, type=None)
Bases:
objectA top level
ProductViewDetailresponse containing details about the product’s connection.AWS Service Catalog returns this field for the
CreateProduct,UpdateProduct,DescribeProductAsAdmin, andSearchProductAsAdminAPIs. This response contains the same fields as theConnectionParametersrequest, with the addition of theLastSyncresponse.- Parameters:
connection_parameters (
Union[IResolvable,ConnectionParametersProperty,Dict[str,Any],None]) – The connection details based on the connectionType.type (
Optional[str]) – The only supportedSourceConnectiontype is Codestar.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_servicecatalog import mixins as servicecatalog_mixins source_connection_property = servicecatalog_mixins.CfnCloudFormationProductPropsMixin.SourceConnectionProperty( connection_parameters=servicecatalog_mixins.CfnCloudFormationProductPropsMixin.ConnectionParametersProperty( code_star=servicecatalog_mixins.CfnCloudFormationProductPropsMixin.CodeStarParametersProperty( artifact_path="artifactPath", branch="branch", connection_arn="connectionArn", repository="repository" ) ), type="type" )
Attributes
- connection_parameters
The connection details based on the connection
Type.
- type
The only supported
SourceConnectiontype is Codestar.