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.

IamInstanceProfileAssociation

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

type IamInstanceProfileAssociation struct { AssociationId *string `locationName:"associationId" type:"string"` IamInstanceProfile *IamInstanceProfile `locationName:"iamInstanceProfile" type:"structure"` InstanceId *string `locationName:"instanceId" type:"string"` State *string `locationName:"state" type:"string" enum:"IamInstanceProfileAssociationState"` Timestamp *time.Time `locationName:"timestamp" type:"timestamp"` }

Describes an association between an IAM instance profile and an instance.

AssociationId

Type: *string

The ID of the association.

IamInstanceProfile

Describes an IAM instance profile.

InstanceId

Type: *string

The ID of the instance.

State

Type: *string

The state of the association.

Timestamp

Type: *time.Time

The time the IAM instance profile was associated with the instance.

Method

GoString

func (s IamInstanceProfileAssociation) GoString() string

GoString returns the string representation

SetAssociationId

func (s *IamInstanceProfileAssociation) SetAssociationId(v string) *IamInstanceProfileAssociation

SetAssociationId sets the AssociationId field's value.

SetIamInstanceProfile

func (s *IamInstanceProfileAssociation) SetIamInstanceProfile(v *IamInstanceProfile) *IamInstanceProfileAssociation

SetIamInstanceProfile sets the IamInstanceProfile field's value.

SetInstanceId

func (s *IamInstanceProfileAssociation) SetInstanceId(v string) *IamInstanceProfileAssociation

SetInstanceId sets the InstanceId field's value.

SetState

func (s *IamInstanceProfileAssociation) SetState(v string) *IamInstanceProfileAssociation

SetState sets the State field's value.

SetTimestamp

func (s *IamInstanceProfileAssociation) SetTimestamp(v time.Time) *IamInstanceProfileAssociation

SetTimestamp sets the Timestamp field's value.

String

func (s IamInstanceProfileAssociation) String() string

String returns the string representation

On this page: