Skip to content

Commit

Permalink
feat(client-appflow): This release enables the customers to choose wh…
Browse files Browse the repository at this point in the history
…ether to use Private Link for Metadata and Authorization call when using a private Salesforce connections
  • Loading branch information
awstools committed Feb 23, 2023
1 parent 2faee2d commit 136e139
Show file tree
Hide file tree
Showing 9 changed files with 666 additions and 837 deletions.
6 changes: 3 additions & 3 deletions clients/client-appflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ Slack, and ServiceNow, and Amazon Web Services like Amazon S3 and Amazon Redshif
<ul>
<li>
<p>
<a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Operations.html">Actions</a>: An alphabetical list of all Amazon AppFlow API
operations.</p>
<a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Operations.html">Actions</a>: An alphabetical list of all Amazon AppFlow API operations.</p>
</li>
<li>
<p>
Expand All @@ -36,7 +35,8 @@ types</a>: An alphabetical list of all Amazon AppFlow data types.</p>
errors</a>: Client and server errors that all operations can return.</p>
</li>
</ul>
<p>If you're new to Amazon AppFlow, we recommend that you review the <a href="https://docs.aws.amazon.com/appflow/latest/userguide/what-is-appflow.html">Amazon AppFlow User Guide</a>.</p>
<p>If you're new to Amazon AppFlow, we recommend that you review the <a href="https://docs.aws.amazon.com/appflow/latest/userguide/what-is-appflow.html">Amazon AppFlow
User Guide</a>.</p>
<p>Amazon AppFlow API users can use vendor-specific mechanisms for OAuth, and include
applicable OAuth attributes (such as <code>auth-code</code> and <code>redirecturi</code>) with
the connector-specific <code>ConnectorProfileProperties</code> when creating a new connector
Expand Down
13 changes: 7 additions & 6 deletions clients/client-appflow/src/Appflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ import { UpdateFlowCommand, UpdateFlowCommandInput, UpdateFlowCommandOutput } fr
* <ul>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Operations.html">Actions</a>: An alphabetical list of all Amazon AppFlow API
* operations.</p>
* <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Operations.html">Actions</a>: An alphabetical list of all Amazon AppFlow API operations.</p>
* </li>
* <li>
* <p>
Expand All @@ -118,7 +117,8 @@ import { UpdateFlowCommand, UpdateFlowCommandInput, UpdateFlowCommandOutput } fr
* errors</a>: Client and server errors that all operations can return.</p>
* </li>
* </ul>
* <p>If you're new to Amazon AppFlow, we recommend that you review the <a href="https://docs.aws.amazon.com/appflow/latest/userguide/what-is-appflow.html">Amazon AppFlow User Guide</a>.</p>
* <p>If you're new to Amazon AppFlow, we recommend that you review the <a href="https://docs.aws.amazon.com/appflow/latest/userguide/what-is-appflow.html">Amazon AppFlow
* User Guide</a>.</p>
* <p>Amazon AppFlow API users can use vendor-specific mechanisms for OAuth, and include
* applicable OAuth attributes (such as <code>auth-code</code> and <code>redirecturi</code>) with
* the connector-specific <code>ConnectorProfileProperties</code> when creating a new connector
Expand All @@ -129,9 +129,10 @@ import { UpdateFlowCommand, UpdateFlowCommandInput, UpdateFlowCommandOutput } fr
*/
export class Appflow extends AppflowClient {
/**
* <p> Creates a new connector profile associated with your Amazon Web Services account. There
* is a soft quota of 100 connector profiles per Amazon Web Services account. If you need more
* connector profiles than this quota allows, you can submit a request to the Amazon AppFlow team through the Amazon AppFlow support channel. In each connector profile that you
* <p> Creates a new connector profile associated with your Amazon Web Services account. There is
* a soft quota of 100 connector profiles per Amazon Web Services account. If you need more
* connector profiles than this quota allows, you can submit a request to the Amazon AppFlow
* team through the Amazon AppFlow support channel. In each connector profile that you
* create, you can provide the credentials and properties for only one connector.</p>
*/
public createConnectorProfile(
Expand Down
6 changes: 3 additions & 3 deletions clients/client-appflow/src/AppflowClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,7 @@ export interface AppflowClientResolvedConfig extends AppflowClientResolvedConfig
* <ul>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Operations.html">Actions</a>: An alphabetical list of all Amazon AppFlow API
* operations.</p>
* <a href="https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Operations.html">Actions</a>: An alphabetical list of all Amazon AppFlow API operations.</p>
* </li>
* <li>
* <p>
Expand All @@ -337,7 +336,8 @@ export interface AppflowClientResolvedConfig extends AppflowClientResolvedConfig
* errors</a>: Client and server errors that all operations can return.</p>
* </li>
* </ul>
* <p>If you're new to Amazon AppFlow, we recommend that you review the <a href="https://docs.aws.amazon.com/appflow/latest/userguide/what-is-appflow.html">Amazon AppFlow User Guide</a>.</p>
* <p>If you're new to Amazon AppFlow, we recommend that you review the <a href="https://docs.aws.amazon.com/appflow/latest/userguide/what-is-appflow.html">Amazon AppFlow
* User Guide</a>.</p>
* <p>Amazon AppFlow API users can use vendor-specific mechanisms for OAuth, and include
* applicable OAuth attributes (such as <code>auth-code</code> and <code>redirecturi</code>) with
* the connector-specific <code>ConnectorProfileProperties</code> when creating a new connector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ export interface CreateConnectorProfileCommandInput extends CreateConnectorProfi
export interface CreateConnectorProfileCommandOutput extends CreateConnectorProfileResponse, __MetadataBearer {}

/**
* <p> Creates a new connector profile associated with your Amazon Web Services account. There
* is a soft quota of 100 connector profiles per Amazon Web Services account. If you need more
* connector profiles than this quota allows, you can submit a request to the Amazon AppFlow team through the Amazon AppFlow support channel. In each connector profile that you
* <p> Creates a new connector profile associated with your Amazon Web Services account. There is
* a soft quota of 100 connector profiles per Amazon Web Services account. If you need more
* connector profiles than this quota allows, you can submit a request to the Amazon AppFlow
* team through the Amazon AppFlow support channel. In each connector profile that you
* create, you can provide the credentials and properties for only one connector.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-appflow/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
39 changes: 20 additions & 19 deletions clients/client-appflow/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints";
or see "smithy.rules#endpointRuleSet"
in codegen/sdk-codegen/aws-models/appflow.json */

const q="fn",
r="argv",
s="ref";
const a=true,
b=false,
c="String",
d="PartitionResult",
e="tree",
f="error",
g="endpoint",
h={"required":true,"default":false,"type":"Boolean"},
i={[s]:"Endpoint"},
j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},
k={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},
l={},
m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]},
n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsDualStack"]}]},
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=[k];
const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://appflow-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://appflow-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://appflow.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://appflow.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]};
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://appflow-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://appflow-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://appflow.{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://appflow.{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 136e139

Please sign in to comment.