aws-cdk-lib.aws_codepipeline_actions.AlexaSkillDeployAction

class AlexaSkillDeployAction

LanguageType name
.NETAmazon.CDK.AWS.CodePipeline.Actions.AlexaSkillDeployAction
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodepipelineactions#AlexaSkillDeployAction
Javasoftware.amazon.awscdk.services.codepipeline.actions.AlexaSkillDeployAction
Pythonaws_cdk.aws_codepipeline_actions.AlexaSkillDeployAction
TypeScript (source)aws-cdk-lib » aws_codepipeline_actions » AlexaSkillDeployAction

Implements IAction

Extends Action

Deploys the skill to Alexa.

Example

// 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',
});

Initializer

new AlexaSkillDeployAction(props: AlexaSkillDeployActionProps)

Parameters

  • props AlexaSkillDeployActionProps

Properties

NameTypeDescription
actionPropertiesActionPropertiesThe simple properties of the Action, like its Owner, name, etc.

actionProperties

Type: ActionProperties

The simple properties of the Action, like its Owner, name, etc.

Note that this accessor will be called before the bind callback.

Methods

NameDescription
bind(scope, stage, options)The callback invoked when this Action is added to a Pipeline.
onStateChange(name, target?, options?)Creates an Event that will be triggered whenever the state of this Action changes.
protected bound(_scope, _stage, _options)This is a renamed version of the IAction.bind method.

bind(scope, stage, options)

public bind(scope: Construct, stage: IStage, options: ActionBindOptions): ActionConfig

Parameters

  • scope Construct
  • stage IStage
  • options ActionBindOptions

Returns

  • ActionConfig

The callback invoked when this Action is added to a Pipeline.


onStateChange(name, target?, options?)

public onStateChange(name: string, target?: IRuleTarget, options?: RuleProps): Rule

Parameters

  • name string
  • target IRuleTarget
  • options RuleProps

Returns

  • Rule

Creates an Event that will be triggered whenever the state of this Action changes.


protected bound(_scope, _stage, _options)

protected bound(_scope: Construct, _stage: IStage, _options: ActionBindOptions): ActionConfig

Parameters

  • _scope Construct
  • _stage IStage
  • _options ActionBindOptions

Returns

  • ActionConfig

This is a renamed version of the IAction.bind method.