Skip to content

modify_public_ip_dns_name_options

Operation

modify_public_ip_dns_name_options

modify_public_ip_dns_name_options(request: ModifyPublicIpDnsNameOptionsInput | ModifyPublicIpDnsNameOptionsInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[ModifyPublicIpDnsNameOptionsInputDict]) -> ModifyPublicIpDnsNameOptionsOutput

Modify public hostname options for a network interface. For more information, see EC2 instance hostnames, DNS names, and domains in the Amazon EC2 User Guide.

Parameters:

Name Type Description Default
request ModifyPublicIpDnsNameOptionsInput | ModifyPublicIpDnsNameOptionsInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[ModifyPublicIpDnsNameOptionsInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
ModifyPublicIpDnsNameOptionsOutput

An instance of ModifyPublicIpDnsNameOptionsOutput.

modify_public_ip_dns_name_options async

modify_public_ip_dns_name_options(request: ModifyPublicIpDnsNameOptionsInput | ModifyPublicIpDnsNameOptionsInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[ModifyPublicIpDnsNameOptionsInputDict]) -> ModifyPublicIpDnsNameOptionsOutput

Modify public hostname options for a network interface. For more information, see EC2 instance hostnames, DNS names, and domains in the Amazon EC2 User Guide.

Parameters:

Name Type Description Default
request ModifyPublicIpDnsNameOptionsInput | ModifyPublicIpDnsNameOptionsInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[ModifyPublicIpDnsNameOptionsInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
ModifyPublicIpDnsNameOptionsOutput

An instance of ModifyPublicIpDnsNameOptionsOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

ModifyPublicIpDnsNameOptionsInputDict

Bases: TypedDict

Dictionary form of ModifyPublicIpDnsNameOptionsInput.

Attributes

dry_run instance-attribute
dry_run: bool | None

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

hostname_type instance-attribute
hostname_type: Required[str]

The public hostname type. For more information, see EC2 instance hostnames, DNS names, and domains in the Amazon EC2 User Guide.

  • public-dual-stack-dns-name: A dual-stack public hostname for a network interface. Requests from within the VPC resolve to both the private IPv4 address and the IPv6 Global Unicast Address of the network interface. Requests from the internet resolve to both the public IPv4 and the IPv6 GUA address of the network interface.

  • public-ipv4-dns-name: An IPv4-enabled public hostname for a network interface. Requests from within the VPC resolve to the private primary IPv4 address of the network interface. Requests from the internet resolve to the public IPv4 address of the network interface.

  • public-ipv6-dns-name: An IPv6-enabled public hostname for a network interface. Requests from within the VPC or from the internet resolve to the IPv6 GUA of the network interface.

network_interface_id instance-attribute
network_interface_id: Required[str]

A network interface ID.

ModifyPublicIpDnsNameOptionsInput dataclass

Bases: _SerdeShape

Dataclass for ModifyPublicIpDnsNameOptionsInput structure.

Attributes

dry_run class-attribute instance-attribute
dry_run: bool | None = ...

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

hostname_type class-attribute instance-attribute
hostname_type: str | None = ...

The public hostname type. For more information, see EC2 instance hostnames, DNS names, and domains in the Amazon EC2 User Guide.

  • public-dual-stack-dns-name: A dual-stack public hostname for a network interface. Requests from within the VPC resolve to both the private IPv4 address and the IPv6 Global Unicast Address of the network interface. Requests from the internet resolve to both the public IPv4 and the IPv6 GUA address of the network interface.

  • public-ipv4-dns-name: An IPv4-enabled public hostname for a network interface. Requests from within the VPC resolve to the private primary IPv4 address of the network interface. Requests from the internet resolve to the public IPv4 address of the network interface.

  • public-ipv6-dns-name: An IPv6-enabled public hostname for a network interface. Requests from within the VPC or from the internet resolve to the IPv6 GUA of the network interface.

network_interface_id class-attribute instance-attribute
network_interface_id: str | None = ...

A network interface ID.

Output

ModifyPublicIpDnsNameOptionsOutput dataclass

Bases: _SerdeShape

Dataclass for ModifyPublicIpDnsNameOptionsOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

successful class-attribute instance-attribute
successful: bool | None = ...

Whether or not the request was successful.