Enum URLEncodingFormat
The style used when applying URL encoding to array values.
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum URLEncodingFormat
Syntax (vb)
Public Enum URLEncodingFormat
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Events;
var connection = new Connection(this, "Connection", new ConnectionProps {
Authorization = Authorization.Basic("username", SecretValue.UnsafePlainText("password"))
});
new HttpInvoke(this, "Invoke HTTP API", new HttpInvokeProps {
ApiRoot = "https://api.example.com",
ApiEndpoint = TaskInput.FromText(JsonPath.Format("resource/{}/details", JsonPath.StringAt("$.resourceId"))),
Body = TaskInput.FromObject(new Dictionary<string, object> { { "foo", "bar" } }),
Connection = connection,
Headers = TaskInput.FromObject(new Dictionary<string, object> { { "Content-Type", "application/json" } }),
Method = TaskInput.FromText("POST"),
QueryStringParameters = TaskInput.FromObject(new Dictionary<string, object> { { "id", "123" } }),
UrlEncodingFormat = URLEncodingFormat.BRACKETS
});
Synopsis
Fields
| BRACKETS | Encode arrays using brackets. |
| COMMAS | Encode arrays using commas. |
| DEFAULT | Apply the default URL encoding style (INDICES). |
| INDICES | Encode arrays using the index value. |
| NONE | Do not apply URL encoding. |
| REPEAT | Repeat key for each item in the array. |
Fields
| Name | Description |
|---|---|
| BRACKETS | Encode arrays using brackets. |
| COMMAS | Encode arrays using commas. |
| DEFAULT | Apply the default URL encoding style (INDICES). |
| INDICES | Encode arrays using the index value. |
| NONE | Do not apply URL encoding. |
| REPEAT | Repeat key for each item in the array. |