S3DeployActionProps Struct
Construction properties of the S3DeployAction S3 deploy Action.
Example
declare const sourceArtifact: codepipeline.Artifact;
declare const outputArtifact: codepipeline.Artifact;
const commandsAction = new codepipeline_actions.CommandsAction({
actionName: 'Commands',
commands: [
'export MY_OUTPUT=my-key',
],
input: sourceArtifact,
output: outputArtifact,
outputVariables: ['MY_OUTPUT', 'CODEBUILD_BUILD_ID'], // CODEBUILD_BUILD_ID is a variable defined by CodeBuild
});
// Deploy action
const deployAction = new codepipeline_actions.S3DeployAction({
actionName: 'DeployAction',
extract: true,
input: outputArtifact,
bucket: new s3.Bucket(this, 'DeployBucket'),
objectKey: commandsAction.variable('MY_OUTPUT'), // the variable emitted by the Commands action
});
Properties
accessControloptionalBucketAccessControlaccess_controloptionalBucketAccessControlaccessControloptionalBucketAccessControlAccessControloptionalBucketAccessControlAccessControloptionalBucketAccessControl#Default: the original object ACL
This overwrites any existing ACL that was applied to the object.
Note that Action names must be unique within a single Stage.
cacheControloptionalCacheControl[]cache_controloptionaltyping.List[CacheControl]cacheControloptionalList<CacheControl>CacheControloptionalCacheControl[]CacheControloptional*[]CacheControl#Default: none, decided by the HTTP client
The final cache control property will be the result of joining all of the provided array elements with a comma (plus a space after the comma).
encryptionKeyoptionalIKeyencryption_keyoptionalIKeyencryptionKeyoptionalIKeyEncryptionKeyoptionalIKeyEncryptionKeyoptionalIKey= none#The encryptionKey parameter encrypts uploaded artifacts with the provided AWS KMS key.
extractoptionalbooleanextractoptionalboolextractoptionalBooleanExtractoptionalboolExtractoptional*bool= true#objectKeyoptionalstringobject_keyoptionalstrobjectKeyoptionalStringObjectKeyoptionalstringObjectKeyoptional*string#This is required if extract is false.
Default: a new Role will be generated
notes
The Pipeline's Role will assume this Role (the required permissions for that will be granted automatically) right before executing this Action. This Action will be passed into your IAction.bind method in the ActionBindOptions.role property.
runOrderoptionalnumberrun_orderoptionalint | floatrunOrderoptionalNumberRunOrderoptionaldoubleRunOrderoptional*float64= 1#RunOrder determines the relative order in which multiple Actions in the same Stage execute.
variablesNamespaceoptionalstringvariables_namespaceoptionalstrvariablesNamespaceoptionalStringVariablesNamespaceoptionalstringVariablesNamespaceoptional*string#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