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.

Relationship

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

type Relationship struct { RelationshipName *string `locationName:"relationshipName" type:"string"` ResourceId *string `locationName:"resourceId" min:"1" type:"string"` ResourceName *string `locationName:"resourceName" type:"string"` ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` }

The relationship of the related resource to the main resource.

RelationshipName

Type: *string

The type of relationship with the related resource.

ResourceId

Type: *string

The ID of the related resource (for example, sg-xxxxxx).

ResourceName

Type: *string

The custom name of the related resource, if available.

ResourceType

Type: *string

The resource type of the related resource.

Method

GoString

func (s Relationship) GoString() string

GoString returns the string representation

SetRelationshipName

func (s *Relationship) SetRelationshipName(v string) *Relationship

SetRelationshipName sets the RelationshipName field's value.

SetResourceId

func (s *Relationship) SetResourceId(v string) *Relationship

SetResourceId sets the ResourceId field's value.

SetResourceName

func (s *Relationship) SetResourceName(v string) *Relationship

SetResourceName sets the ResourceName field's value.

SetResourceType

func (s *Relationship) SetResourceType(v string) *Relationship

SetResourceType sets the ResourceType field's value.

String

func (s Relationship) String() string

String returns the string representation

On this page: