ExecuteScriptProps

class aws_rfdk.ExecuteScriptProps(*, host, args=None)

Bases: object

Interface of properties for adding UserData commands to download and executing a {@link ScriptAsset} on a host machine.

Parameters:
  • host (IScriptHost) – The host to run the script against. For example, instances of: - {@link @aws-cdk/aws-ec2#Instance} - {@link @aws-cdk/aws-autoscaling#AutoScalingGroup} can be used.

  • args (Optional[Sequence[str]]) – Command-line arguments to invoke the script with. If supplied, these arguments are simply concatenated with a space character between. No shell escaping is done. Default: No command-line arguments

Attributes

args

Command-line arguments to invoke the script with.

If supplied, these arguments are simply concatenated with a space character between. No shell escaping is done.

Default:

No command-line arguments

host

The host to run the script against.

For example, instances of:

  • {@link @aws-cdk/aws-ec2#Instance}

  • {@link @aws-cdk/aws-autoscaling#AutoScalingGroup}

can be used.