# AWS::Transfer::Agreement Resource Type definition for AWS::Transfer::Agreement ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{ "Type" : "AWS::Transfer::Agreement", "Properties" : { "Description" : String, "ServerId" : String, "LocalProfileId" : String, "PartnerProfileId" : String, "BaseDirectory" : String, "AccessRole" : String, "Status" : String, "Tags" : [ Tag, ... ], } }### YAML
Type: AWS::Transfer::Agreement Properties: Description: String ServerId: String LocalProfileId: String PartnerProfileId: String BaseDirectory: String AccessRole: String Status: String Tags: - Tag## Properties #### Description A textual description for the agreement. _Required_: No _Type_: String _Minimum_:
1
_Maximum_: 200
_Pattern_: ^[\w\- ]*$
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### ServerId
A unique identifier for the server.
_Required_: Yes
_Type_: String
_Minimum_: 19
_Maximum_: 19
_Pattern_: ^s-([0-9a-f]{17})$
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### LocalProfileId
A unique identifier for the local profile.
_Required_: Yes
_Type_: String
_Minimum_: 19
_Maximum_: 19
_Pattern_: ^p-([0-9a-f]{17})$
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### PartnerProfileId
A unique identifier for the partner profile.
_Required_: Yes
_Type_: String
_Minimum_: 19
_Maximum_: 19
_Pattern_: ^p-([0-9a-f]{17})$
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### BaseDirectory
Specifies the base directory for the agreement.
_Required_: Yes
_Type_: String
_Maximum_: 1024
_Pattern_: ^$|/.*
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### AccessRole
Specifies the access role for the agreement.
_Required_: Yes
_Type_: String
_Minimum_: 20
_Maximum_: 2048
_Pattern_: arn:.*role/.*
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### Status
Specifies the status of the agreement.
_Required_: No
_Type_: String
_Allowed Values_: ACTIVE
| INACTIVE
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### Tags
Key-value pairs that can be used to group and search for agreements. Tags are metadata attached to agreements for any purpose.
_Required_: No
_Type_: List of Tag
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
## Return Values
### 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).
#### AgreementId
A unique identifier for the agreement.
#### Arn
Specifies the unique Amazon Resource Name (ARN) for the agreement.