Skip to content
v2.278.0

AlexaSkillDeployActionProps Struct ​

Construction properties of the AlexaSkillDeployAction Alexa deploy Action.

Example ​

ts
// Read the secrets from ParameterStore
const clientId = SecretValue.secretsManager('AlexaClientId');
const clientSecret = SecretValue.secretsManager('AlexaClientSecret');
const refreshToken = SecretValue.secretsManager('AlexaRefreshToken');

// Add deploy action
const sourceOutput = new codepipeline.Artifact();
new codepipeline_actions.AlexaSkillDeployAction({
  actionName: 'DeploySkill',
  runOrder: 1,
  input: sourceOutput,
  clientId: clientId.toString(),
  clientSecret: clientSecret,
  refreshToken: refreshToken,
  skillId: 'amzn1.ask.skill.12345678-1234-1234-1234-123456789012',
});
python
# Read the secrets from ParameterStore
client_id = SecretValue.secrets_manager("AlexaClientId")
client_secret = SecretValue.secrets_manager("AlexaClientSecret")
refresh_token = SecretValue.secrets_manager("AlexaRefreshToken")

# Add deploy action
source_output = codepipeline.Artifact()
codepipeline_actions.AlexaSkillDeployAction(
    action_name="DeploySkill",
    run_order=1,
    input=source_output,
    client_id=client_id.to_string(),
    client_secret=client_secret,
    refresh_token=refresh_token,
    skill_id="amzn1.ask.skill.12345678-1234-1234-1234-123456789012"
)
java
// Read the secrets from ParameterStore
SecretValue clientId = SecretValue.secretsManager("AlexaClientId");
SecretValue clientSecret = SecretValue.secretsManager("AlexaClientSecret");
SecretValue refreshToken = SecretValue.secretsManager("AlexaRefreshToken");

// Add deploy action
Artifact sourceOutput = new Artifact();
AlexaSkillDeployAction.Builder.create()
        .actionName("DeploySkill")
        .runOrder(1)
        .input(sourceOutput)
        .clientId(clientId.toString())
        .clientSecret(clientSecret)
        .refreshToken(refreshToken)
        .skillId("amzn1.ask.skill.12345678-1234-1234-1234-123456789012")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// Read the secrets from ParameterStore
var clientId = SecretValue.SecretsManager("AlexaClientId");
var clientSecret = SecretValue.SecretsManager("AlexaClientSecret");
var refreshToken = SecretValue.SecretsManager("AlexaRefreshToken");

// Add deploy action
var sourceOutput = new Artifact();
new AlexaSkillDeployAction(new AlexaSkillDeployActionProps {
    ActionName = "DeploySkill",
    RunOrder = 1,
    Input = sourceOutput,
    ClientId = clientId.ToString(),
    ClientSecret = clientSecret,
    RefreshToken = refreshToken,
    SkillId = "amzn1.ask.skill.12345678-1234-1234-1234-123456789012"
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// Read the secrets from ParameterStore
clientId := awscdk.SecretValue_SecretsManager(jsii.String("AlexaClientId"))
clientSecret := awscdk.SecretValue_SecretsManager(jsii.String("AlexaClientSecret"))
refreshToken := awscdk.SecretValue_SecretsManager(jsii.String("AlexaRefreshToken"))

// Add deploy action
sourceOutput := codepipeline.NewArtifact()
codepipeline_actions.NewAlexaSkillDeployAction(&AlexaSkillDeployActionProps{
	ActionName: jsii.String("DeploySkill"),
	RunOrder: jsii.Number(1),
	Input: sourceOutput,
	ClientId: clientId.ToString(),
	ClientSecret: clientSecret,
	RefreshToken: refreshToken,
	SkillId: jsii.String("amzn1.ask.skill.12345678-1234-1234-1234-123456789012"),
})

Properties ​

actionNamestringaction_namestractionNameStringActionNamestringActionName*string required #
The physical, human-readable name of the Action.

Note that Action names must be unique within a single Stage.

clientIdstringclient_idstrclientIdStringClientIdstringClientId*string required #
The client id of the developer console token.
clientSecretSecretValueclient_secretSecretValueclientSecretSecretValueClientSecretSecretValueClientSecretSecretValue required #
The client secret of the developer console token.
inputArtifactinputArtifactinputArtifactInputArtifactInputArtifact required #
The source artifact containing the voice model and skill manifest.
parameterOverridesArtifactoptionalArtifactparameter_overrides_artifactoptionalArtifactparameterOverridesArtifactoptionalArtifactParameterOverridesArtifactoptionalArtifactParameterOverridesArtifactoptionalArtifact #
An optional artifact containing overrides for the skill manifest.
refreshTokenSecretValuerefresh_tokenSecretValuerefreshTokenSecretValueRefreshTokenSecretValueRefreshTokenSecretValue required #
The refresh token of the developer console token.
runOrderoptionalnumberrun_orderoptionalint | floatrunOrderoptionalNumberRunOrderoptionaldoubleRunOrderoptional*float64 = 1 #
The runOrder property for this Action.

RunOrder determines the relative order in which multiple Actions in the same Stage execute.

skillIdstringskill_idstrskillIdStringSkillIdstringSkillId*string required #
The Alexa skill id.
variablesNamespaceoptionalstringvariables_namespaceoptionalstrvariablesNamespaceoptionalStringVariablesNamespaceoptionalstringVariablesNamespaceoptional*string #
The name of the namespace to use for variables emitted by this action.

Default: a name will be generated, based on the stage and action names, if any of the action's variables were referenced - otherwise, no namespace will be set