@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-08T16:00:23.918Z") @Stability(value=Stable) public class CfnAgreement extends CfnResource implements IInspectable
Creates an agreement. An agreement is a bilateral trading partner agreement, or partnership, between an AWS Transfer Family server and an AS2 process. The agreement defines the file and message transfer relationship between the server and the AS2 process. To define an agreement, Transfer Family combines a server, local profile, partner profile, certificate, and other attributes.
The partner is identified with the PartnerProfileId , and the AS2 process is identified with the LocalProfileId .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.transfer.*;
CfnAgreement cfnAgreement = CfnAgreement.Builder.create(this, "MyCfnAgreement")
.accessRole("accessRole")
.baseDirectory("baseDirectory")
.localProfileId("localProfileId")
.partnerProfileId("partnerProfileId")
.serverId("serverId")
// the properties below are optional
.description("description")
.status("status")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnAgreement.Builder
A fluent builder for
CfnAgreement. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnAgreement(Construct scope,
String id,
CfnAgreementProps props)
Create a new `AWS::Transfer::Agreement`.
|
protected |
CfnAgreement(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnAgreement(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessRole()
With AS2, you can send files by calling `StartFileTransfer` and specifying the file paths in the request parameter, `SendFilePaths` .
|
String |
getAttrAgreementId() |
String |
getAttrArn() |
String |
getBaseDirectory()
The landing directory (folder) for files that are transferred by using the AS2 protocol.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
The name or short description that's used to identify the agreement.
|
String |
getLocalProfileId()
A unique identifier for the AS2 local profile.
|
String |
getPartnerProfileId()
A unique identifier for the partner profile used in the agreement.
|
String |
getServerId()
A system-assigned unique identifier for a server instance.
|
String |
getStatus()
The current status of the agreement, either `ACTIVE` or `INACTIVE` .
|
TagManager |
getTags()
Key-value pairs that can be used to group and search for agreements.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAccessRole(String value)
With AS2, you can send files by calling `StartFileTransfer` and specifying the file paths in the request parameter, `SendFilePaths` .
|
void |
setBaseDirectory(String value)
The landing directory (folder) for files that are transferred by using the AS2 protocol.
|
void |
setDescription(String value)
The name or short description that's used to identify the agreement.
|
void |
setLocalProfileId(String value)
A unique identifier for the AS2 local profile.
|
void |
setPartnerProfileId(String value)
A unique identifier for the partner profile used in the agreement.
|
void |
setServerId(String value)
A system-assigned unique identifier for a server instance.
|
void |
setStatus(String value)
The current status of the agreement, either `ACTIVE` or `INACTIVE` .
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnAgreement(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnAgreement(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnAgreement(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnAgreementProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrAgreementId()
@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getAccessRole()
We use the file’s parent directory (for example, for --send-file-paths /bucket/dir/file.txt , parent directory is /bucket/dir/ ) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containing relevant metadata of the transmission. So, the AccessRole needs to provide read and write access to the parent directory of the file location used in the StartFileTransfer request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send with StartFileTransfer .
@Stability(value=Stable)
public void setAccessRole(@NotNull
String value)
We use the file’s parent directory (for example, for --send-file-paths /bucket/dir/file.txt , parent directory is /bucket/dir/ ) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containing relevant metadata of the transmission. So, the AccessRole needs to provide read and write access to the parent directory of the file location used in the StartFileTransfer request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send with StartFileTransfer .
@Stability(value=Stable) @NotNull public String getBaseDirectory()
@Stability(value=Stable)
public void setBaseDirectory(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getLocalProfileId()
@Stability(value=Stable)
public void setLocalProfileId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getPartnerProfileId()
@Stability(value=Stable)
public void setPartnerProfileId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getServerId()
This identifier indicates the specific server that the agreement uses.
@Stability(value=Stable)
public void setServerId(@NotNull
String value)
This identifier indicates the specific server that the agreement uses.
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getStatus()
@Stability(value=Stable)
public void setStatus(@Nullable
String value)
Copyright © 2023. All rights reserved.