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.

Region

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

type Region struct { AvailabilityZones []*AvailabilityZone `locationName:"availabilityZones" type:"list"` ContinentCode *string `locationName:"continentCode" type:"string"` Description *string `locationName:"description" type:"string"` DisplayName *string `locationName:"displayName" type:"string"` Name *string `locationName:"name" type:"string" enum:"RegionName"` RelationalDatabaseAvailabilityZones []*AvailabilityZone `locationName:"relationalDatabaseAvailabilityZones" type:"list"` }

Describes the AWS Region.

AvailabilityZones

Describes an Availability Zone.

ContinentCode

Type: *string

The continent code (e.g., NA, meaning North America).

Description

Type: *string

The description of the AWS Region (e.g., This region is recommended to serve users in the eastern United States and eastern Canada).

DisplayName

Type: *string

The display name (e.g., Ohio).

Name

Type: *string

The region name (e.g., us-east-2).

RelationalDatabaseAvailabilityZones

Describes an Availability Zone.

Method

GoString

func (s Region) GoString() string

GoString returns the string representation

SetAvailabilityZones

func (s *Region) SetAvailabilityZones(v []*AvailabilityZone) *Region

SetAvailabilityZones sets the AvailabilityZones field's value.

SetContinentCode

func (s *Region) SetContinentCode(v string) *Region

SetContinentCode sets the ContinentCode field's value.

SetDescription

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

SetDescription sets the Description field's value.

SetDisplayName

func (s *Region) SetDisplayName(v string) *Region

SetDisplayName sets the DisplayName field's value.

SetName

func (s *Region) SetName(v string) *Region

SetName sets the Name field's value.

SetRelationalDatabaseAvailabilityZones

func (s *Region) SetRelationalDatabaseAvailabilityZones(v []*AvailabilityZone) *Region

SetRelationalDatabaseAvailabilityZones sets the RelationalDatabaseAvailabilityZones field's value.

String

func (s Region) String() string

String returns the string representation

On this page: