# AWS::GreengrassV2::Deployment Resource for Greengrass V2 deployment. ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
    "Type" : "AWS::GreengrassV2::Deployment",
    "Properties" : {
        "TargetArn" : String,
        "ParentTargetArn" : String,
        "DeploymentName" : String,
        "Components" : Components,
        "IotJobConfiguration" : DeploymentIoTJobConfiguration,
        "DeploymentPolicies" : DeploymentPolicies,
        "Tags" : Tags
    }
}
### YAML
Type: AWS::GreengrassV2::Deployment
Properties:
    TargetArn: String
    ParentTargetArn: String
    DeploymentName: String
    Components: Components
    IotJobConfiguration: DeploymentIoTJobConfiguration
    DeploymentPolicies: DeploymentPolicies
    Tags: Tags
## Properties #### TargetArn _Required_: Yes _Type_: String _Pattern_: arn:[^:]*:iot:[^:]*:[0-9]+:(thing|thinggroup)/.+ _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### ParentTargetArn _Required_: No _Type_: String _Pattern_: arn:[^:]*:iot:[^:]*:[0-9]+:thinggroup/.+ _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### DeploymentName _Required_: No _Type_: String _Minimum_: 1 _Maximum_: 256 _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### Components _Required_: No _Type_: Components _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### IotJobConfiguration _Required_: No _Type_: DeploymentIoTJobConfiguration _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### DeploymentPolicies _Required_: No _Type_: DeploymentPolicies _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### Tags _Required_: No _Type_: Tags _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) ## Return Values ### Ref When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the DeploymentId. ### Fn::GetAtt The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values. For more information about using the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html). #### DeploymentId Returns the DeploymentId value.