AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

IpRange

import "github.com/aws/aws-sdk-go/service/ec2"

type IpRange struct { CidrIp *string `locationName:"cidrIp" type:"string"` Description *string `locationName:"description" type:"string"` }

Describes an IPv4 range.

CidrIp

Type: *string

The IPv4 CIDR range. You can either specify a CIDR range or a source security group, not both. To specify a single IPv4 address, use the /32 prefix length.

Description

Type: *string

A description for the security group rule that references this IPv4 address range.

Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*

Method

GoString

func (s IpRange) GoString() string

GoString returns the string representation

SetCidrIp

func (s *IpRange) SetCidrIp(v string) *IpRange

SetCidrIp sets the CidrIp field's value.

SetDescription

func (s *IpRange) SetDescription(v string) *IpRange

SetDescription sets the Description field's value.

String

func (s IpRange) String() string

String returns the string representation

On this page: