CfnCustomActionTypeProps Struct
Properties for defining a CfnCustomActionType.
| Source |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codepipeline as codepipeline } from 'aws-cdk-lib';
const cfnCustomActionTypeProps: codepipeline.CfnCustomActionTypeProps = {
category: 'category',
inputArtifactDetails: {
maximumCount: 123,
minimumCount: 123,
},
outputArtifactDetails: {
maximumCount: 123,
minimumCount: 123,
},
provider: 'provider',
version: 'version',
// the properties below are optional
configurationProperties: [{
key: false,
name: 'name',
required: false,
secret: false,
// the properties below are optional
description: 'description',
queryable: false,
type: 'type',
}],
settings: {
entityUrlTemplate: 'entityUrlTemplate',
executionUrlTemplate: 'executionUrlTemplate',
revisionUrlTemplate: 'revisionUrlTemplate',
thirdPartyConfigurationUrl: 'thirdPartyConfigurationUrl',
},
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codepipeline as codepipeline
cfn_custom_action_type_props = codepipeline.CfnCustomActionTypeProps(
category="category",
input_artifact_details=codepipeline.CfnCustomActionType.ArtifactDetailsProperty(
maximum_count=123,
minimum_count=123
),
output_artifact_details=codepipeline.CfnCustomActionType.ArtifactDetailsProperty(
maximum_count=123,
minimum_count=123
),
provider="provider",
version="version",
# the properties below are optional
configuration_properties=[codepipeline.CfnCustomActionType.ConfigurationPropertiesProperty(
key=False,
name="name",
required=False,
secret=False,
# the properties below are optional
description="description",
queryable=False,
type="type"
)],
settings=codepipeline.CfnCustomActionType.SettingsProperty(
entity_url_template="entityUrlTemplate",
execution_url_template="executionUrlTemplate",
revision_url_template="revisionUrlTemplate",
third_party_configuration_url="thirdPartyConfigurationUrl"
),
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codepipeline.*;
CfnCustomActionTypeProps cfnCustomActionTypeProps = CfnCustomActionTypeProps.builder()
.category("category")
.inputArtifactDetails(ArtifactDetailsProperty.builder()
.maximumCount(123)
.minimumCount(123)
.build())
.outputArtifactDetails(ArtifactDetailsProperty.builder()
.maximumCount(123)
.minimumCount(123)
.build())
.provider("provider")
.version("version")
// the properties below are optional
.configurationProperties(List.of(ConfigurationPropertiesProperty.builder()
.key(false)
.name("name")
.required(false)
.secret(false)
// the properties below are optional
.description("description")
.queryable(false)
.type("type")
.build()))
.settings(SettingsProperty.builder()
.entityUrlTemplate("entityUrlTemplate")
.executionUrlTemplate("executionUrlTemplate")
.revisionUrlTemplate("revisionUrlTemplate")
.thirdPartyConfigurationUrl("thirdPartyConfigurationUrl")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodePipeline;
var cfnCustomActionTypeProps = new CfnCustomActionTypeProps {
Category = "category",
InputArtifactDetails = new ArtifactDetailsProperty {
MaximumCount = 123,
MinimumCount = 123
},
OutputArtifactDetails = new ArtifactDetailsProperty {
MaximumCount = 123,
MinimumCount = 123
},
Provider = "provider",
Version = "version",
// the properties below are optional
ConfigurationProperties = new [] { new ConfigurationPropertiesProperty {
Key = false,
Name = "name",
Required = false,
Secret = false,
// the properties below are optional
Description = "description",
Queryable = false,
Type = "type"
} },
Settings = new SettingsProperty {
EntityUrlTemplate = "entityUrlTemplate",
ExecutionUrlTemplate = "executionUrlTemplate",
RevisionUrlTemplate = "revisionUrlTemplate",
ThirdPartyConfigurationUrl = "thirdPartyConfigurationUrl"
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnCustomActionTypeProps := &CfnCustomActionTypeProps{
Category: jsii.String("category"),
InputArtifactDetails: &ArtifactDetailsProperty{
MaximumCount: jsii.Number(123),
MinimumCount: jsii.Number(123),
},
OutputArtifactDetails: &ArtifactDetailsProperty{
MaximumCount: jsii.Number(123),
MinimumCount: jsii.Number(123),
},
Provider: jsii.String("provider"),
Version: jsii.String("version"),
// the properties below are optional
ConfigurationProperties: []interface{}{
&ConfigurationPropertiesProperty{
Key: jsii.Boolean(false),
Name: jsii.String("name"),
Required: jsii.Boolean(false),
Secret: jsii.Boolean(false),
// the properties below are optional
Description: jsii.String("description"),
Queryable: jsii.Boolean(false),
Type: jsii.String("type"),
},
},
Settings: &SettingsProperty{
EntityUrlTemplate: jsii.String("entityUrlTemplate"),
ExecutionUrlTemplate: jsii.String("executionUrlTemplate"),
RevisionUrlTemplate: jsii.String("revisionUrlTemplate"),
ThirdPartyConfigurationUrl: jsii.String("thirdPartyConfigurationUrl"),
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
The category of the custom action, such as a build action or a test action.
configurationPropertiesoptionalIResolvable | IResolvable | CfnCustomActionType.configuration_propertiesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ConfigurationPropertiesProperty]]]configurationPropertiesoptionalIResolvableConfigurationPropertiesoptionalIResolvableConfigurationPropertiesoptionalinterface{} #The configuration properties for the custom action.
notes
You can refer to a name in the configuration properties of the custom action within the URL templates by following the format of {Config:name}, as long as the configuration property is both required and not secret. For more information, see Create a Custom Action for a Pipeline .
inputArtifactDetailsIResolvable | CfnCustomActionType.input_artifact_detailstyping.Union[IResolvable, ArtifactDetailsProperty]inputArtifactDetailsIResolvableInputArtifactDetailsIResolvableInputArtifactDetailsinterface{} required #The details of the input artifact for the action, such as its commit ID.
outputArtifactDetailsIResolvable | CfnCustomActionType.output_artifact_detailstyping.Union[IResolvable, ArtifactDetailsProperty]outputArtifactDetailsIResolvableOutputArtifactDetailsIResolvableOutputArtifactDetailsinterface{} required #The details of the output artifact of the action, such as its commit ID.
The provider of the service used in the custom action, such as CodeDeploy.
settingsoptionalIResolvable | CfnCustomActionType.settingsoptionaltyping.Union[IResolvable, SettingsProperty]settingsoptionalIResolvableSettingsoptionalIResolvableSettingsoptionalinterface{} #URLs that provide users information about this custom action.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #The tags for the custom action.
The version identifier of the custom action.