Skip to content

Commit

Permalink
feat(client-lightsail): This release adds support for Amazon Lightsai…
Browse files Browse the repository at this point in the history
…l instances to switch between dual-stack or IPv4 only and IPv6-only public IP address types.
  • Loading branch information
awstools committed May 21, 2024
1 parent 076c64e commit 1312268
Show file tree
Hide file tree
Showing 20 changed files with 272 additions and 186 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface CloseInstancePublicPortsCommandOutput extends CloseInstancePubl
* portInfo: { // PortInfo
* fromPort: Number("int"),
* toPort: Number("int"),
* protocol: "tcp" || "all" || "udp" || "icmp",
* protocol: "tcp" || "all" || "udp" || "icmp" || "icmpv6",
* cidrs: [ // StringList
* "STRING_VALUE",
* ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export interface CreateDiskFromSnapshotCommandOutput extends CreateDiskFromSnaps

/**
* <p>Creates a block storage disk from a manual or automatic snapshot of a disk. The resulting
* disk can be attached to an Amazon Lightsail instance in the same Availability Zone (<code>us-east-2a</code>).</p>
* disk can be attached to an Amazon Lightsail instance in the same Availability Zone
* (<code>us-east-2a</code>).</p>
* <p>The <code>create disk from snapshot</code> operation supports tag-based access control via
* request tags and resource tags applied to the resource identified by <code>disk snapshot
* name</code>. For more information, see the <a href="https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-controlling-access-using-tags">Amazon Lightsail Developer Guide</a>.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export interface CreateDistributionCommandOutput extends CreateDistributionResul
* },
* ],
* bundleId: "STRING_VALUE", // required
* ipAddressType: "dualstack" || "ipv4",
* ipAddressType: "dualstack" || "ipv4" || "ipv6",
* tags: [ // TagList
* { // Tag
* key: "STRING_VALUE",
Expand Down Expand Up @@ -154,7 +154,7 @@ export interface CreateDistributionCommandOutput extends CreateDistributionResul
* // },
* // ],
* // ableToUpdateBundle: true || false,
* // ipAddressType: "dualstack" || "ipv4",
* // ipAddressType: "dualstack" || "ipv4" || "ipv6",
* // tags: [ // TagList
* // { // Tag
* // key: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export interface CreateInstancesCommandOutput extends CreateInstancesResult, __M
* },
* },
* ],
* ipAddressType: "dualstack" || "ipv4",
* ipAddressType: "dualstack" || "ipv4" || "ipv6",
* };
* const command = new CreateInstancesCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export interface CreateInstancesFromSnapshotCommandOutput extends CreateInstance
* },
* },
* ],
* ipAddressType: "dualstack" || "ipv4",
* ipAddressType: "dualstack" || "ipv4" || "ipv6",
* sourceInstanceName: "STRING_VALUE",
* restoreDate: "STRING_VALUE",
* useLatestRestorableAutoSnapshot: true || false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface CreateLoadBalancerCommandOutput extends CreateLoadBalancerResul
* value: "STRING_VALUE",
* },
* ],
* ipAddressType: "dualstack" || "ipv4",
* ipAddressType: "dualstack" || "ipv4" || "ipv6",
* tlsPolicyName: "STRING_VALUE",
* };
* const command = new CreateLoadBalancerCommand(input);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export interface GetDistributionsCommandOutput extends GetDistributionsResult, _
* // },
* // ],
* // ableToUpdateBundle: true || false,
* // ipAddressType: "dualstack" || "ipv4",
* // ipAddressType: "dualstack" || "ipv4" || "ipv6",
* // tags: [ // TagList
* // { // Tag
* // key: "STRING_VALUE",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-lightsail/src/commands/GetInstanceCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export interface GetInstanceCommandOutput extends GetInstanceResult, __MetadataB
* // ipv6Addresses: [ // Ipv6AddressList
* // "STRING_VALUE",
* // ],
* // ipAddressType: "dualstack" || "ipv4",
* // ipAddressType: "dualstack" || "ipv4" || "ipv6",
* // hardware: { // InstanceHardware
* // cpuCount: Number("int"),
* // disks: [ // DiskList
Expand Down Expand Up @@ -128,7 +128,7 @@ export interface GetInstanceCommandOutput extends GetInstanceResult, __MetadataB
* // { // InstancePortInfo
* // fromPort: Number("int"),
* // toPort: Number("int"),
* // protocol: "tcp" || "all" || "udp" || "icmp",
* // protocol: "tcp" || "all" || "udp" || "icmp" || "icmpv6",
* // accessFrom: "STRING_VALUE",
* // accessType: "Public" || "Private",
* // commonName: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface GetInstancePortStatesCommandOutput extends GetInstancePortState
* // { // InstancePortState
* // fromPort: Number("int"),
* // toPort: Number("int"),
* // protocol: "tcp" || "all" || "udp" || "icmp",
* // protocol: "tcp" || "all" || "udp" || "icmp" || "icmpv6",
* // state: "open" || "closed",
* // cidrs: [ // StringList
* // "STRING_VALUE",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-lightsail/src/commands/GetInstancesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export interface GetInstancesCommandOutput extends GetInstancesResult, __Metadat
* // ipv6Addresses: [ // Ipv6AddressList
* // "STRING_VALUE",
* // ],
* // ipAddressType: "dualstack" || "ipv4",
* // ipAddressType: "dualstack" || "ipv4" || "ipv6",
* // hardware: { // InstanceHardware
* // cpuCount: Number("int"),
* // disks: [ // DiskList
Expand Down Expand Up @@ -129,7 +129,7 @@ export interface GetInstancesCommandOutput extends GetInstancesResult, __Metadat
* // { // InstancePortInfo
* // fromPort: Number("int"),
* // toPort: Number("int"),
* // protocol: "tcp" || "all" || "udp" || "icmp",
* // protocol: "tcp" || "all" || "udp" || "icmp" || "icmpv6",
* // accessFrom: "STRING_VALUE",
* // accessType: "Public" || "Private",
* // commonName: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export interface GetLoadBalancerCommandOutput extends GetLoadBalancerResult, __M
* // configurationOptions: { // LoadBalancerConfigurationOptions
* // "<keys>": "STRING_VALUE",
* // },
* // ipAddressType: "dualstack" || "ipv4",
* // ipAddressType: "dualstack" || "ipv4" || "ipv6",
* // httpsRedirectionEnabled: true || false,
* // tlsPolicyName: "STRING_VALUE",
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export interface GetLoadBalancersCommandOutput extends GetLoadBalancersResult, _
* // configurationOptions: { // LoadBalancerConfigurationOptions
* // "<keys>": "STRING_VALUE",
* // },
* // ipAddressType: "dualstack" || "ipv4",
* // ipAddressType: "dualstack" || "ipv4" || "ipv6",
* // httpsRedirectionEnabled: true || false,
* // tlsPolicyName: "STRING_VALUE",
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export interface GetSetupHistoryCommandInput extends GetSetupHistoryRequest {}
export interface GetSetupHistoryCommandOutput extends GetSetupHistoryResult, __MetadataBearer {}

/**
* <p>Returns detailed information for five of the most recent <code>SetupInstanceHttps</code> requests that were ran on the target instance.</p>
* <p>Returns detailed information for five of the most recent <code>SetupInstanceHttps</code>
* requests that were ran on the target instance.</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 @@ -42,7 +42,7 @@ export interface OpenInstancePublicPortsCommandOutput extends OpenInstancePublic
* portInfo: { // PortInfo
* fromPort: Number("int"),
* toPort: Number("int"),
* protocol: "tcp" || "all" || "udp" || "icmp",
* protocol: "tcp" || "all" || "udp" || "icmp" || "icmpv6",
* cidrs: [ // StringList
* "STRING_VALUE",
* ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface PutInstancePublicPortsCommandOutput extends PutInstancePublicPo
* { // PortInfo
* fromPort: Number("int"),
* toPort: Number("int"),
* protocol: "tcp" || "all" || "udp" || "icmp",
* protocol: "tcp" || "all" || "udp" || "icmp" || "icmpv6",
* cidrs: [ // StringList
* "STRING_VALUE",
* ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ export interface SetIpAddressTypeCommandOutput extends SetIpAddressTypeResult, _
* const input = { // SetIpAddressTypeRequest
* resourceType: "ContainerService" || "Instance" || "StaticIp" || "KeyPair" || "InstanceSnapshot" || "Domain" || "PeeredVpc" || "LoadBalancer" || "LoadBalancerTlsCertificate" || "Disk" || "DiskSnapshot" || "RelationalDatabase" || "RelationalDatabaseSnapshot" || "ExportSnapshotRecord" || "CloudFormationStackRecord" || "Alarm" || "ContactMethod" || "Distribution" || "Certificate" || "Bucket", // required
* resourceName: "STRING_VALUE", // required
* ipAddressType: "dualstack" || "ipv4", // required
* ipAddressType: "dualstack" || "ipv4" || "ipv6", // required
* acceptBundleUpdate: true || false,
* };
* const command = new SetIpAddressTypeCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export interface SetupInstanceHttpsCommandOutput extends SetupInstanceHttpsResul
/**
* <p>Creates an SSL/TLS certificate that secures traffic for your website. After the
* certificate is created, it is installed on the specified Lightsail instance.</p>
* <p>If you provide more than one domain name in the request, at least one name must be less than or equal to 63 characters in length.</p>
* <p>If you provide more than one domain name in the request, at least one name must be less
* than or equal to 63 characters in length.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Loading

0 comments on commit 1312268

Please sign in to comment.