Versions in this module Expand all Collapse all v1 v1.48.2 Nov 21, 2023 Changes in this version + const ServiceName + type EC2IAMInfo struct + Code string + InstanceProfileArn string + InstanceProfileID string + LastUpdated time.Time + type EC2InstanceIdentityDocument struct + AccountID string + Architecture string + AvailabilityZone string + BillingProducts []string + DevpayProductCodes []string + ImageID string + InstanceID string + InstanceType string + KernelID string + MarketplaceProductCodes []string + PendingTime time.Time + PrivateIP string + RamdiskID string + Region string + Version string + type EC2Metadata struct + func New(p client.ConfigProvider, cfgs ...*aws.Config) *EC2Metadata + func NewClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string, ...) *EC2Metadata + func (c *EC2Metadata) Available() bool + func (c *EC2Metadata) AvailableWithContext(ctx aws.Context) bool + func (c *EC2Metadata) GetDynamicData(p string) (string, error) + func (c *EC2Metadata) GetDynamicDataWithContext(ctx aws.Context, p string) (string, error) + func (c *EC2Metadata) GetInstanceIdentityDocument() (EC2InstanceIdentityDocument, error) + func (c *EC2Metadata) GetInstanceIdentityDocumentWithContext(ctx aws.Context) (EC2InstanceIdentityDocument, error) + func (c *EC2Metadata) GetMetadata(p string) (string, error) + func (c *EC2Metadata) GetMetadataWithContext(ctx aws.Context, p string) (string, error) + func (c *EC2Metadata) GetUserData() (string, error) + func (c *EC2Metadata) GetUserDataWithContext(ctx aws.Context) (string, error) + func (c *EC2Metadata) IAMInfo() (EC2IAMInfo, error) + func (c *EC2Metadata) IAMInfoWithContext(ctx aws.Context) (EC2IAMInfo, error) + func (c *EC2Metadata) Region() (string, error) + func (c *EC2Metadata) RegionWithContext(ctx aws.Context) (string, error)