Skip to content

Commit

Permalink
docs(client-fsx): Amazon FSx for Lustre now supports creating data re…
Browse files Browse the repository at this point in the history
…pository associations on Persistent_1 and Scratch_2 file systems.
  • Loading branch information
awstools committed Apr 7, 2023
1 parent 300cf05 commit f042c9b
Show file tree
Hide file tree
Showing 10 changed files with 861 additions and 1,598 deletions.
45 changes: 33 additions & 12 deletions clients/client-fsx/src/FSx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,8 @@ export class FSx extends FSxClient {
* <p>Creates an Amazon FSx for Lustre data repository association (DRA). A data
* repository association is a link between a directory on the file system and
* an Amazon S3 bucket or prefix. You can have a maximum of 8 data repository
* associations on a file system. Data repository associations are supported only
* for file systems with the <code>Persistent_2</code> deployment type.</p>
* associations on a file system. Data repository associations are supported
* for all file systems except for <code>Scratch_1</code> deployment type.</p>
* <p>Each data repository association must have a unique Amazon FSx file
* system directory and a unique S3 bucket or prefix associated with it. You
* can configure a data repository association for automatic import only,
Expand Down Expand Up @@ -917,8 +917,8 @@ export class FSx extends FSxClient {
* file system from the Amazon S3 bucket. When deleting a data repository
* association, you have the option of deleting the data in the file system
* that corresponds to the data repository association. Data repository
* associations are supported only for file systems with the
* <code>Persistent_2</code> deployment type.</p>
* associations are supported for all file systems except for <code>Scratch_1</code>
* deployment type.</p>
*/
public deleteDataRepositoryAssociation(
args: DeleteDataRepositoryAssociationCommandInput,
Expand Down Expand Up @@ -1213,8 +1213,8 @@ export class FSx extends FSxClient {
* <p>Returns the description of specific Amazon FSx for Lustre or Amazon File Cache
* data repository associations, if one or more <code>AssociationIds</code> values
* are provided in the request, or if filters are used in the request. Data repository
* associations are supported only for Amazon FSx for Lustre file systems with the
* <code>Persistent_2</code> deployment type and for Amazon File Cache resources.</p>
* associations are supported on Amazon File Cache resources and all Amazon FSx for
* Lustre file systems excluding <code>Scratch_1</code> deployment types.</p>
* <p>You can use filters to narrow the response to include just data repository
* associations for specific file systems (use the <code>file-system-id</code> filter with
* the ID of the file system) or caches (use the <code>file-cache-id</code> filter with
Expand Down Expand Up @@ -1810,8 +1810,9 @@ export class FSx extends FSxClient {
/**
* @public
* <p>Updates the configuration of an existing data repository association
* on an Amazon FSx for Lustre file system. Data repository associations are
* supported only for file systems with the <code>Persistent_2</code> deployment type.</p>
* on an Amazon FSx for Lustre file system. Data repository associations
* are supported for all file systems except for <code>Scratch_1</code>
* deployment type.</p>
*/
public updateDataRepositoryAssociation(
args: UpdateDataRepositoryAssociationCommandInput,
Expand Down Expand Up @@ -1880,7 +1881,7 @@ export class FSx extends FSxClient {
* @public
* <p>Use this operation to update the configuration of an existing Amazon FSx file
* system. You can update multiple properties in a single request.</p>
* <p>For Amazon FSx for Windows File Server file systems, you can update the following
* <p>For FSx for Windows File Server file systems, you can update the following
* properties:</p>
* <ul>
* <li>
Expand Down Expand Up @@ -1919,7 +1920,7 @@ export class FSx extends FSxClient {
* </p>
* </li>
* </ul>
* <p>For Amazon FSx for Lustre file systems, you can update the following
* <p>For FSx for Lustre file systems, you can update the following
* properties:</p>
* <ul>
* <li>
Expand Down Expand Up @@ -1958,11 +1959,16 @@ export class FSx extends FSxClient {
* </p>
* </li>
* </ul>
* <p>For Amazon FSx for NetApp ONTAP file systems, you can update the following
* <p>For FSx for ONTAP file systems, you can update the following
* properties:</p>
* <ul>
* <li>
* <p>
* <code>AddRouteTableIds</code>
* </p>
* </li>
* <li>
* <p>
* <code>AutomaticBackupRetentionDays</code>
* </p>
* </li>
Expand All @@ -1983,6 +1989,11 @@ export class FSx extends FSxClient {
* </li>
* <li>
* <p>
* <code>RemoveRouteTableIds</code>
* </p>
* </li>
* <li>
* <p>
* <code>StorageCapacity</code>
* </p>
* </li>
Expand All @@ -1997,7 +2008,7 @@ export class FSx extends FSxClient {
* </p>
* </li>
* </ul>
* <p>For the Amazon FSx for OpenZFS file systems, you can update the following
* <p>For FSx for OpenZFS file systems, you can update the following
* properties:</p>
* <ul>
* <li>
Expand All @@ -2022,6 +2033,16 @@ export class FSx extends FSxClient {
* </li>
* <li>
* <p>
* <code>DiskIopsConfiguration</code>
* </p>
* </li>
* <li>
* <p>
* <code>StorageCapacity</code>
* </p>
* </li>
* <li>
* <p>
* <code>ThroughputCapacity</code>
* </p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export interface CreateDataRepositoryAssociationCommandOutput
* <p>Creates an Amazon FSx for Lustre data repository association (DRA). A data
* repository association is a link between a directory on the file system and
* an Amazon S3 bucket or prefix. You can have a maximum of 8 data repository
* associations on a file system. Data repository associations are supported only
* for file systems with the <code>Persistent_2</code> deployment type.</p>
* associations on a file system. Data repository associations are supported
* for all file systems except for <code>Scratch_1</code> deployment type.</p>
* <p>Each data repository association must have a unique Amazon FSx file
* system directory and a unique S3 bucket or prefix associated with it. You
* can configure a data repository association for automatic import only,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export interface DeleteDataRepositoryAssociationCommandOutput
* file system from the Amazon S3 bucket. When deleting a data repository
* association, you have the option of deleting the data in the file system
* that corresponds to the data repository association. Data repository
* associations are supported only for file systems with the
* <code>Persistent_2</code> deployment type.</p>
* associations are supported for all file systems except for <code>Scratch_1</code>
* deployment type.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export interface DescribeDataRepositoryAssociationsCommandOutput
* <p>Returns the description of specific Amazon FSx for Lustre or Amazon File Cache
* data repository associations, if one or more <code>AssociationIds</code> values
* are provided in the request, or if filters are used in the request. Data repository
* associations are supported only for Amazon FSx for Lustre file systems with the
* <code>Persistent_2</code> deployment type and for Amazon File Cache resources.</p>
* associations are supported on Amazon File Cache resources and all Amazon FSx for
* Lustre file systems excluding <code>Scratch_1</code> deployment types.</p>
* <p>You can use filters to narrow the response to include just data repository
* associations for specific file systems (use the <code>file-system-id</code> filter with
* the ID of the file system) or caches (use the <code>file-cache-id</code> filter with
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ export interface UpdateDataRepositoryAssociationCommandOutput
/**
* @public
* <p>Updates the configuration of an existing data repository association
* on an Amazon FSx for Lustre file system. Data repository associations are
* supported only for file systems with the <code>Persistent_2</code> deployment type.</p>
* on an Amazon FSx for Lustre file system. Data repository associations
* are supported for all file systems except for <code>Scratch_1</code>
* deployment type.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
28 changes: 24 additions & 4 deletions clients/client-fsx/src/commands/UpdateFileSystemCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export interface UpdateFileSystemCommandOutput extends UpdateFileSystemResponse,
* @public
* <p>Use this operation to update the configuration of an existing Amazon FSx file
* system. You can update multiple properties in a single request.</p>
* <p>For Amazon FSx for Windows File Server file systems, you can update the following
* <p>For FSx for Windows File Server file systems, you can update the following
* properties:</p>
* <ul>
* <li>
Expand Down Expand Up @@ -77,7 +77,7 @@ export interface UpdateFileSystemCommandOutput extends UpdateFileSystemResponse,
* </p>
* </li>
* </ul>
* <p>For Amazon FSx for Lustre file systems, you can update the following
* <p>For FSx for Lustre file systems, you can update the following
* properties:</p>
* <ul>
* <li>
Expand Down Expand Up @@ -116,11 +116,16 @@ export interface UpdateFileSystemCommandOutput extends UpdateFileSystemResponse,
* </p>
* </li>
* </ul>
* <p>For Amazon FSx for NetApp ONTAP file systems, you can update the following
* <p>For FSx for ONTAP file systems, you can update the following
* properties:</p>
* <ul>
* <li>
* <p>
* <code>AddRouteTableIds</code>
* </p>
* </li>
* <li>
* <p>
* <code>AutomaticBackupRetentionDays</code>
* </p>
* </li>
Expand All @@ -141,6 +146,11 @@ export interface UpdateFileSystemCommandOutput extends UpdateFileSystemResponse,
* </li>
* <li>
* <p>
* <code>RemoveRouteTableIds</code>
* </p>
* </li>
* <li>
* <p>
* <code>StorageCapacity</code>
* </p>
* </li>
Expand All @@ -155,7 +165,7 @@ export interface UpdateFileSystemCommandOutput extends UpdateFileSystemResponse,
* </p>
* </li>
* </ul>
* <p>For the Amazon FSx for OpenZFS file systems, you can update the following
* <p>For FSx for OpenZFS file systems, you can update the following
* properties:</p>
* <ul>
* <li>
Expand All @@ -180,6 +190,16 @@ export interface UpdateFileSystemCommandOutput extends UpdateFileSystemResponse,
* </li>
* <li>
* <p>
* <code>DiskIopsConfiguration</code>
* </p>
* </li>
* <li>
* <p>
* <code>StorageCapacity</code>
* </p>
* </li>
* <li>
* <p>
* <code>ThroughputCapacity</code>
* </p>
* </li>
Expand Down
2 changes: 1 addition & 1 deletion clients/client-fsx/src/endpoint/EndpointParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const resolveClientEndpointParameters = <T>(
};

export interface EndpointParameters extends __EndpointParameters {
Region: string;
Region?: string;
UseDualStack?: boolean;
UseFIPS?: boolean;
Endpoint?: string;
Expand Down
43 changes: 21 additions & 22 deletions clients/client-fsx/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints";
or see "smithy.rules#endpointRuleSet"
in codegen/sdk-codegen/aws-models/fsx.json */

const s="fn",
t="argv",
u="ref";
const a=true,
b=false,
c="String",
d="PartitionResult",
e="tree",
f="error",
g="endpoint",
h="stringEquals",
i={"required":true,"default":false,"type":"Boolean"},
j={[u]:"Region"},
k={[u]:"Endpoint"},
l={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]},
m={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]},
n={},
o={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:d},"supportsFIPS"]}]},
p={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:d},"supportsDualStack"]}]},
q=[l],
r=[m];
const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:i,UseFIPS:i,Endpoint:{required:b,type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[j],assign:d}],type:e,rules:[{conditions:[{[s]:"isSet",[t]:[k]}],type:e,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:k,properties:n,headers:n},type:g}]}]},{conditions:[l,m],type:e,rules:[{conditions:[o,p],type:e,rules:[{endpoint:{url:"https://fsx-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:q,type:e,rules:[{conditions:[o],type:e,rules:[{type:e,rules:[{conditions:[{[s]:h,[t]:[j,"prod-ca-central-1"]}],endpoint:{url:"https://fsx-fips.ca-central-1.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[s]:h,[t]:[j,"prod-us-east-1"]}],endpoint:{url:"https://fsx-fips.us-east-1.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[s]:h,[t]:[j,"prod-us-east-2"]}],endpoint:{url:"https://fsx-fips.us-east-2.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[s]:h,[t]:[j,"prod-us-west-1"]}],endpoint:{url:"https://fsx-fips.us-west-1.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[s]:h,[t]:[j,"prod-us-west-2"]}],endpoint:{url:"https://fsx-fips.us-west-2.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[s]:h,[t]:[j,"prod-us-gov-east-1"]}],endpoint:{url:"https://fsx-fips.us-gov-east-1.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[s]:h,[t]:[j,"prod-us-gov-west-1"]}],endpoint:{url:"https://fsx-fips.us-gov-west-1.amazonaws.com",properties:n,headers:n},type:g},{endpoint:{url:"https://fsx-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:r,type:e,rules:[{conditions:[p],type:e,rules:[{endpoint:{url:"https://fsx.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://fsx.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:g}]}]};
const q="required",
r="fn",
s="argv",
t="ref";
const a="isSet",
b="tree",
c="error",
d="endpoint",
e="PartitionResult",
f={[q]:false,"type":"String"},
g={[q]:true,"default":false,"type":"Boolean"},
h={[t]:"Endpoint"},
i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]},
j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]},
k={},
l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]},
m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]},
n=[i],
o=[j],
p=[{[t]:"Region"}];
const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[r]:a,[s]:[h]}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{type:b,rules:[{conditions:[{[r]:a,[s]:p}],type:b,rules:[{conditions:[{[r]:"aws.partition",[s]:p,assign:e}],type:b,rules:[{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://fsx-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://fsx-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://fsx.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{endpoint:{url:"https://fsx.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]};
export const ruleSet: RuleSetObject = _data;
Loading

0 comments on commit f042c9b

Please sign in to comment.