

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::CloudExtensions::ProfileEntry Exec

Requests permission to run a host command.

## Syntax
<a name="aws-properties-cloudextensions-profileentry-exec-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-cloudextensions-profileentry-exec-syntax.json"></a>

```json
{
  "[Args](#cfn-cloudextensions-profileentry-exec-args)" : {{[ String, ... ]}},
  "[Command](#cfn-cloudextensions-profileentry-exec-command)" : {{String}},
  "[TimeoutInSeconds](#cfn-cloudextensions-profileentry-exec-timeoutinseconds)" : {{Number}}
}
```

### YAML
<a name="aws-properties-cloudextensions-profileentry-exec-syntax.yaml"></a>

```yaml
  [Args](#cfn-cloudextensions-profileentry-exec-args): {{
    - String}}
  [Command](#cfn-cloudextensions-profileentry-exec-command): {{String}}
  [TimeoutInSeconds](#cfn-cloudextensions-profileentry-exec-timeoutinseconds): {{Number}}
```

## Properties
<a name="aws-properties-cloudextensions-profileentry-exec-properties"></a>

`Args`  <a name="cfn-cloudextensions-profileentry-exec-args"></a>
The arguments to pass to the command. The list has 1 to 50 arguments.  
*Required*: No  
*Type*: Array of String  
*Minimum*: `1 | 1`  
*Maximum*: `128 | 50`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Command`  <a name="cfn-cloudextensions-profileentry-exec-command"></a>
The command to run.  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `512`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`TimeoutInSeconds`  <a name="cfn-cloudextensions-profileentry-exec-timeoutinseconds"></a>
The maximum time, in seconds, that the command can run before it's terminated. The valid range is 1 to 10.  
*Required*: No  
*Type*: Number  
*Minimum*: `1`  
*Maximum*: `10`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)