NAME

Paws::EC2::DescribeNetworkInterfaceAttribute - Arguments for method DescribeNetworkInterfaceAttribute on Paws::EC2

DESCRIPTION

This class represents the parameters used for calling the method DescribeNetworkInterfaceAttribute on the Amazon Elastic Compute Cloud service. Use the attributes of this class as arguments to method DescribeNetworkInterfaceAttribute.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DescribeNetworkInterfaceAttribute.

SYNOPSIS

   my $ec2 = Paws->service('EC2');
   # To describe the attachment attribute of a network interface
   # This example describes the attachment attribute of the specified network
   # interface.
   my $DescribeNetworkInterfaceAttributeResult =
     $ec2->DescribeNetworkInterfaceAttribute(
     'Attribute'          => 'attachment',
     'NetworkInterfaceId' => 'eni-686ea200'
     );

   # Results:
   my $Attachment = $DescribeNetworkInterfaceAttributeResult->Attachment;
   my $NetworkInterfaceId =
     $DescribeNetworkInterfaceAttributeResult->NetworkInterfaceId;

   # Returns a L<Paws::EC2::DescribeNetworkInterfaceAttributeResult> object.
   # To describe the description attribute of a network interface
   # This example describes the description attribute of the specified network
   # interface.
   my $DescribeNetworkInterfaceAttributeResult =
     $ec2->DescribeNetworkInterfaceAttribute(
     'Attribute'          => 'description',
     'NetworkInterfaceId' => 'eni-686ea200'
     );

   # Results:
   my $Description = $DescribeNetworkInterfaceAttributeResult->Description;
   my $NetworkInterfaceId =
     $DescribeNetworkInterfaceAttributeResult->NetworkInterfaceId;

   # Returns a L<Paws::EC2::DescribeNetworkInterfaceAttributeResult> object.
   # To describe the groupSet attribute of a network interface
   # This example describes the groupSet attribute of the specified network
   # interface.
   my $DescribeNetworkInterfaceAttributeResult =
     $ec2->DescribeNetworkInterfaceAttribute(
     'Attribute'          => 'groupSet',
     'NetworkInterfaceId' => 'eni-686ea200'
     );

   # Results:
   my $Groups = $DescribeNetworkInterfaceAttributeResult->Groups;
   my $NetworkInterfaceId =
     $DescribeNetworkInterfaceAttributeResult->NetworkInterfaceId;

# Returns a L<Paws::EC2::DescribeNetworkInterfaceAttributeResult> object.
# To describe the sourceDestCheck attribute of a network interface
# This example describes the sourceDestCheck attribute of the specified network
# interface.
   my $DescribeNetworkInterfaceAttributeResult =
     $ec2->DescribeNetworkInterfaceAttribute(
     'Attribute'          => 'sourceDestCheck',
     'NetworkInterfaceId' => 'eni-686ea200'
     );

   # Results:
   my $NetworkInterfaceId =
     $DescribeNetworkInterfaceAttributeResult->NetworkInterfaceId;
   my $SourceDestCheck =
     $DescribeNetworkInterfaceAttributeResult->SourceDestCheck;

   # Returns a L<Paws::EC2::DescribeNetworkInterfaceAttributeResult> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/ec2/DescribeNetworkInterfaceAttribute

ATTRIBUTES

Attribute => Str

The attribute of the network interface. This parameter is required.

Valid values are: "description", "groupSet", "sourceDestCheck", "attachment"

DryRun => Bool

Checks whether you have the required permissions for the action, 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.

REQUIRED NetworkInterfaceId => Str

The ID of the network interface.

SEE ALSO

This class forms part of Paws, documenting arguments for method DescribeNetworkInterfaceAttribute in Paws::EC2

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues