licensemanager

package
v1.16.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2018 License: Apache-2.0 Imports: 10 Imported by: 42

Documentation

Overview

Package licensemanager provides the client and types for making API requests to AWS License Manager.

This is the AWS License Manager API Reference. It provides descriptions, syntax, and usage examples for each of the actions and data types for License Manager. The topic for each action shows the Query API request parameters and the XML response. You can also view the XML request elements in the WSDL.

Alternatively, you can use one of the AWS SDKs to access an API that's tailored to the programming language or platform that you're using. For more information, see AWS SDKs (http://aws.amazon.com/tools/#SDKs).

See https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01 for more information on this service.

See licensemanager package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/licensemanager/

Using the Client

To contact AWS License Manager with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the AWS License Manager client LicenseManager for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/licensemanager/#New

Index

Constants

View Source
const (
	// InventoryFilterConditionEquals is a InventoryFilterCondition enum value
	InventoryFilterConditionEquals = "EQUALS"

	// InventoryFilterConditionNotEquals is a InventoryFilterCondition enum value
	InventoryFilterConditionNotEquals = "NOT_EQUALS"

	// InventoryFilterConditionBeginsWith is a InventoryFilterCondition enum value
	InventoryFilterConditionBeginsWith = "BEGINS_WITH"

	// InventoryFilterConditionContains is a InventoryFilterCondition enum value
	InventoryFilterConditionContains = "CONTAINS"
)
View Source
const (
	// LicenseConfigurationStatusAvailable is a LicenseConfigurationStatus enum value
	LicenseConfigurationStatusAvailable = "AVAILABLE"

	// LicenseConfigurationStatusDisabled is a LicenseConfigurationStatus enum value
	LicenseConfigurationStatusDisabled = "DISABLED"
)
View Source
const (
	// LicenseCountingTypeVCpu is a LicenseCountingType enum value
	LicenseCountingTypeVCpu = "vCPU"

	// LicenseCountingTypeInstance is a LicenseCountingType enum value
	LicenseCountingTypeInstance = "Instance"

	// LicenseCountingTypeCore is a LicenseCountingType enum value
	LicenseCountingTypeCore = "Core"

	// LicenseCountingTypeSocket is a LicenseCountingType enum value
	LicenseCountingTypeSocket = "Socket"
)
View Source
const (
	// ResourceTypeEc2Instance is a ResourceType enum value
	ResourceTypeEc2Instance = "EC2_INSTANCE"

	// ResourceTypeEc2Host is a ResourceType enum value
	ResourceTypeEc2Host = "EC2_HOST"

	// ResourceTypeEc2Ami is a ResourceType enum value
	ResourceTypeEc2Ami = "EC2_AMI"
)
View Source
const (

	// ErrCodeAccessDeniedException for service response error code
	// "AccessDeniedException".
	//
	// Access to resource denied.
	ErrCodeAccessDeniedException = "AccessDeniedException"

	// ErrCodeAuthorizationException for service response error code
	// "AuthorizationException".
	//
	// The AWS user account does not have permission to perform the action. Check
	// the IAM policy associated with this account.
	ErrCodeAuthorizationException = "AuthorizationException"

	// ErrCodeFailedDependencyException for service response error code
	// "FailedDependencyException".
	//
	// A dependency required to run the API is missing.
	ErrCodeFailedDependencyException = "FailedDependencyException"

	// ErrCodeFilterLimitExceededException for service response error code
	// "FilterLimitExceededException".
	//
	// The request uses too many filters or too many filter values.
	ErrCodeFilterLimitExceededException = "FilterLimitExceededException"

	// ErrCodeInvalidParameterValueException for service response error code
	// "InvalidParameterValueException".
	//
	// One or more parameter values are not valid.
	ErrCodeInvalidParameterValueException = "InvalidParameterValueException"

	// ErrCodeInvalidResourceStateException for service response error code
	// "InvalidResourceStateException".
	//
	// License Manager cannot allocate a license to a resource because of its state.
	//
	// For example, you cannot allocate a license to an instance in the process
	// of shutting down.
	ErrCodeInvalidResourceStateException = "InvalidResourceStateException"

	// ErrCodeLicenseUsageException for service response error code
	// "LicenseUsageException".
	//
	// You do not have enough licenses available to support a new resource launch.
	ErrCodeLicenseUsageException = "LicenseUsageException"

	// ErrCodeRateLimitExceededException for service response error code
	// "RateLimitExceededException".
	//
	// Too many requests have been submitted. Try again after a brief wait.
	ErrCodeRateLimitExceededException = "RateLimitExceededException"

	// ErrCodeResourceLimitExceededException for service response error code
	// "ResourceLimitExceededException".
	//
	// Your resource limits have been exceeded.
	ErrCodeResourceLimitExceededException = "ResourceLimitExceededException"

	// ErrCodeServerInternalException for service response error code
	// "ServerInternalException".
	//
	// The server experienced an internal error. Try again.
	ErrCodeServerInternalException = "ServerInternalException"
)
View Source
const (
	ServiceName = "License Manager" // Name of service.
	EndpointsID = "license-manager" // ID to lookup a service endpoint with.
	ServiceID   = "License Manager" // ServiceID is a unique identifer of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumedLicenseSummary

type ConsumedLicenseSummary struct {

	// Number of licenses consumed by a resource.
	ConsumedLicenses *int64 `type:"long"`

	// Resource type of the resource consuming a license (instance, host, or AMI).
	ResourceType *string `type:"string" enum:"ResourceType"`
	// contains filtered or unexported fields
}

Details about license consumption.

func (ConsumedLicenseSummary) GoString

func (s ConsumedLicenseSummary) GoString() string

GoString returns the string representation

func (*ConsumedLicenseSummary) SetConsumedLicenses

func (s *ConsumedLicenseSummary) SetConsumedLicenses(v int64) *ConsumedLicenseSummary

SetConsumedLicenses sets the ConsumedLicenses field's value.

func (*ConsumedLicenseSummary) SetResourceType

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

SetResourceType sets the ResourceType field's value.

func (ConsumedLicenseSummary) String

func (s ConsumedLicenseSummary) String() string

String returns the string representation

type CreateLicenseConfigurationInput

type CreateLicenseConfigurationInput struct {

	// Human-friendly description of the license configuration.
	Description *string `type:"string"`

	// Number of licenses managed by the license configuration.
	LicenseCount *int64 `type:"long"`

	// Flag indicating whether hard or soft license enforcement is used. Exceeding
	// a hard limit results in the blocked deployment of new instances.
	LicenseCountHardLimit *bool `type:"boolean"`

	// Dimension to use to track the license inventory.
	//
	// LicenseCountingType is a required field
	LicenseCountingType *string `type:"string" required:"true" enum:"LicenseCountingType"`

	// Array of configured License Manager rules.
	LicenseRules []*string `type:"list"`

	// Name of the license configuration.
	//
	// Name is a required field
	Name *string `type:"string" required:"true"`

	// The tags to apply to the resources during launch. You can only tag instances
	// and volumes on launch. The specified tags are applied to all instances or
	// volumes that are created during launch. To tag a resource after it has been
	// created, see CreateTags .
	Tags []*Tag `type:"list"`
	// contains filtered or unexported fields
}

func (CreateLicenseConfigurationInput) GoString

GoString returns the string representation

func (*CreateLicenseConfigurationInput) SetDescription

SetDescription sets the Description field's value.

func (*CreateLicenseConfigurationInput) SetLicenseCount

SetLicenseCount sets the LicenseCount field's value.

func (*CreateLicenseConfigurationInput) SetLicenseCountHardLimit

SetLicenseCountHardLimit sets the LicenseCountHardLimit field's value.

func (*CreateLicenseConfigurationInput) SetLicenseCountingType

SetLicenseCountingType sets the LicenseCountingType field's value.

func (*CreateLicenseConfigurationInput) SetLicenseRules

SetLicenseRules sets the LicenseRules field's value.

func (*CreateLicenseConfigurationInput) SetName

SetName sets the Name field's value.

func (*CreateLicenseConfigurationInput) SetTags

SetTags sets the Tags field's value.

func (CreateLicenseConfigurationInput) String

String returns the string representation

func (*CreateLicenseConfigurationInput) Validate

func (s *CreateLicenseConfigurationInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateLicenseConfigurationOutput

type CreateLicenseConfigurationOutput struct {

	// ARN of the license configuration object after its creation.
	LicenseConfigurationArn *string `type:"string"`
	// contains filtered or unexported fields
}

func (CreateLicenseConfigurationOutput) GoString

GoString returns the string representation

func (*CreateLicenseConfigurationOutput) SetLicenseConfigurationArn

SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value.

func (CreateLicenseConfigurationOutput) String

String returns the string representation

type DeleteLicenseConfigurationInput

type DeleteLicenseConfigurationInput struct {

	// Unique ID of the configuration object to delete.
	//
	// LicenseConfigurationArn is a required field
	LicenseConfigurationArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteLicenseConfigurationInput) GoString

GoString returns the string representation

func (*DeleteLicenseConfigurationInput) SetLicenseConfigurationArn

SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value.

func (DeleteLicenseConfigurationInput) String

String returns the string representation

func (*DeleteLicenseConfigurationInput) Validate

func (s *DeleteLicenseConfigurationInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteLicenseConfigurationOutput

type DeleteLicenseConfigurationOutput struct {
	// contains filtered or unexported fields
}

func (DeleteLicenseConfigurationOutput) GoString

GoString returns the string representation

func (DeleteLicenseConfigurationOutput) String

String returns the string representation

type Filter

type Filter struct {

	// Name of the filter. Filter names are case-sensitive.
	Name *string `type:"string"`

	// One or more filter values. Filter values are case-sensitive.
	Values []*string `type:"list"`
	// contains filtered or unexported fields
}

A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. The filters supported by a Describe operation are documented with the Describe operation.

func (Filter) GoString

func (s Filter) GoString() string

GoString returns the string representation

func (*Filter) SetName

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

SetName sets the Name field's value.

func (*Filter) SetValues

func (s *Filter) SetValues(v []*string) *Filter

SetValues sets the Values field's value.

func (Filter) String

func (s Filter) String() string

String returns the string representation

type GetLicenseConfigurationInput

type GetLicenseConfigurationInput struct {

	// ARN of the license configuration being requested.
	//
	// LicenseConfigurationArn is a required field
	LicenseConfigurationArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetLicenseConfigurationInput) GoString

func (s GetLicenseConfigurationInput) GoString() string

GoString returns the string representation

func (*GetLicenseConfigurationInput) SetLicenseConfigurationArn

func (s *GetLicenseConfigurationInput) SetLicenseConfigurationArn(v string) *GetLicenseConfigurationInput

SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value.

func (GetLicenseConfigurationInput) String

String returns the string representation

func (*GetLicenseConfigurationInput) Validate

func (s *GetLicenseConfigurationInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetLicenseConfigurationOutput

type GetLicenseConfigurationOutput struct {

	// List of summaries for consumed licenses used by various resources.
	ConsumedLicenseSummaryList []*ConsumedLicenseSummary `type:"list"`

	// Number of licenses assigned to resources.
	ConsumedLicenses *int64 `type:"long"`

	// Description of the license configuration.
	Description *string `type:"string"`

	// ARN of the license configuration requested.
	LicenseConfigurationArn *string `type:"string"`

	// Unique ID for the license configuration.
	LicenseConfigurationId *string `type:"string"`

	// Number of available licenses.
	LicenseCount *int64 `type:"long"`

	// Sets the number of available licenses as a hard limit.
	LicenseCountHardLimit *bool `type:"boolean"`

	// Dimension on which the licenses are counted (for example, instances, cores,
	// sockets, or VCPUs).
	LicenseCountingType *string `type:"string" enum:"LicenseCountingType"`

	// List of flexible text strings designating license rules.
	LicenseRules []*string `type:"list"`

	// List of summaries of managed resources.
	ManagedResourceSummaryList []*ManagedResourceSummary `type:"list"`

	// Name of the license configuration.
	Name *string `type:"string"`

	// Owner account ID for the license configuration.
	OwnerAccountId *string `type:"string"`

	// License configuration status (active, etc.).
	Status *string `type:"string"`

	// List of tags attached to the license configuration.
	Tags []*Tag `type:"list"`
	// contains filtered or unexported fields
}

func (GetLicenseConfigurationOutput) GoString

GoString returns the string representation

func (*GetLicenseConfigurationOutput) SetConsumedLicenseSummaryList

SetConsumedLicenseSummaryList sets the ConsumedLicenseSummaryList field's value.

func (*GetLicenseConfigurationOutput) SetConsumedLicenses

SetConsumedLicenses sets the ConsumedLicenses field's value.

func (*GetLicenseConfigurationOutput) SetDescription

SetDescription sets the Description field's value.

func (*GetLicenseConfigurationOutput) SetLicenseConfigurationArn

func (s *GetLicenseConfigurationOutput) SetLicenseConfigurationArn(v string) *GetLicenseConfigurationOutput

SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value.

func (*GetLicenseConfigurationOutput) SetLicenseConfigurationId

func (s *GetLicenseConfigurationOutput) SetLicenseConfigurationId(v string) *GetLicenseConfigurationOutput

SetLicenseConfigurationId sets the LicenseConfigurationId field's value.

func (*GetLicenseConfigurationOutput) SetLicenseCount

SetLicenseCount sets the LicenseCount field's value.

func (*GetLicenseConfigurationOutput) SetLicenseCountHardLimit

func (s *GetLicenseConfigurationOutput) SetLicenseCountHardLimit(v bool) *GetLicenseConfigurationOutput

SetLicenseCountHardLimit sets the LicenseCountHardLimit field's value.

func (*GetLicenseConfigurationOutput) SetLicenseCountingType

SetLicenseCountingType sets the LicenseCountingType field's value.

func (*GetLicenseConfigurationOutput) SetLicenseRules

SetLicenseRules sets the LicenseRules field's value.

func (*GetLicenseConfigurationOutput) SetManagedResourceSummaryList

SetManagedResourceSummaryList sets the ManagedResourceSummaryList field's value.

func (*GetLicenseConfigurationOutput) SetName

SetName sets the Name field's value.

func (*GetLicenseConfigurationOutput) SetOwnerAccountId

SetOwnerAccountId sets the OwnerAccountId field's value.

func (*GetLicenseConfigurationOutput) SetStatus

SetStatus sets the Status field's value.

func (*GetLicenseConfigurationOutput) SetTags

SetTags sets the Tags field's value.

func (GetLicenseConfigurationOutput) String

String returns the string representation

type GetServiceSettingsInput

type GetServiceSettingsInput struct {
	// contains filtered or unexported fields
}

func (GetServiceSettingsInput) GoString

func (s GetServiceSettingsInput) GoString() string

GoString returns the string representation

func (GetServiceSettingsInput) String

func (s GetServiceSettingsInput) String() string

String returns the string representation

type GetServiceSettingsOutput

type GetServiceSettingsOutput struct {

	// Indicates whether cross-account discovery has been enabled.
	EnableCrossAccountsDiscovery *bool `type:"boolean"`

	// Indicates whether AWS Organizations has been integrated with License Manager
	// for cross-account discovery.
	OrganizationConfiguration *OrganizationConfiguration `type:"structure"`

	// Regional S3 bucket path for storing reports, license trail event data, discovery
	// data, etc.
	S3BucketArn *string `type:"string"`

	// SNS topic configured to receive notifications from License Manager.
	SnsTopicArn *string `type:"string"`
	// contains filtered or unexported fields
}

func (GetServiceSettingsOutput) GoString

func (s GetServiceSettingsOutput) GoString() string

GoString returns the string representation

func (*GetServiceSettingsOutput) SetEnableCrossAccountsDiscovery

func (s *GetServiceSettingsOutput) SetEnableCrossAccountsDiscovery(v bool) *GetServiceSettingsOutput

SetEnableCrossAccountsDiscovery sets the EnableCrossAccountsDiscovery field's value.

func (*GetServiceSettingsOutput) SetOrganizationConfiguration

SetOrganizationConfiguration sets the OrganizationConfiguration field's value.

func (*GetServiceSettingsOutput) SetS3BucketArn

SetS3BucketArn sets the S3BucketArn field's value.

func (*GetServiceSettingsOutput) SetSnsTopicArn

SetSnsTopicArn sets the SnsTopicArn field's value.

func (GetServiceSettingsOutput) String

func (s GetServiceSettingsOutput) String() string

String returns the string representation

type InventoryFilter

type InventoryFilter struct {

	// The condition of the filter.
	//
	// Condition is a required field
	Condition *string `type:"string" required:"true" enum:"InventoryFilterCondition"`

	// The name of the filter.
	//
	// Name is a required field
	Name *string `type:"string" required:"true"`

	// Value of the filter.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

An inventory filter object.

func (InventoryFilter) GoString

func (s InventoryFilter) GoString() string

GoString returns the string representation

func (*InventoryFilter) SetCondition

func (s *InventoryFilter) SetCondition(v string) *InventoryFilter

SetCondition sets the Condition field's value.

func (*InventoryFilter) SetName

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

SetName sets the Name field's value.

func (*InventoryFilter) SetValue

func (s *InventoryFilter) SetValue(v string) *InventoryFilter

SetValue sets the Value field's value.

func (InventoryFilter) String

func (s InventoryFilter) String() string

String returns the string representation

func (*InventoryFilter) Validate

func (s *InventoryFilter) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type LicenseConfiguration

type LicenseConfiguration struct {

	// List of summaries for licenses consumed by various resources.
	ConsumedLicenseSummaryList []*ConsumedLicenseSummary `type:"list"`

	// Number of licenses consumed.
	ConsumedLicenses *int64 `type:"long"`

	// Description of the license configuration.
	Description *string `type:"string"`

	// ARN of the LicenseConfiguration object.
	LicenseConfigurationArn *string `type:"string"`

	// Unique ID of the LicenseConfiguration object.
	LicenseConfigurationId *string `type:"string"`

	// Number of licenses managed by the license configuration.
	LicenseCount *int64 `type:"long"`

	// Sets the number of available licenses as a hard limit.
	LicenseCountHardLimit *bool `type:"boolean"`

	// Dimension to use to track license inventory.
	LicenseCountingType *string `type:"string" enum:"LicenseCountingType"`

	// Array of configured License Manager rules.
	LicenseRules []*string `type:"list"`

	// List of summaries for managed resources.
	ManagedResourceSummaryList []*ManagedResourceSummary `type:"list"`

	// Name of the license configuration.
	Name *string `type:"string"`

	// Account ID of the license configuration's owner.
	OwnerAccountId *string `type:"string"`

	// Status of the license configuration.
	Status *string `type:"string"`
	// contains filtered or unexported fields
}

A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (licensing by instance, socket, CPU, or VCPU), tenancy (shared tenancy, Amazon EC2 Dedicated Instance, Amazon EC2 Dedicated Host, or any of these), host affinity (how long a VM must be associated with a host), the number of licenses purchased and used.

func (LicenseConfiguration) GoString

func (s LicenseConfiguration) GoString() string

GoString returns the string representation

func (*LicenseConfiguration) SetConsumedLicenseSummaryList

func (s *LicenseConfiguration) SetConsumedLicenseSummaryList(v []*ConsumedLicenseSummary) *LicenseConfiguration

SetConsumedLicenseSummaryList sets the ConsumedLicenseSummaryList field's value.

func (*LicenseConfiguration) SetConsumedLicenses

func (s *LicenseConfiguration) SetConsumedLicenses(v int64) *LicenseConfiguration

SetConsumedLicenses sets the ConsumedLicenses field's value.

func (*LicenseConfiguration) SetDescription

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

SetDescription sets the Description field's value.

func (*LicenseConfiguration) SetLicenseConfigurationArn

func (s *LicenseConfiguration) SetLicenseConfigurationArn(v string) *LicenseConfiguration

SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value.

func (*LicenseConfiguration) SetLicenseConfigurationId

func (s *LicenseConfiguration) SetLicenseConfigurationId(v string) *LicenseConfiguration

SetLicenseConfigurationId sets the LicenseConfigurationId field's value.

func (*LicenseConfiguration) SetLicenseCount

func (s *LicenseConfiguration) SetLicenseCount(v int64) *LicenseConfiguration

SetLicenseCount sets the LicenseCount field's value.

func (*LicenseConfiguration) SetLicenseCountHardLimit

func (s *LicenseConfiguration) SetLicenseCountHardLimit(v bool) *LicenseConfiguration

SetLicenseCountHardLimit sets the LicenseCountHardLimit field's value.

func (*LicenseConfiguration) SetLicenseCountingType

func (s *LicenseConfiguration) SetLicenseCountingType(v string) *LicenseConfiguration

SetLicenseCountingType sets the LicenseCountingType field's value.

func (*LicenseConfiguration) SetLicenseRules

func (s *LicenseConfiguration) SetLicenseRules(v []*string) *LicenseConfiguration

SetLicenseRules sets the LicenseRules field's value.

func (*LicenseConfiguration) SetManagedResourceSummaryList

func (s *LicenseConfiguration) SetManagedResourceSummaryList(v []*ManagedResourceSummary) *LicenseConfiguration

SetManagedResourceSummaryList sets the ManagedResourceSummaryList field's value.

func (*LicenseConfiguration) SetName

SetName sets the Name field's value.

func (*LicenseConfiguration) SetOwnerAccountId

func (s *LicenseConfiguration) SetOwnerAccountId(v string) *LicenseConfiguration

SetOwnerAccountId sets the OwnerAccountId field's value.

func (*LicenseConfiguration) SetStatus

SetStatus sets the Status field's value.

func (LicenseConfiguration) String

func (s LicenseConfiguration) String() string

String returns the string representation

type LicenseConfigurationAssociation

type LicenseConfigurationAssociation struct {

	// Time when the license configuration was associated with the resource.
	AssociationTime *time.Time `type:"timestamp"`

	// ARN of the resource associated with the license configuration.
	ResourceArn *string `type:"string"`

	// ID of the AWS account that owns the resource consuming licenses.
	ResourceOwnerId *string `type:"string"`

	// Type of server resource.
	ResourceType *string `type:"string" enum:"ResourceType"`
	// contains filtered or unexported fields
}

Describes a server resource that is associated with a license configuration.

func (LicenseConfigurationAssociation) GoString

GoString returns the string representation

func (*LicenseConfigurationAssociation) SetAssociationTime

SetAssociationTime sets the AssociationTime field's value.

func (*LicenseConfigurationAssociation) SetResourceArn

SetResourceArn sets the ResourceArn field's value.

func (*LicenseConfigurationAssociation) SetResourceOwnerId

SetResourceOwnerId sets the ResourceOwnerId field's value.

func (*LicenseConfigurationAssociation) SetResourceType

SetResourceType sets the ResourceType field's value.

func (LicenseConfigurationAssociation) String

String returns the string representation

type LicenseConfigurationUsage

type LicenseConfigurationUsage struct {

	// Time when the license configuration was initially associated with a resource.
	AssociationTime *time.Time `type:"timestamp"`

	// Number of licenses consumed out of the total provisioned in the license configuration.
	ConsumedLicenses *int64 `type:"long"`

	// ARN of the resource associated with a license configuration.
	ResourceArn *string `type:"string"`

	// ID of the account that owns a resource that is associated with the license
	// configuration.
	ResourceOwnerId *string `type:"string"`

	// Status of a resource associated with the license configuration.
	ResourceStatus *string `type:"string"`

	// Type of resource associated with athe license configuration.
	ResourceType *string `type:"string" enum:"ResourceType"`
	// contains filtered or unexported fields
}

Contains details of the usage of each resource from the license pool.

func (LicenseConfigurationUsage) GoString

func (s LicenseConfigurationUsage) GoString() string

GoString returns the string representation

func (*LicenseConfigurationUsage) SetAssociationTime

SetAssociationTime sets the AssociationTime field's value.

func (*LicenseConfigurationUsage) SetConsumedLicenses

func (s *LicenseConfigurationUsage) SetConsumedLicenses(v int64) *LicenseConfigurationUsage

SetConsumedLicenses sets the ConsumedLicenses field's value.

func (*LicenseConfigurationUsage) SetResourceArn

SetResourceArn sets the ResourceArn field's value.

func (*LicenseConfigurationUsage) SetResourceOwnerId

SetResourceOwnerId sets the ResourceOwnerId field's value.

func (*LicenseConfigurationUsage) SetResourceStatus

SetResourceStatus sets the ResourceStatus field's value.

func (*LicenseConfigurationUsage) SetResourceType

SetResourceType sets the ResourceType field's value.

func (LicenseConfigurationUsage) String

func (s LicenseConfigurationUsage) String() string

String returns the string representation

type LicenseManager

type LicenseManager struct {
	*client.Client
}

LicenseManager provides the API operation methods for making requests to AWS License Manager. See this package's package overview docs for details on the service.

LicenseManager methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *LicenseManager

New creates a new instance of the LicenseManager client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

// Create a LicenseManager client from just a session.
svc := licensemanager.New(mySession)

// Create a LicenseManager client with additional configuration
svc := licensemanager.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*LicenseManager) CreateLicenseConfiguration

CreateLicenseConfiguration API operation for AWS License Manager.

Creates a new license configuration object. A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (licensing by instance, socket, CPU, or VCPU), tenancy (shared tenancy, Amazon EC2 Dedicated Instance, Amazon EC2 Dedicated Host, or any of these), host affinity (how long a VM must be associated with a host), the number of licenses purchased and used.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS License Manager's API operation CreateLicenseConfiguration for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterValueException "InvalidParameterValueException" One or more parameter values are not valid.

  • ErrCodeServerInternalException "ServerInternalException" The server experienced an internal error. Try again.

  • ErrCodeResourceLimitExceededException "ResourceLimitExceededException" Your resource limits have been exceeded.

  • ErrCodeAuthorizationException "AuthorizationException" The AWS user account does not have permission to perform the action. Check the IAM policy associated with this account.

  • ErrCodeAccessDeniedException "AccessDeniedException" Access to resource denied.

  • ErrCodeRateLimitExceededException "RateLimitExceededException" Too many requests have been submitted. Try again after a brief wait.

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateLicenseConfiguration

func (*LicenseManager) CreateLicenseConfigurationRequest

func (c *LicenseManager) CreateLicenseConfigurationRequest(input *CreateLicenseConfigurationInput) (req *request.Request, output *CreateLicenseConfigurationOutput)

CreateLicenseConfigurationRequest generates a "aws/request.Request" representing the client's request for the CreateLicenseConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateLicenseConfiguration for more information on using the CreateLicenseConfiguration API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateLicenseConfigurationRequest method.
req, resp := client.CreateLicenseConfigurationRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateLicenseConfiguration

func (*LicenseManager) CreateLicenseConfigurationWithContext

func (c *LicenseManager) CreateLicenseConfigurationWithContext(ctx aws.Context, input *CreateLicenseConfigurationInput, opts ...request.Option) (*CreateLicenseConfigurationOutput, error)

CreateLicenseConfigurationWithContext is the same as CreateLicenseConfiguration with the addition of the ability to pass a context and additional request options.

See CreateLicenseConfiguration for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*LicenseManager) DeleteLicenseConfiguration

DeleteLicenseConfiguration API operation for AWS License Manager.

Deletes an existing license configuration. This action fails if the configuration is in use.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS License Manager's API operation DeleteLicenseConfiguration for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterValueException "InvalidParameterValueException" One or more parameter values are not valid.

  • ErrCodeServerInternalException "ServerInternalException" The server experienced an internal error. Try again.

  • ErrCodeAuthorizationException "AuthorizationException" The AWS user account does not have permission to perform the action. Check the IAM policy associated with this account.

  • ErrCodeAccessDeniedException "AccessDeniedException" Access to resource denied.

  • ErrCodeRateLimitExceededException "RateLimitExceededException" Too many requests have been submitted. Try again after a brief wait.

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteLicenseConfiguration

func (*LicenseManager) DeleteLicenseConfigurationRequest

func (c *LicenseManager) DeleteLicenseConfigurationRequest(input *DeleteLicenseConfigurationInput) (req *request.Request, output *DeleteLicenseConfigurationOutput)

DeleteLicenseConfigurationRequest generates a "aws/request.Request" representing the client's request for the DeleteLicenseConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteLicenseConfiguration for more information on using the DeleteLicenseConfiguration API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteLicenseConfigurationRequest method.
req, resp := client.DeleteLicenseConfigurationRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteLicenseConfiguration

func (*LicenseManager) DeleteLicenseConfigurationWithContext

func (c *LicenseManager) DeleteLicenseConfigurationWithContext(ctx aws.Context, input *DeleteLicenseConfigurationInput, opts ...request.Option) (*DeleteLicenseConfigurationOutput, error)

DeleteLicenseConfigurationWithContext is the same as DeleteLicenseConfiguration with the addition of the ability to pass a context and additional request options.

See DeleteLicenseConfiguration for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*LicenseManager) GetLicenseConfiguration

func (c *LicenseManager) GetLicenseConfiguration(input *GetLicenseConfigurationInput) (*GetLicenseConfigurationOutput, error)

GetLicenseConfiguration API operation for AWS License Manager.

Returns a detailed description of a license configuration.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS License Manager's API operation GetLicenseConfiguration for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterValueException "InvalidParameterValueException" One or more parameter values are not valid.

  • ErrCodeServerInternalException "ServerInternalException" The server experienced an internal error. Try again.

  • ErrCodeAuthorizationException "AuthorizationException" The AWS user account does not have permission to perform the action. Check the IAM policy associated with this account.

  • ErrCodeAccessDeniedException "AccessDeniedException" Access to resource denied.

  • ErrCodeRateLimitExceededException "RateLimitExceededException" Too many requests have been submitted. Try again after a brief wait.

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetLicenseConfiguration

func (*LicenseManager) GetLicenseConfigurationRequest

func (c *LicenseManager) GetLicenseConfigurationRequest(input *GetLicenseConfigurationInput) (req *request.Request, output *GetLicenseConfigurationOutput)

GetLicenseConfigurationRequest generates a "aws/request.Request" representing the client's request for the GetLicenseConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetLicenseConfiguration for more information on using the GetLicenseConfiguration API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetLicenseConfigurationRequest method.
req, resp := client.GetLicenseConfigurationRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetLicenseConfiguration

func (*LicenseManager) GetLicenseConfigurationWithContext

func (c *LicenseManager) GetLicenseConfigurationWithContext(ctx aws.Context, input *GetLicenseConfigurationInput, opts ...request.Option) (*GetLicenseConfigurationOutput, error)

GetLicenseConfigurationWithContext is the same as GetLicenseConfiguration with the addition of the ability to pass a context and additional request options.

See GetLicenseConfiguration for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*LicenseManager) GetServiceSettings

func (c *LicenseManager) GetServiceSettings(input *GetServiceSettingsInput) (*GetServiceSettingsOutput, error)

GetServiceSettings API operation for AWS License Manager.

Gets License Manager settings for a region. Exposes the configured S3 bucket, SNS topic, etc., for inspection.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS License Manager's API operation GetServiceSettings for usage and error information.

Returned Error Codes:

  • ErrCodeServerInternalException "ServerInternalException" The server experienced an internal error. Try again.

  • ErrCodeAuthorizationException "AuthorizationException" The AWS user account does not have permission to perform the action. Check the IAM policy associated with this account.

  • ErrCodeAccessDeniedException "AccessDeniedException" Access to resource denied.

  • ErrCodeRateLimitExceededException "RateLimitExceededException" Too many requests have been submitted. Try again after a brief wait.

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetServiceSettings

func (*LicenseManager) GetServiceSettingsRequest

func (c *LicenseManager) GetServiceSettingsRequest(input *GetServiceSettingsInput) (req *request.Request, output *GetServiceSettingsOutput)

GetServiceSettingsRequest generates a "aws/request.Request" representing the client's request for the GetServiceSettings operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetServiceSettings for more information on using the GetServiceSettings API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetServiceSettingsRequest method.
req, resp := client.GetServiceSettingsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetServiceSettings

func (*LicenseManager) GetServiceSettingsWithContext

func (c *LicenseManager) GetServiceSettingsWithContext(ctx aws.Context, input *GetServiceSettingsInput, opts ...request.Option) (*GetServiceSettingsOutput, error)

GetServiceSettingsWithContext is the same as GetServiceSettings with the addition of the ability to pass a context and additional request options.

See GetServiceSettings for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*LicenseManager) ListAssociationsForLicenseConfiguration

ListAssociationsForLicenseConfiguration API operation for AWS License Manager.

Lists the resource associations for a license configuration. Resource associations need not consume licenses from a license configuration. For example, an AMI or a stopped instance may not consume a license (depending on the license rules). Use this operation to find all resources associated with a license configuration.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS License Manager's API operation ListAssociationsForLicenseConfiguration for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterValueException "InvalidParameterValueException" One or more parameter values are not valid.

  • ErrCodeFilterLimitExceededException "FilterLimitExceededException" The request uses too many filters or too many filter values.

  • ErrCodeServerInternalException "ServerInternalException" The server experienced an internal error. Try again.

  • ErrCodeAuthorizationException "AuthorizationException" The AWS user account does not have permission to perform the action. Check the IAM policy associated with this account.

  • ErrCodeAccessDeniedException "AccessDeniedException" Access to resource denied.

  • ErrCodeRateLimitExceededException "RateLimitExceededException" Too many requests have been submitted. Try again after a brief wait.

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListAssociationsForLicenseConfiguration

func (*LicenseManager) ListAssociationsForLicenseConfigurationRequest

func (c *LicenseManager) ListAssociationsForLicenseConfigurationRequest(input *ListAssociationsForLicenseConfigurationInput) (req *request.Request, output *ListAssociationsForLicenseConfigurationOutput)

ListAssociationsForLicenseConfigurationRequest generates a "aws/request.Request" representing the client's request for the ListAssociationsForLicenseConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListAssociationsForLicenseConfiguration for more information on using the ListAssociationsForLicenseConfiguration API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListAssociationsForLicenseConfigurationRequest method.
req, resp := client.ListAssociationsForLicenseConfigurationRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListAssociationsForLicenseConfiguration

func (*LicenseManager) ListAssociationsForLicenseConfigurationWithContext

func (c *LicenseManager) ListAssociationsForLicenseConfigurationWithContext(ctx aws.Context, input *ListAssociationsForLicenseConfigurationInput, opts ...request.Option) (*ListAssociationsForLicenseConfigurationOutput, error)

ListAssociationsForLicenseConfigurationWithContext is the same as ListAssociationsForLicenseConfiguration with the addition of the ability to pass a context and additional request options.

See ListAssociationsForLicenseConfiguration for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*LicenseManager) ListLicenseConfigurations

ListLicenseConfigurations API operation for AWS License Manager.

Lists license configuration objects for an account, each containing the name, description, license type, and other license terms modeled from a license agreement.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS License Manager's API operation ListLicenseConfigurations for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterValueException "InvalidParameterValueException" One or more parameter values are not valid.

  • ErrCodeServerInternalException "ServerInternalException" The server experienced an internal error. Try again.

  • ErrCodeFilterLimitExceededException "FilterLimitExceededException" The request uses too many filters or too many filter values.

  • ErrCodeAuthorizationException "AuthorizationException" The AWS user account does not have permission to perform the action. Check the IAM policy associated with this account.

  • ErrCodeAccessDeniedException "AccessDeniedException" Access to resource denied.

  • ErrCodeRateLimitExceededException "RateLimitExceededException" Too many requests have been submitted. Try again after a brief wait.

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseConfigurations

func (*LicenseManager) ListLicenseConfigurationsRequest

func (c *LicenseManager) ListLicenseConfigurationsRequest(input *ListLicenseConfigurationsInput) (req *request.Request, output *ListLicenseConfigurationsOutput)

ListLicenseConfigurationsRequest generates a "aws/request.Request" representing the client's request for the ListLicenseConfigurations operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListLicenseConfigurations for more information on using the ListLicenseConfigurations API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListLicenseConfigurationsRequest method.
req, resp := client.ListLicenseConfigurationsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseConfigurations

func (*LicenseManager) ListLicenseConfigurationsWithContext

func (c *LicenseManager) ListLicenseConfigurationsWithContext(ctx aws.Context, input *ListLicenseConfigurationsInput, opts ...request.Option) (*ListLicenseConfigurationsOutput, error)

ListLicenseConfigurationsWithContext is the same as ListLicenseConfigurations with the addition of the ability to pass a context and additional request options.

See ListLicenseConfigurations for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*LicenseManager) ListLicenseSpecificationsForResource

ListLicenseSpecificationsForResource API operation for AWS License Manager.

Returns the license configuration for a resource.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS License Manager's API operation ListLicenseSpecificationsForResource for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterValueException "InvalidParameterValueException" One or more parameter values are not valid.

  • ErrCodeServerInternalException "ServerInternalException" The server experienced an internal error. Try again.

  • ErrCodeAuthorizationException "AuthorizationException" The AWS user account does not have permission to perform the action. Check the IAM policy associated with this account.

  • ErrCodeAccessDeniedException "AccessDeniedException" Access to resource denied.

  • ErrCodeRateLimitExceededException "RateLimitExceededException" Too many requests have been submitted. Try again after a brief wait.

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseSpecificationsForResource

func (*LicenseManager) ListLicenseSpecificationsForResourceRequest

func (c *LicenseManager) ListLicenseSpecificationsForResourceRequest(input *ListLicenseSpecificationsForResourceInput) (req *request.Request, output *ListLicenseSpecificationsForResourceOutput)

ListLicenseSpecificationsForResourceRequest generates a "aws/request.Request" representing the client's request for the ListLicenseSpecificationsForResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListLicenseSpecificationsForResource for more information on using the ListLicenseSpecificationsForResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListLicenseSpecificationsForResourceRequest method.
req, resp := client.ListLicenseSpecificationsForResourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseSpecificationsForResource

func (*LicenseManager) ListLicenseSpecificationsForResourceWithContext

func (c *LicenseManager) ListLicenseSpecificationsForResourceWithContext(ctx aws.Context, input *ListLicenseSpecificationsForResourceInput, opts ...request.Option) (*ListLicenseSpecificationsForResourceOutput, error)

ListLicenseSpecificationsForResourceWithContext is the same as ListLicenseSpecificationsForResource with the addition of the ability to pass a context and additional request options.

See ListLicenseSpecificationsForResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*LicenseManager) ListResourceInventory

func (c *LicenseManager) ListResourceInventory(input *ListResourceInventoryInput) (*ListResourceInventoryOutput, error)

ListResourceInventory API operation for AWS License Manager.

Returns a detailed list of resources.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS License Manager's API operation ListResourceInventory for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterValueException "InvalidParameterValueException" One or more parameter values are not valid.

  • ErrCodeServerInternalException "ServerInternalException" The server experienced an internal error. Try again.

  • ErrCodeFilterLimitExceededException "FilterLimitExceededException" The request uses too many filters or too many filter values.

  • ErrCodeFailedDependencyException "FailedDependencyException" A dependency required to run the API is missing.

  • ErrCodeAuthorizationException "AuthorizationException" The AWS user account does not have permission to perform the action. Check the IAM policy associated with this account.

  • ErrCodeAccessDeniedException "AccessDeniedException" Access to resource denied.

  • ErrCodeRateLimitExceededException "RateLimitExceededException" Too many requests have been submitted. Try again after a brief wait.

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListResourceInventory

func (*LicenseManager) ListResourceInventoryRequest

func (c *LicenseManager) ListResourceInventoryRequest(input *ListResourceInventoryInput) (req *request.Request, output *ListResourceInventoryOutput)

ListResourceInventoryRequest generates a "aws/request.Request" representing the client's request for the ListResourceInventory operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListResourceInventory for more information on using the ListResourceInventory API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListResourceInventoryRequest method.
req, resp := client.ListResourceInventoryRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListResourceInventory

func (*LicenseManager) ListResourceInventoryWithContext

func (c *LicenseManager) ListResourceInventoryWithContext(ctx aws.Context, input *ListResourceInventoryInput, opts ...request.Option) (*ListResourceInventoryOutput, error)

ListResourceInventoryWithContext is the same as ListResourceInventory with the addition of the ability to pass a context and additional request options.

See ListResourceInventory for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*LicenseManager) ListTagsForResource

func (c *LicenseManager) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error)

ListTagsForResource API operation for AWS License Manager.

Lists tags attached to a resource.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS License Manager's API operation ListTagsForResource for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterValueException "InvalidParameterValueException" One or more parameter values are not valid.

  • ErrCodeServerInternalException "ServerInternalException" The server experienced an internal error. Try again.

  • ErrCodeAuthorizationException "AuthorizationException" The AWS user account does not have permission to perform the action. Check the IAM policy associated with this account.

  • ErrCodeAccessDeniedException "AccessDeniedException" Access to resource denied.

  • ErrCodeRateLimitExceededException "RateLimitExceededException" Too many requests have been submitted. Try again after a brief wait.

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListTagsForResource

func (*LicenseManager) ListTagsForResourceRequest

func (c *LicenseManager) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput)

ListTagsForResourceRequest generates a "aws/request.Request" representing the client's request for the ListTagsForResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListTagsForResource for more information on using the ListTagsForResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListTagsForResourceRequest method.
req, resp := client.ListTagsForResourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListTagsForResource

func (*LicenseManager) ListTagsForResourceWithContext

func (c *LicenseManager) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error)

ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of the ability to pass a context and additional request options.

See ListTagsForResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*LicenseManager) ListUsageForLicenseConfiguration

ListUsageForLicenseConfiguration API operation for AWS License Manager.

Lists all license usage records for a license configuration, displaying license consumption details by resource at a selected point in time. Use this action to audit the current license consumption for any license inventory and configuration.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS License Manager's API operation ListUsageForLicenseConfiguration for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterValueException "InvalidParameterValueException" One or more parameter values are not valid.

  • ErrCodeFilterLimitExceededException "FilterLimitExceededException" The request uses too many filters or too many filter values.

  • ErrCodeServerInternalException "ServerInternalException" The server experienced an internal error. Try again.

  • ErrCodeAuthorizationException "AuthorizationException" The AWS user account does not have permission to perform the action. Check the IAM policy associated with this account.

  • ErrCodeAccessDeniedException "AccessDeniedException" Access to resource denied.

  • ErrCodeRateLimitExceededException "RateLimitExceededException" Too many requests have been submitted. Try again after a brief wait.

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListUsageForLicenseConfiguration

func (*LicenseManager) ListUsageForLicenseConfigurationRequest

func (c *LicenseManager) ListUsageForLicenseConfigurationRequest(input *ListUsageForLicenseConfigurationInput) (req *request.Request, output *ListUsageForLicenseConfigurationOutput)

ListUsageForLicenseConfigurationRequest generates a "aws/request.Request" representing the client's request for the ListUsageForLicenseConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListUsageForLicenseConfiguration for more information on using the ListUsageForLicenseConfiguration API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListUsageForLicenseConfigurationRequest method.
req, resp := client.ListUsageForLicenseConfigurationRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListUsageForLicenseConfiguration

func (*LicenseManager) ListUsageForLicenseConfigurationWithContext

func (c *LicenseManager) ListUsageForLicenseConfigurationWithContext(ctx aws.Context, input *ListUsageForLicenseConfigurationInput, opts ...request.Option) (*ListUsageForLicenseConfigurationOutput, error)

ListUsageForLicenseConfigurationWithContext is the same as ListUsageForLicenseConfiguration with the addition of the ability to pass a context and additional request options.

See ListUsageForLicenseConfiguration for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*LicenseManager) TagResource

func (c *LicenseManager) TagResource(input *TagResourceInput) (*TagResourceOutput, error)

TagResource API operation for AWS License Manager.

Attach one of more tags to any resource.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS License Manager's API operation TagResource for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterValueException "InvalidParameterValueException" One or more parameter values are not valid.

  • ErrCodeServerInternalException "ServerInternalException" The server experienced an internal error. Try again.

  • ErrCodeAuthorizationException "AuthorizationException" The AWS user account does not have permission to perform the action. Check the IAM policy associated with this account.

  • ErrCodeAccessDeniedException "AccessDeniedException" Access to resource denied.

  • ErrCodeRateLimitExceededException "RateLimitExceededException" Too many requests have been submitted. Try again after a brief wait.

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/TagResource

func (*LicenseManager) TagResourceRequest

func (c *LicenseManager) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput)

TagResourceRequest generates a "aws/request.Request" representing the client's request for the TagResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See TagResource for more information on using the TagResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the TagResourceRequest method.
req, resp := client.TagResourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/TagResource

func (*LicenseManager) TagResourceWithContext

func (c *LicenseManager) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error)

TagResourceWithContext is the same as TagResource with the addition of the ability to pass a context and additional request options.

See TagResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*LicenseManager) UntagResource

func (c *LicenseManager) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error)

UntagResource API operation for AWS License Manager.

Remove tags from a resource.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS License Manager's API operation UntagResource for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterValueException "InvalidParameterValueException" One or more parameter values are not valid.

  • ErrCodeServerInternalException "ServerInternalException" The server experienced an internal error. Try again.

  • ErrCodeAuthorizationException "AuthorizationException" The AWS user account does not have permission to perform the action. Check the IAM policy associated with this account.

  • ErrCodeAccessDeniedException "AccessDeniedException" Access to resource denied.

  • ErrCodeRateLimitExceededException "RateLimitExceededException" Too many requests have been submitted. Try again after a brief wait.

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UntagResource

func (*LicenseManager) UntagResourceRequest

func (c *LicenseManager) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput)

UntagResourceRequest generates a "aws/request.Request" representing the client's request for the UntagResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UntagResource for more information on using the UntagResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UntagResourceRequest method.
req, resp := client.UntagResourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UntagResource

func (*LicenseManager) UntagResourceWithContext

func (c *LicenseManager) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error)

UntagResourceWithContext is the same as UntagResource with the addition of the ability to pass a context and additional request options.

See UntagResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*LicenseManager) UpdateLicenseConfiguration

UpdateLicenseConfiguration API operation for AWS License Manager.

Modifies the attributes of an existing license configuration object. A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (Instances, cores, sockets, VCPUs), tenancy (shared or Dedicated Host), host affinity (how long a VM is associated with a host), the number of licenses purchased and used.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS License Manager's API operation UpdateLicenseConfiguration for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterValueException "InvalidParameterValueException" One or more parameter values are not valid.

  • ErrCodeServerInternalException "ServerInternalException" The server experienced an internal error. Try again.

  • ErrCodeAuthorizationException "AuthorizationException" The AWS user account does not have permission to perform the action. Check the IAM policy associated with this account.

  • ErrCodeAccessDeniedException "AccessDeniedException" Access to resource denied.

  • ErrCodeRateLimitExceededException "RateLimitExceededException" Too many requests have been submitted. Try again after a brief wait.

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseConfiguration

func (*LicenseManager) UpdateLicenseConfigurationRequest

func (c *LicenseManager) UpdateLicenseConfigurationRequest(input *UpdateLicenseConfigurationInput) (req *request.Request, output *UpdateLicenseConfigurationOutput)

UpdateLicenseConfigurationRequest generates a "aws/request.Request" representing the client's request for the UpdateLicenseConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateLicenseConfiguration for more information on using the UpdateLicenseConfiguration API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateLicenseConfigurationRequest method.
req, resp := client.UpdateLicenseConfigurationRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseConfiguration

func (*LicenseManager) UpdateLicenseConfigurationWithContext

func (c *LicenseManager) UpdateLicenseConfigurationWithContext(ctx aws.Context, input *UpdateLicenseConfigurationInput, opts ...request.Option) (*UpdateLicenseConfigurationOutput, error)

UpdateLicenseConfigurationWithContext is the same as UpdateLicenseConfiguration with the addition of the ability to pass a context and additional request options.

See UpdateLicenseConfiguration for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*LicenseManager) UpdateLicenseSpecificationsForResource

UpdateLicenseSpecificationsForResource API operation for AWS License Manager.

Adds or removes license configurations for a specified AWS resource. This operation currently supports updating the license specifications of AMIs, instances, and hosts. Launch templates and AWS CloudFormation templates are not managed from this operation as those resources send the license configurations directly to a resource creation operation, such as RunInstances.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS License Manager's API operation UpdateLicenseSpecificationsForResource for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterValueException "InvalidParameterValueException" One or more parameter values are not valid.

  • ErrCodeInvalidResourceStateException "InvalidResourceStateException" License Manager cannot allocate a license to a resource because of its state.

    For example, you cannot allocate a license to an instance in the process of shutting down.

  • ErrCodeLicenseUsageException "LicenseUsageException" You do not have enough licenses available to support a new resource launch.

  • ErrCodeServerInternalException "ServerInternalException" The server experienced an internal error. Try again.

  • ErrCodeAuthorizationException "AuthorizationException" The AWS user account does not have permission to perform the action. Check the IAM policy associated with this account.

  • ErrCodeAccessDeniedException "AccessDeniedException" Access to resource denied.

  • ErrCodeRateLimitExceededException "RateLimitExceededException" Too many requests have been submitted. Try again after a brief wait.

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseSpecificationsForResource

func (*LicenseManager) UpdateLicenseSpecificationsForResourceRequest

func (c *LicenseManager) UpdateLicenseSpecificationsForResourceRequest(input *UpdateLicenseSpecificationsForResourceInput) (req *request.Request, output *UpdateLicenseSpecificationsForResourceOutput)

UpdateLicenseSpecificationsForResourceRequest generates a "aws/request.Request" representing the client's request for the UpdateLicenseSpecificationsForResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateLicenseSpecificationsForResource for more information on using the UpdateLicenseSpecificationsForResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateLicenseSpecificationsForResourceRequest method.
req, resp := client.UpdateLicenseSpecificationsForResourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseSpecificationsForResource

func (*LicenseManager) UpdateLicenseSpecificationsForResourceWithContext

func (c *LicenseManager) UpdateLicenseSpecificationsForResourceWithContext(ctx aws.Context, input *UpdateLicenseSpecificationsForResourceInput, opts ...request.Option) (*UpdateLicenseSpecificationsForResourceOutput, error)

UpdateLicenseSpecificationsForResourceWithContext is the same as UpdateLicenseSpecificationsForResource with the addition of the ability to pass a context and additional request options.

See UpdateLicenseSpecificationsForResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*LicenseManager) UpdateServiceSettings

func (c *LicenseManager) UpdateServiceSettings(input *UpdateServiceSettingsInput) (*UpdateServiceSettingsOutput, error)

UpdateServiceSettings API operation for AWS License Manager.

Updates License Manager service settings.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS License Manager's API operation UpdateServiceSettings for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterValueException "InvalidParameterValueException" One or more parameter values are not valid.

  • ErrCodeServerInternalException "ServerInternalException" The server experienced an internal error. Try again.

  • ErrCodeAuthorizationException "AuthorizationException" The AWS user account does not have permission to perform the action. Check the IAM policy associated with this account.

  • ErrCodeAccessDeniedException "AccessDeniedException" Access to resource denied.

  • ErrCodeRateLimitExceededException "RateLimitExceededException" Too many requests have been submitted. Try again after a brief wait.

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateServiceSettings

func (*LicenseManager) UpdateServiceSettingsRequest

func (c *LicenseManager) UpdateServiceSettingsRequest(input *UpdateServiceSettingsInput) (req *request.Request, output *UpdateServiceSettingsOutput)

UpdateServiceSettingsRequest generates a "aws/request.Request" representing the client's request for the UpdateServiceSettings operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateServiceSettings for more information on using the UpdateServiceSettings API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateServiceSettingsRequest method.
req, resp := client.UpdateServiceSettingsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateServiceSettings

func (*LicenseManager) UpdateServiceSettingsWithContext

func (c *LicenseManager) UpdateServiceSettingsWithContext(ctx aws.Context, input *UpdateServiceSettingsInput, opts ...request.Option) (*UpdateServiceSettingsOutput, error)

UpdateServiceSettingsWithContext is the same as UpdateServiceSettings with the addition of the ability to pass a context and additional request options.

See UpdateServiceSettings for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

type LicenseSpecification

type LicenseSpecification struct {

	// ARN of the LicenseConfiguration object.
	//
	// LicenseConfigurationArn is a required field
	LicenseConfigurationArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Object used for associating a license configuration with a resource.

func (LicenseSpecification) GoString

func (s LicenseSpecification) GoString() string

GoString returns the string representation

func (*LicenseSpecification) SetLicenseConfigurationArn

func (s *LicenseSpecification) SetLicenseConfigurationArn(v string) *LicenseSpecification

SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value.

func (LicenseSpecification) String

func (s LicenseSpecification) String() string

String returns the string representation

func (*LicenseSpecification) Validate

func (s *LicenseSpecification) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListAssociationsForLicenseConfigurationInput

type ListAssociationsForLicenseConfigurationInput struct {

	// ARN of a LicenseConfiguration object.
	//
	// LicenseConfigurationArn is a required field
	LicenseConfigurationArn *string `type:"string" required:"true"`

	// Maximum number of results to return in a single call. To retrieve the remaining
	// results, make another call with the returned NextToken value.
	MaxResults *int64 `type:"integer"`

	// Token for the next set of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (ListAssociationsForLicenseConfigurationInput) GoString

GoString returns the string representation

func (*ListAssociationsForLicenseConfigurationInput) SetLicenseConfigurationArn

SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value.

func (*ListAssociationsForLicenseConfigurationInput) SetMaxResults

SetMaxResults sets the MaxResults field's value.

func (*ListAssociationsForLicenseConfigurationInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListAssociationsForLicenseConfigurationInput) String

String returns the string representation

func (*ListAssociationsForLicenseConfigurationInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type ListAssociationsForLicenseConfigurationOutput

type ListAssociationsForLicenseConfigurationOutput struct {

	// Lists association objects for the license configuration, each containing
	// the association time, number of consumed licenses, resource ARN, resource
	// ID, account ID that owns the resource, resource size, and resource type.
	LicenseConfigurationAssociations []*LicenseConfigurationAssociation `type:"list"`

	// Token for the next set of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (ListAssociationsForLicenseConfigurationOutput) GoString

GoString returns the string representation

func (*ListAssociationsForLicenseConfigurationOutput) SetLicenseConfigurationAssociations

SetLicenseConfigurationAssociations sets the LicenseConfigurationAssociations field's value.

func (*ListAssociationsForLicenseConfigurationOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListAssociationsForLicenseConfigurationOutput) String

String returns the string representation

type ListLicenseConfigurationsInput

type ListLicenseConfigurationsInput struct {

	// One or more filters.
	Filters []*Filter `type:"list"`

	// An array of ARNs for the calling account’s license configurations.
	LicenseConfigurationArns []*string `type:"list"`

	// Maximum number of results to return in a single call. To retrieve the remaining
	// results, make another call with the returned NextToken value.
	MaxResults *int64 `type:"integer"`

	// Token for the next set of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (ListLicenseConfigurationsInput) GoString

GoString returns the string representation

func (*ListLicenseConfigurationsInput) SetFilters

SetFilters sets the Filters field's value.

func (*ListLicenseConfigurationsInput) SetLicenseConfigurationArns

func (s *ListLicenseConfigurationsInput) SetLicenseConfigurationArns(v []*string) *ListLicenseConfigurationsInput

SetLicenseConfigurationArns sets the LicenseConfigurationArns field's value.

func (*ListLicenseConfigurationsInput) SetMaxResults

SetMaxResults sets the MaxResults field's value.

func (*ListLicenseConfigurationsInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListLicenseConfigurationsInput) String

String returns the string representation

type ListLicenseConfigurationsOutput

type ListLicenseConfigurationsOutput struct {

	// Array of license configuration objects.
	LicenseConfigurations []*LicenseConfiguration `type:"list"`

	// Token for the next set of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (ListLicenseConfigurationsOutput) GoString

GoString returns the string representation

func (*ListLicenseConfigurationsOutput) SetLicenseConfigurations

SetLicenseConfigurations sets the LicenseConfigurations field's value.

func (*ListLicenseConfigurationsOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListLicenseConfigurationsOutput) String

String returns the string representation

type ListLicenseSpecificationsForResourceInput

type ListLicenseSpecificationsForResourceInput struct {

	// Maximum number of results to return in a single call. To retrieve the remaining
	// results, make another call with the returned NextToken value.
	MaxResults *int64 `type:"integer"`

	// Token for the next set of results.
	NextToken *string `type:"string"`

	// ARN of an AMI or Amazon EC2 instance that has an associated license configuration.
	//
	// ResourceArn is a required field
	ResourceArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ListLicenseSpecificationsForResourceInput) GoString

GoString returns the string representation

func (*ListLicenseSpecificationsForResourceInput) SetMaxResults

SetMaxResults sets the MaxResults field's value.

func (*ListLicenseSpecificationsForResourceInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*ListLicenseSpecificationsForResourceInput) SetResourceArn

SetResourceArn sets the ResourceArn field's value.

func (ListLicenseSpecificationsForResourceInput) String

String returns the string representation

func (*ListLicenseSpecificationsForResourceInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type ListLicenseSpecificationsForResourceOutput

type ListLicenseSpecificationsForResourceOutput struct {

	// License configurations associated with a resource.
	LicenseSpecifications []*LicenseSpecification `type:"list"`

	// Token for the next set of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (ListLicenseSpecificationsForResourceOutput) GoString

GoString returns the string representation

func (*ListLicenseSpecificationsForResourceOutput) SetLicenseSpecifications

SetLicenseSpecifications sets the LicenseSpecifications field's value.

func (*ListLicenseSpecificationsForResourceOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListLicenseSpecificationsForResourceOutput) String

String returns the string representation

type ListResourceInventoryInput

type ListResourceInventoryInput struct {

	// One or more filters.
	Filters []*InventoryFilter `type:"list"`

	// Maximum number of results to return in a single call. To retrieve the remaining
	// results, make another call with the returned NextToken value.
	MaxResults *int64 `type:"integer"`

	// Token for the next set of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (ListResourceInventoryInput) GoString

func (s ListResourceInventoryInput) GoString() string

GoString returns the string representation

func (*ListResourceInventoryInput) SetFilters

SetFilters sets the Filters field's value.

func (*ListResourceInventoryInput) SetMaxResults

SetMaxResults sets the MaxResults field's value.

func (*ListResourceInventoryInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListResourceInventoryInput) String

String returns the string representation

func (*ListResourceInventoryInput) Validate

func (s *ListResourceInventoryInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListResourceInventoryOutput

type ListResourceInventoryOutput struct {

	// Token for the next set of results.
	NextToken *string `type:"string"`

	// The detailed list of resources.
	ResourceInventoryList []*ResourceInventory `type:"list"`
	// contains filtered or unexported fields
}

func (ListResourceInventoryOutput) GoString

func (s ListResourceInventoryOutput) GoString() string

GoString returns the string representation

func (*ListResourceInventoryOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*ListResourceInventoryOutput) SetResourceInventoryList

SetResourceInventoryList sets the ResourceInventoryList field's value.

func (ListResourceInventoryOutput) String

String returns the string representation

type ListTagsForResourceInput

type ListTagsForResourceInput struct {

	// ARN for the resource.
	//
	// ResourceArn is a required field
	ResourceArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ListTagsForResourceInput) GoString

func (s ListTagsForResourceInput) GoString() string

GoString returns the string representation

func (*ListTagsForResourceInput) SetResourceArn

SetResourceArn sets the ResourceArn field's value.

func (ListTagsForResourceInput) String

func (s ListTagsForResourceInput) String() string

String returns the string representation

func (*ListTagsForResourceInput) Validate

func (s *ListTagsForResourceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListTagsForResourceOutput

type ListTagsForResourceOutput struct {

	// List of tags attached to the resource.
	Tags []*Tag `type:"list"`
	// contains filtered or unexported fields
}

func (ListTagsForResourceOutput) GoString

func (s ListTagsForResourceOutput) GoString() string

GoString returns the string representation

func (*ListTagsForResourceOutput) SetTags

SetTags sets the Tags field's value.

func (ListTagsForResourceOutput) String

func (s ListTagsForResourceOutput) String() string

String returns the string representation

type ListUsageForLicenseConfigurationInput

type ListUsageForLicenseConfigurationInput struct {

	// List of filters to apply.
	Filters []*Filter `type:"list"`

	// ARN of the targeted LicenseConfiguration object.
	//
	// LicenseConfigurationArn is a required field
	LicenseConfigurationArn *string `type:"string" required:"true"`

	// Maximum number of results to return in a single call. To retrieve the remaining
	// results, make another call with the returned NextToken value.
	MaxResults *int64 `type:"integer"`

	// Token for the next set of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (ListUsageForLicenseConfigurationInput) GoString

GoString returns the string representation

func (*ListUsageForLicenseConfigurationInput) SetFilters

SetFilters sets the Filters field's value.

func (*ListUsageForLicenseConfigurationInput) SetLicenseConfigurationArn

SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value.

func (*ListUsageForLicenseConfigurationInput) SetMaxResults

SetMaxResults sets the MaxResults field's value.

func (*ListUsageForLicenseConfigurationInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListUsageForLicenseConfigurationInput) String

String returns the string representation

func (*ListUsageForLicenseConfigurationInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type ListUsageForLicenseConfigurationOutput

type ListUsageForLicenseConfigurationOutput struct {

	// An array of LicenseConfigurationUsage objects.
	LicenseConfigurationUsageList []*LicenseConfigurationUsage `type:"list"`

	// Token for the next set of results.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

func (ListUsageForLicenseConfigurationOutput) GoString

GoString returns the string representation

func (*ListUsageForLicenseConfigurationOutput) SetLicenseConfigurationUsageList

SetLicenseConfigurationUsageList sets the LicenseConfigurationUsageList field's value.

func (*ListUsageForLicenseConfigurationOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListUsageForLicenseConfigurationOutput) String

String returns the string representation

type ManagedResourceSummary

type ManagedResourceSummary struct {

	// Number of resources associated with licenses.
	AssociationCount *int64 `type:"long"`

	// Type of resource associated with a license (instance, host, or AMI).
	ResourceType *string `type:"string" enum:"ResourceType"`
	// contains filtered or unexported fields
}

Summary for a resource.

func (ManagedResourceSummary) GoString

func (s ManagedResourceSummary) GoString() string

GoString returns the string representation

func (*ManagedResourceSummary) SetAssociationCount

func (s *ManagedResourceSummary) SetAssociationCount(v int64) *ManagedResourceSummary

SetAssociationCount sets the AssociationCount field's value.

func (*ManagedResourceSummary) SetResourceType

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

SetResourceType sets the ResourceType field's value.

func (ManagedResourceSummary) String

func (s ManagedResourceSummary) String() string

String returns the string representation

type OrganizationConfiguration

type OrganizationConfiguration struct {

	// Flag to activate AWS Organization integration.
	//
	// EnableIntegration is a required field
	EnableIntegration *bool `type:"boolean" required:"true"`
	// contains filtered or unexported fields
}

Object containing configuration information for AWS Organizations.

func (OrganizationConfiguration) GoString

func (s OrganizationConfiguration) GoString() string

GoString returns the string representation

func (*OrganizationConfiguration) SetEnableIntegration

func (s *OrganizationConfiguration) SetEnableIntegration(v bool) *OrganizationConfiguration

SetEnableIntegration sets the EnableIntegration field's value.

func (OrganizationConfiguration) String

func (s OrganizationConfiguration) String() string

String returns the string representation

func (*OrganizationConfiguration) Validate

func (s *OrganizationConfiguration) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ResourceInventory

type ResourceInventory struct {

	// The platform of the resource.
	Platform *string `type:"string"`

	// Platform version of the resource in the inventory.
	PlatformVersion *string `type:"string"`

	// The ARN of the resource.
	ResourceArn *string `type:"string"`

	// Unique ID of the resource.
	ResourceId *string `type:"string"`

	// Unique ID of the account that owns the resource.
	ResourceOwningAccountId *string `type:"string"`

	// The type of resource.
	ResourceType *string `type:"string" enum:"ResourceType"`
	// contains filtered or unexported fields
}

A set of attributes that describe a resource.

func (ResourceInventory) GoString

func (s ResourceInventory) GoString() string

GoString returns the string representation

func (*ResourceInventory) SetPlatform

func (s *ResourceInventory) SetPlatform(v string) *ResourceInventory

SetPlatform sets the Platform field's value.

func (*ResourceInventory) SetPlatformVersion

func (s *ResourceInventory) SetPlatformVersion(v string) *ResourceInventory

SetPlatformVersion sets the PlatformVersion field's value.

func (*ResourceInventory) SetResourceArn

func (s *ResourceInventory) SetResourceArn(v string) *ResourceInventory

SetResourceArn sets the ResourceArn field's value.

func (*ResourceInventory) SetResourceId

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

SetResourceId sets the ResourceId field's value.

func (*ResourceInventory) SetResourceOwningAccountId

func (s *ResourceInventory) SetResourceOwningAccountId(v string) *ResourceInventory

SetResourceOwningAccountId sets the ResourceOwningAccountId field's value.

func (*ResourceInventory) SetResourceType

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

SetResourceType sets the ResourceType field's value.

func (ResourceInventory) String

func (s ResourceInventory) String() string

String returns the string representation

type Tag

type Tag struct {

	// Key for the resource tag.
	Key *string `type:"string"`

	// Value for the resource tag.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

Tag for a resource in a key-value format.

func (Tag) GoString

func (s Tag) GoString() string

GoString returns the string representation

func (*Tag) SetKey

func (s *Tag) SetKey(v string) *Tag

SetKey sets the Key field's value.

func (*Tag) SetValue

func (s *Tag) SetValue(v string) *Tag

SetValue sets the Value field's value.

func (Tag) String

func (s Tag) String() string

String returns the string representation

type TagResourceInput

type TagResourceInput struct {

	// Resource of the ARN to be tagged.
	//
	// ResourceArn is a required field
	ResourceArn *string `type:"string" required:"true"`

	// Names of the tags to attach to the resource.
	//
	// Tags is a required field
	Tags []*Tag `type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (TagResourceInput) GoString

func (s TagResourceInput) GoString() string

GoString returns the string representation

func (*TagResourceInput) SetResourceArn

func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput

SetResourceArn sets the ResourceArn field's value.

func (*TagResourceInput) SetTags

func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput

SetTags sets the Tags field's value.

func (TagResourceInput) String

func (s TagResourceInput) String() string

String returns the string representation

func (*TagResourceInput) Validate

func (s *TagResourceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type TagResourceOutput

type TagResourceOutput struct {
	// contains filtered or unexported fields
}

func (TagResourceOutput) GoString

func (s TagResourceOutput) GoString() string

GoString returns the string representation

func (TagResourceOutput) String

func (s TagResourceOutput) String() string

String returns the string representation

type UntagResourceInput

type UntagResourceInput struct {

	// ARN of the resource.
	//
	// ResourceArn is a required field
	ResourceArn *string `type:"string" required:"true"`

	// List keys identifying tags to remove.
	//
	// TagKeys is a required field
	TagKeys []*string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (UntagResourceInput) GoString

func (s UntagResourceInput) GoString() string

GoString returns the string representation

func (*UntagResourceInput) SetResourceArn

func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput

SetResourceArn sets the ResourceArn field's value.

func (*UntagResourceInput) SetTagKeys

func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput

SetTagKeys sets the TagKeys field's value.

func (UntagResourceInput) String

func (s UntagResourceInput) String() string

String returns the string representation

func (*UntagResourceInput) Validate

func (s *UntagResourceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UntagResourceOutput

type UntagResourceOutput struct {
	// contains filtered or unexported fields
}

func (UntagResourceOutput) GoString

func (s UntagResourceOutput) GoString() string

GoString returns the string representation

func (UntagResourceOutput) String

func (s UntagResourceOutput) String() string

String returns the string representation

type UpdateLicenseConfigurationInput

type UpdateLicenseConfigurationInput struct {

	// New human-friendly description of the license configuration.
	Description *string `type:"string"`

	// ARN for a license configuration.
	//
	// LicenseConfigurationArn is a required field
	LicenseConfigurationArn *string `type:"string" required:"true"`

	// New status of the license configuration (ACTIVE or INACTIVE).
	LicenseConfigurationStatus *string `type:"string" enum:"LicenseConfigurationStatus"`

	// New number of licenses managed by the license configuration.
	LicenseCount *int64 `type:"long"`

	// Sets the number of available licenses as a hard limit.
	LicenseCountHardLimit *bool `type:"boolean"`

	// List of flexible text strings designating license rules.
	LicenseRules []*string `type:"list"`

	// New name of the license configuration.
	Name *string `type:"string"`
	// contains filtered or unexported fields
}

func (UpdateLicenseConfigurationInput) GoString

GoString returns the string representation

func (*UpdateLicenseConfigurationInput) SetDescription

SetDescription sets the Description field's value.

func (*UpdateLicenseConfigurationInput) SetLicenseConfigurationArn

SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value.

func (*UpdateLicenseConfigurationInput) SetLicenseConfigurationStatus

func (s *UpdateLicenseConfigurationInput) SetLicenseConfigurationStatus(v string) *UpdateLicenseConfigurationInput

SetLicenseConfigurationStatus sets the LicenseConfigurationStatus field's value.

func (*UpdateLicenseConfigurationInput) SetLicenseCount

SetLicenseCount sets the LicenseCount field's value.

func (*UpdateLicenseConfigurationInput) SetLicenseCountHardLimit

SetLicenseCountHardLimit sets the LicenseCountHardLimit field's value.

func (*UpdateLicenseConfigurationInput) SetLicenseRules

SetLicenseRules sets the LicenseRules field's value.

func (*UpdateLicenseConfigurationInput) SetName

SetName sets the Name field's value.

func (UpdateLicenseConfigurationInput) String

String returns the string representation

func (*UpdateLicenseConfigurationInput) Validate

func (s *UpdateLicenseConfigurationInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateLicenseConfigurationOutput

type UpdateLicenseConfigurationOutput struct {
	// contains filtered or unexported fields
}

func (UpdateLicenseConfigurationOutput) GoString

GoString returns the string representation

func (UpdateLicenseConfigurationOutput) String

String returns the string representation

type UpdateLicenseSpecificationsForResourceInput

type UpdateLicenseSpecificationsForResourceInput struct {

	// License configuration ARNs to be added to a resource.
	AddLicenseSpecifications []*LicenseSpecification `type:"list"`

	// License configuration ARNs to be removed from a resource.
	RemoveLicenseSpecifications []*LicenseSpecification `type:"list"`

	// ARN for an AWS server resource.
	//
	// ResourceArn is a required field
	ResourceArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (UpdateLicenseSpecificationsForResourceInput) GoString

GoString returns the string representation

func (*UpdateLicenseSpecificationsForResourceInput) SetAddLicenseSpecifications

SetAddLicenseSpecifications sets the AddLicenseSpecifications field's value.

func (*UpdateLicenseSpecificationsForResourceInput) SetRemoveLicenseSpecifications

SetRemoveLicenseSpecifications sets the RemoveLicenseSpecifications field's value.

func (*UpdateLicenseSpecificationsForResourceInput) SetResourceArn

SetResourceArn sets the ResourceArn field's value.

func (UpdateLicenseSpecificationsForResourceInput) String

String returns the string representation

func (*UpdateLicenseSpecificationsForResourceInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type UpdateLicenseSpecificationsForResourceOutput

type UpdateLicenseSpecificationsForResourceOutput struct {
	// contains filtered or unexported fields
}

func (UpdateLicenseSpecificationsForResourceOutput) GoString

GoString returns the string representation

func (UpdateLicenseSpecificationsForResourceOutput) String

String returns the string representation

type UpdateServiceSettingsInput

type UpdateServiceSettingsInput struct {

	// Activates cross-account discovery.
	EnableCrossAccountsDiscovery *bool `type:"boolean"`

	// Integrates AWS Organizations with License Manager for cross-account discovery.
	OrganizationConfiguration *OrganizationConfiguration `type:"structure"`

	// ARN of the Amazon S3 bucket where License Manager information is stored.
	S3BucketArn *string `type:"string"`

	// ARN of the Amazon SNS topic used for License Manager alerts.
	SnsTopicArn *string `type:"string"`
	// contains filtered or unexported fields
}

func (UpdateServiceSettingsInput) GoString

func (s UpdateServiceSettingsInput) GoString() string

GoString returns the string representation

func (*UpdateServiceSettingsInput) SetEnableCrossAccountsDiscovery

func (s *UpdateServiceSettingsInput) SetEnableCrossAccountsDiscovery(v bool) *UpdateServiceSettingsInput

SetEnableCrossAccountsDiscovery sets the EnableCrossAccountsDiscovery field's value.

func (*UpdateServiceSettingsInput) SetOrganizationConfiguration

SetOrganizationConfiguration sets the OrganizationConfiguration field's value.

func (*UpdateServiceSettingsInput) SetS3BucketArn

SetS3BucketArn sets the S3BucketArn field's value.

func (*UpdateServiceSettingsInput) SetSnsTopicArn

SetSnsTopicArn sets the SnsTopicArn field's value.

func (UpdateServiceSettingsInput) String

String returns the string representation

func (*UpdateServiceSettingsInput) Validate

func (s *UpdateServiceSettingsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateServiceSettingsOutput

type UpdateServiceSettingsOutput struct {
	// contains filtered or unexported fields
}

func (UpdateServiceSettingsOutput) GoString

func (s UpdateServiceSettingsOutput) GoString() string

GoString returns the string representation

func (UpdateServiceSettingsOutput) String

String returns the string representation

Directories

Path Synopsis
Package licensemanageriface provides an interface to enable mocking the AWS License Manager service client for testing your code.
Package licensemanageriface provides an interface to enable mocking the AWS License Manager service client for testing your code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL