licensemanager

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 Imports: 8 Imported by: 7

Documentation

Overview

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

AWS License Manager makes it easier to manage licenses from software vendors across multiple AWS accounts and on-premises servers.

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 use 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 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 (
	ServiceName = "AWS License Manager" // Service's name
	ServiceID   = "LicenseManager"      // Service's identifier
	EndpointsID = "license-manager"     // Service's Endpoint identifier
)
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"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AutomatedDiscoveryInformation added in v0.18.0

type AutomatedDiscoveryInformation struct {

	// Time that automated discovery last ran.
	LastRunTime *time.Time `type:"timestamp"`
	// contains filtered or unexported fields
}

Describes automated discovery.

func (AutomatedDiscoveryInformation) String added in v0.18.0

String returns the string representation

type Client added in v0.9.0

type Client struct {
	*aws.Client
}

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

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

func New

func New(config aws.Config) *Client

New creates a new instance of the client from the provided Config.

Example:

// Create a client from just a config.
svc := licensemanager.New(myConfig)

func (*Client) CreateLicenseConfigurationRequest added in v0.9.0

func (c *Client) CreateLicenseConfigurationRequest(input *CreateLicenseConfigurationInput) CreateLicenseConfigurationRequest

CreateLicenseConfigurationRequest returns a request value for making API operation for AWS License Manager.

Creates a license configuration.

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), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated Host, or all of these), host affinity (how long a VM must be associated with a host), and the number of licenses purchased and used.

// Example sending a request using CreateLicenseConfigurationRequest.
req := client.CreateLicenseConfigurationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) DeleteLicenseConfigurationRequest added in v0.9.0

func (c *Client) DeleteLicenseConfigurationRequest(input *DeleteLicenseConfigurationInput) DeleteLicenseConfigurationRequest

DeleteLicenseConfigurationRequest returns a request value for making API operation for AWS License Manager.

Deletes the specified license configuration.

You cannot delete a license configuration that is in use.

// Example sending a request using DeleteLicenseConfigurationRequest.
req := client.DeleteLicenseConfigurationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) GetLicenseConfigurationRequest added in v0.9.0

func (c *Client) GetLicenseConfigurationRequest(input *GetLicenseConfigurationInput) GetLicenseConfigurationRequest

GetLicenseConfigurationRequest returns a request value for making API operation for AWS License Manager.

Gets detailed information about the specified license configuration.

// Example sending a request using GetLicenseConfigurationRequest.
req := client.GetLicenseConfigurationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) GetServiceSettingsRequest added in v0.9.0

func (c *Client) GetServiceSettingsRequest(input *GetServiceSettingsInput) GetServiceSettingsRequest

GetServiceSettingsRequest returns a request value for making API operation for AWS License Manager.

Gets the License Manager settings for the current Region.

// Example sending a request using GetServiceSettingsRequest.
req := client.GetServiceSettingsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) ListAssociationsForLicenseConfigurationRequest added in v0.9.0

func (c *Client) ListAssociationsForLicenseConfigurationRequest(input *ListAssociationsForLicenseConfigurationInput) ListAssociationsForLicenseConfigurationRequest

ListAssociationsForLicenseConfigurationRequest returns a request value for making API operation for AWS License Manager.

Lists the resource associations for the specified license configuration.

Resource associations need not consume licenses from a license configuration. For example, an AMI or a stopped instance might not consume a license (depending on the license rules).

// Example sending a request using ListAssociationsForLicenseConfigurationRequest.
req := client.ListAssociationsForLicenseConfigurationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) ListFailuresForLicenseConfigurationOperationsRequest added in v0.18.0

func (c *Client) ListFailuresForLicenseConfigurationOperationsRequest(input *ListFailuresForLicenseConfigurationOperationsInput) ListFailuresForLicenseConfigurationOperationsRequest

ListFailuresForLicenseConfigurationOperationsRequest returns a request value for making API operation for AWS License Manager.

Lists the license configuration operations that failed.

// Example sending a request using ListFailuresForLicenseConfigurationOperationsRequest.
req := client.ListFailuresForLicenseConfigurationOperationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListFailuresForLicenseConfigurationOperations

func (*Client) ListLicenseConfigurationsRequest added in v0.9.0

func (c *Client) ListLicenseConfigurationsRequest(input *ListLicenseConfigurationsInput) ListLicenseConfigurationsRequest

ListLicenseConfigurationsRequest returns a request value for making API operation for AWS License Manager.

Lists the license configurations for your account.

// Example sending a request using ListLicenseConfigurationsRequest.
req := client.ListLicenseConfigurationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) ListLicenseSpecificationsForResourceRequest added in v0.9.0

func (c *Client) ListLicenseSpecificationsForResourceRequest(input *ListLicenseSpecificationsForResourceInput) ListLicenseSpecificationsForResourceRequest

ListLicenseSpecificationsForResourceRequest returns a request value for making API operation for AWS License Manager.

Describes the license configurations for the specified resource.

// Example sending a request using ListLicenseSpecificationsForResourceRequest.
req := client.ListLicenseSpecificationsForResourceRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) ListResourceInventoryRequest added in v0.9.0

func (c *Client) ListResourceInventoryRequest(input *ListResourceInventoryInput) ListResourceInventoryRequest

ListResourceInventoryRequest returns a request value for making API operation for AWS License Manager.

Lists resources managed using Systems Manager inventory.

// Example sending a request using ListResourceInventoryRequest.
req := client.ListResourceInventoryRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) ListTagsForResourceRequest added in v0.9.0

func (c *Client) ListTagsForResourceRequest(input *ListTagsForResourceInput) ListTagsForResourceRequest

ListTagsForResourceRequest returns a request value for making API operation for AWS License Manager.

Lists the tags for the specified license configuration.

// Example sending a request using ListTagsForResourceRequest.
req := client.ListTagsForResourceRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) ListUsageForLicenseConfigurationRequest added in v0.9.0

func (c *Client) ListUsageForLicenseConfigurationRequest(input *ListUsageForLicenseConfigurationInput) ListUsageForLicenseConfigurationRequest

ListUsageForLicenseConfigurationRequest returns a request value for making 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.

// Example sending a request using ListUsageForLicenseConfigurationRequest.
req := client.ListUsageForLicenseConfigurationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) TagResourceRequest added in v0.9.0

func (c *Client) TagResourceRequest(input *TagResourceInput) TagResourceRequest

TagResourceRequest returns a request value for making API operation for AWS License Manager.

Adds the specified tags to the specified license configuration.

// Example sending a request using TagResourceRequest.
req := client.TagResourceRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) UntagResourceRequest added in v0.9.0

func (c *Client) UntagResourceRequest(input *UntagResourceInput) UntagResourceRequest

UntagResourceRequest returns a request value for making API operation for AWS License Manager.

Removes the specified tags from the specified license configuration.

// Example sending a request using UntagResourceRequest.
req := client.UntagResourceRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) UpdateLicenseConfigurationRequest added in v0.9.0

func (c *Client) UpdateLicenseConfigurationRequest(input *UpdateLicenseConfigurationInput) UpdateLicenseConfigurationRequest

UpdateLicenseConfigurationRequest returns a request value for making API operation for AWS License Manager.

Modifies the attributes of an existing license configuration.

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), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated Host, or all of these), host affinity (how long a VM must be associated with a host), and the number of licenses purchased and used.

// Example sending a request using UpdateLicenseConfigurationRequest.
req := client.UpdateLicenseConfigurationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) UpdateLicenseSpecificationsForResourceRequest added in v0.9.0

func (c *Client) UpdateLicenseSpecificationsForResourceRequest(input *UpdateLicenseSpecificationsForResourceInput) UpdateLicenseSpecificationsForResourceRequest

UpdateLicenseSpecificationsForResourceRequest returns a request value for making API operation for AWS License Manager.

Adds or removes the specified license configurations for the specified AWS resource.

You can update the license specifications of AMIs, instances, and hosts. You cannot update the license specifications for launch templates and AWS CloudFormation templates, as they send license configurations to the operation that creates the resource.

// Example sending a request using UpdateLicenseSpecificationsForResourceRequest.
req := client.UpdateLicenseSpecificationsForResourceRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) UpdateServiceSettingsRequest added in v0.9.0

func (c *Client) UpdateServiceSettingsRequest(input *UpdateServiceSettingsInput) UpdateServiceSettingsRequest

UpdateServiceSettingsRequest returns a request value for making API operation for AWS License Manager.

Updates License Manager settings for the current Region.

// Example sending a request using UpdateServiceSettingsRequest.
req := client.UpdateServiceSettingsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

type ConsumedLicenseSummary

type ConsumedLicenseSummary struct {

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

	// Resource type of the resource consuming a license.
	ResourceType ResourceType `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Details about license consumption.

func (ConsumedLicenseSummary) String

func (s ConsumedLicenseSummary) String() string

String returns the string representation

type CreateLicenseConfigurationInput

type CreateLicenseConfigurationInput struct {

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

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

	// Indicates whether hard or soft license enforcement is used. Exceeding a hard
	// limit blocks the launch of new instances.
	LicenseCountHardLimit *bool `type:"boolean"`

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

	// License rules. The syntax is #name=value (for example, #allowedTenancy=EC2-DedicatedHost).
	// Available rules vary by dimension.
	//
	//    * Cores dimension: allowedTenancy | maximumCores | minimumCores
	//
	//    * Instances dimension: allowedTenancy | maximumCores | minimumCores |
	//    maximumSockets | minimumSockets | maximumVcpus | minimumVcpus
	//
	//    * Sockets dimension: allowedTenancy | maximumSockets | minimumSockets
	//
	//    * vCPUs dimension: allowedTenancy | honorVcpuOptimization | maximumVcpus
	//    | minimumVcpus
	LicenseRules []string `type:"list"`

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

	// Product information.
	ProductInformationList []ProductInformation `type:"list"`

	// Tags to add to the license configuration.
	Tags []Tag `type:"list"`
	// contains filtered or unexported fields
}

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 {

	// Amazon Resource Name (ARN) of the license configuration.
	LicenseConfigurationArn *string `type:"string"`
	// contains filtered or unexported fields
}

func (CreateLicenseConfigurationOutput) String

String returns the string representation

type CreateLicenseConfigurationRequest

type CreateLicenseConfigurationRequest struct {
	*aws.Request
	Input *CreateLicenseConfigurationInput
	Copy  func(*CreateLicenseConfigurationInput) CreateLicenseConfigurationRequest
}

CreateLicenseConfigurationRequest is the request type for the CreateLicenseConfiguration API operation.

func (CreateLicenseConfigurationRequest) Send

Send marshals and sends the CreateLicenseConfiguration API request.

type CreateLicenseConfigurationResponse added in v0.9.0

type CreateLicenseConfigurationResponse struct {
	*CreateLicenseConfigurationOutput
	// contains filtered or unexported fields
}

CreateLicenseConfigurationResponse is the response type for the CreateLicenseConfiguration API operation.

func (*CreateLicenseConfigurationResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateLicenseConfigurationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateLicenseConfiguration request.

type DeleteLicenseConfigurationInput

type DeleteLicenseConfigurationInput struct {

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

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) String

String returns the string representation

type DeleteLicenseConfigurationRequest

type DeleteLicenseConfigurationRequest struct {
	*aws.Request
	Input *DeleteLicenseConfigurationInput
	Copy  func(*DeleteLicenseConfigurationInput) DeleteLicenseConfigurationRequest
}

DeleteLicenseConfigurationRequest is the request type for the DeleteLicenseConfiguration API operation.

func (DeleteLicenseConfigurationRequest) Send

Send marshals and sends the DeleteLicenseConfiguration API request.

type DeleteLicenseConfigurationResponse added in v0.9.0

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

DeleteLicenseConfigurationResponse is the response type for the DeleteLicenseConfiguration API operation.

func (*DeleteLicenseConfigurationResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteLicenseConfigurationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteLicenseConfiguration request.

type Filter

type Filter struct {

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

	// 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 more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.

func (Filter) String

func (s Filter) String() string

String returns the string representation

type GetLicenseConfigurationInput

type GetLicenseConfigurationInput struct {

	// Amazon Resource Name (ARN) of the license configuration.
	//
	// LicenseConfigurationArn is a required field
	LicenseConfigurationArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

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 {

	// Automated discovery information.
	AutomatedDiscoveryInformation *AutomatedDiscoveryInformation `type:"structure"`

	// Summaries of the licenses consumed by resources.
	ConsumedLicenseSummaryList []ConsumedLicenseSummary `type:"list"`

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

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

	// Amazon Resource Name (ARN) of the license configuration.
	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.
	LicenseCountingType LicenseCountingType `type:"string" enum:"true"`

	// License rules.
	LicenseRules []string `type:"list"`

	// Summaries of the managed resources.
	ManagedResourceSummaryList []ManagedResourceSummary `type:"list"`

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

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

	// Product information.
	ProductInformationList []ProductInformation `type:"list"`

	// License configuration status.
	Status *string `type:"string"`

	// Tags for the license configuration.
	Tags []Tag `type:"list"`
	// contains filtered or unexported fields
}

func (GetLicenseConfigurationOutput) String

String returns the string representation

type GetLicenseConfigurationRequest

type GetLicenseConfigurationRequest struct {
	*aws.Request
	Input *GetLicenseConfigurationInput
	Copy  func(*GetLicenseConfigurationInput) GetLicenseConfigurationRequest
}

GetLicenseConfigurationRequest is the request type for the GetLicenseConfiguration API operation.

func (GetLicenseConfigurationRequest) Send

Send marshals and sends the GetLicenseConfiguration API request.

type GetLicenseConfigurationResponse added in v0.9.0

type GetLicenseConfigurationResponse struct {
	*GetLicenseConfigurationOutput
	// contains filtered or unexported fields
}

GetLicenseConfigurationResponse is the response type for the GetLicenseConfiguration API operation.

func (*GetLicenseConfigurationResponse) SDKResponseMetdata added in v0.9.0

func (r *GetLicenseConfigurationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetLicenseConfiguration request.

type GetServiceSettingsInput

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

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"`

	// Amazon Resource Name (ARN) of the AWS resource share. The License Manager
	// master account will provide member accounts with access to this share.
	LicenseManagerResourceShareArn *string `type:"string"`

	// 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, and so on.
	S3BucketArn *string `type:"string"`

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

func (GetServiceSettingsOutput) String

func (s GetServiceSettingsOutput) String() string

String returns the string representation

type GetServiceSettingsRequest

type GetServiceSettingsRequest struct {
	*aws.Request
	Input *GetServiceSettingsInput
	Copy  func(*GetServiceSettingsInput) GetServiceSettingsRequest
}

GetServiceSettingsRequest is the request type for the GetServiceSettings API operation.

func (GetServiceSettingsRequest) Send

Send marshals and sends the GetServiceSettings API request.

type GetServiceSettingsResponse added in v0.9.0

type GetServiceSettingsResponse struct {
	*GetServiceSettingsOutput
	// contains filtered or unexported fields
}

GetServiceSettingsResponse is the response type for the GetServiceSettings API operation.

func (*GetServiceSettingsResponse) SDKResponseMetdata added in v0.9.0

func (r *GetServiceSettingsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetServiceSettings request.

type InventoryFilter

type InventoryFilter struct {

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

	// 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.

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 InventoryFilterCondition

type InventoryFilterCondition string
const (
	InventoryFilterConditionEquals     InventoryFilterCondition = "EQUALS"
	InventoryFilterConditionNotEquals  InventoryFilterCondition = "NOT_EQUALS"
	InventoryFilterConditionBeginsWith InventoryFilterCondition = "BEGINS_WITH"
	InventoryFilterConditionContains   InventoryFilterCondition = "CONTAINS"
)

Enum values for InventoryFilterCondition

func (InventoryFilterCondition) MarshalValue

func (enum InventoryFilterCondition) MarshalValue() (string, error)

func (InventoryFilterCondition) MarshalValueBuf

func (enum InventoryFilterCondition) MarshalValueBuf(b []byte) ([]byte, error)

type LicenseConfiguration

type LicenseConfiguration struct {

	// Automated discovery information.
	AutomatedDiscoveryInformation *AutomatedDiscoveryInformation `type:"structure"`

	// 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"`

	// Amazon Resource Name (ARN) of the license configuration.
	LicenseConfigurationArn *string `type:"string"`

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

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

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

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

	// License rules.
	LicenseRules []string `type:"list"`

	// 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"`

	// Product information.
	ProductInformationList []ProductInformation `type:"list"`

	// 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), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated Host, or all of these), host affinity (how long a VM must be associated with a host), and the number of licenses purchased and used.

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"`

	// Amazon Resource Name (ARN) of the resource.
	ResourceArn *string `type:"string"`

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

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

Describes an association with a license configuration.

func (LicenseConfigurationAssociation) String

String returns the string representation

type LicenseConfigurationStatus

type LicenseConfigurationStatus string
const (
	LicenseConfigurationStatusAvailable LicenseConfigurationStatus = "AVAILABLE"
	LicenseConfigurationStatusDisabled  LicenseConfigurationStatus = "DISABLED"
)

Enum values for LicenseConfigurationStatus

func (LicenseConfigurationStatus) MarshalValue

func (enum LicenseConfigurationStatus) MarshalValue() (string, error)

func (LicenseConfigurationStatus) MarshalValueBuf

func (enum LicenseConfigurationStatus) MarshalValueBuf(b []byte) ([]byte, error)

type LicenseConfigurationUsage

type LicenseConfigurationUsage struct {

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

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

	// Amazon Resource Name (ARN) of the resource.
	ResourceArn *string `type:"string"`

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

	// Status of the resource.
	ResourceStatus *string `type:"string"`

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

Details about the usage of a resource associated with a license configuration.

func (LicenseConfigurationUsage) String

func (s LicenseConfigurationUsage) String() string

String returns the string representation

type LicenseCountingType

type LicenseCountingType string
const (
	LicenseCountingTypeVCpu     LicenseCountingType = "vCPU"
	LicenseCountingTypeInstance LicenseCountingType = "Instance"
	LicenseCountingTypeCore     LicenseCountingType = "Core"
	LicenseCountingTypeSocket   LicenseCountingType = "Socket"
)

Enum values for LicenseCountingType

func (LicenseCountingType) MarshalValue

func (enum LicenseCountingType) MarshalValue() (string, error)

func (LicenseCountingType) MarshalValueBuf

func (enum LicenseCountingType) MarshalValueBuf(b []byte) ([]byte, error)

type LicenseOperationFailure added in v0.18.0

type LicenseOperationFailure struct {

	// Error message.
	ErrorMessage *string `type:"string"`

	// Failure time.
	FailureTime *time.Time `type:"timestamp"`

	// Reserved.
	MetadataList []Metadata `type:"list"`

	// Name of the operation.
	OperationName *string `type:"string"`

	// The requester is "License Manager Automated Discovery".
	OperationRequestedBy *string `type:"string"`

	// Amazon Resource Name (ARN) of the resource.
	ResourceArn *string `type:"string"`

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

	// Resource type.
	ResourceType ResourceType `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Describes the failure of a license operation.

func (LicenseOperationFailure) String added in v0.18.0

func (s LicenseOperationFailure) String() string

String returns the string representation

type LicenseSpecification

type LicenseSpecification struct {

	// Amazon Resource Name (ARN) of the license configuration.
	//
	// LicenseConfigurationArn is a required field
	LicenseConfigurationArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Details for associating a license configuration with a resource.

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 {

	// Amazon Resource Name (ARN) of a license configuration.
	//
	// LicenseConfigurationArn is a required field
	LicenseConfigurationArn *string `type:"string" required:"true"`

	// Maximum number of results to return in a single call.
	MaxResults *int64 `type:"integer"`

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

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 {

	// Information about the associations for the license configuration.
	LicenseConfigurationAssociations []LicenseConfigurationAssociation `type:"list"`

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

func (ListAssociationsForLicenseConfigurationOutput) String

String returns the string representation

type ListAssociationsForLicenseConfigurationRequest

ListAssociationsForLicenseConfigurationRequest is the request type for the ListAssociationsForLicenseConfiguration API operation.

func (ListAssociationsForLicenseConfigurationRequest) Send

Send marshals and sends the ListAssociationsForLicenseConfiguration API request.

type ListAssociationsForLicenseConfigurationResponse added in v0.9.0

type ListAssociationsForLicenseConfigurationResponse struct {
	*ListAssociationsForLicenseConfigurationOutput
	// contains filtered or unexported fields
}

ListAssociationsForLicenseConfigurationResponse is the response type for the ListAssociationsForLicenseConfiguration API operation.

func (*ListAssociationsForLicenseConfigurationResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the ListAssociationsForLicenseConfiguration request.

type ListFailuresForLicenseConfigurationOperationsInput added in v0.18.0

type ListFailuresForLicenseConfigurationOperationsInput struct {

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

	// Maximum number of results to return in a single call.
	MaxResults *int64 `type:"integer"`

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

func (ListFailuresForLicenseConfigurationOperationsInput) String added in v0.18.0

String returns the string representation

func (*ListFailuresForLicenseConfigurationOperationsInput) Validate added in v0.18.0

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

type ListFailuresForLicenseConfigurationOperationsOutput added in v0.18.0

type ListFailuresForLicenseConfigurationOperationsOutput struct {

	// License configuration operations that failed.
	LicenseOperationFailureList []LicenseOperationFailure `type:"list"`

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

func (ListFailuresForLicenseConfigurationOperationsOutput) String added in v0.18.0

String returns the string representation

type ListFailuresForLicenseConfigurationOperationsRequest added in v0.18.0

ListFailuresForLicenseConfigurationOperationsRequest is the request type for the ListFailuresForLicenseConfigurationOperations API operation.

func (ListFailuresForLicenseConfigurationOperationsRequest) Send added in v0.18.0

Send marshals and sends the ListFailuresForLicenseConfigurationOperations API request.

type ListFailuresForLicenseConfigurationOperationsResponse added in v0.18.0

type ListFailuresForLicenseConfigurationOperationsResponse struct {
	*ListFailuresForLicenseConfigurationOperationsOutput
	// contains filtered or unexported fields
}

ListFailuresForLicenseConfigurationOperationsResponse is the response type for the ListFailuresForLicenseConfigurationOperations API operation.

func (*ListFailuresForLicenseConfigurationOperationsResponse) SDKResponseMetdata added in v0.18.0

SDKResponseMetdata returns the response metadata for the ListFailuresForLicenseConfigurationOperations request.

type ListLicenseConfigurationsInput

type ListLicenseConfigurationsInput struct {

	// Filters to scope the results. The following filters and logical operators
	// are supported:
	//
	//    * licenseCountingType - The dimension on which licenses are counted (vCPU).
	//    Logical operators are EQUALS | NOT_EQUALS.
	//
	//    * enforceLicenseCount - A Boolean value that indicates whether hard license
	//    enforcement is used. Logical operators are EQUALS | NOT_EQUALS.
	//
	//    * usagelimitExceeded - A Boolean value that indicates whether the available
	//    licenses have been exceeded. Logical operators are EQUALS | NOT_EQUALS.
	Filters []Filter `type:"list"`

	// Amazon Resource Names (ARN) of the license configurations.
	LicenseConfigurationArns []string `type:"list"`

	// Maximum number of results to return in a single call.
	MaxResults *int64 `type:"integer"`

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

func (ListLicenseConfigurationsInput) String

String returns the string representation

type ListLicenseConfigurationsOutput

type ListLicenseConfigurationsOutput struct {

	// Information about the license configurations.
	LicenseConfigurations []LicenseConfiguration `type:"list"`

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

func (ListLicenseConfigurationsOutput) String

String returns the string representation

type ListLicenseConfigurationsRequest

type ListLicenseConfigurationsRequest struct {
	*aws.Request
	Input *ListLicenseConfigurationsInput
	Copy  func(*ListLicenseConfigurationsInput) ListLicenseConfigurationsRequest
}

ListLicenseConfigurationsRequest is the request type for the ListLicenseConfigurations API operation.

func (ListLicenseConfigurationsRequest) Send

Send marshals and sends the ListLicenseConfigurations API request.

type ListLicenseConfigurationsResponse added in v0.9.0

type ListLicenseConfigurationsResponse struct {
	*ListLicenseConfigurationsOutput
	// contains filtered or unexported fields
}

ListLicenseConfigurationsResponse is the response type for the ListLicenseConfigurations API operation.

func (*ListLicenseConfigurationsResponse) SDKResponseMetdata added in v0.9.0

func (r *ListLicenseConfigurationsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListLicenseConfigurations request.

type ListLicenseSpecificationsForResourceInput

type ListLicenseSpecificationsForResourceInput struct {

	// Maximum number of results to return in a single call.
	MaxResults *int64 `type:"integer"`

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

	// Amazon Resource Name (ARN) of a resource that has an associated license configuration.
	//
	// ResourceArn is a required field
	ResourceArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

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) String

String returns the string representation

type ListLicenseSpecificationsForResourceRequest

ListLicenseSpecificationsForResourceRequest is the request type for the ListLicenseSpecificationsForResource API operation.

func (ListLicenseSpecificationsForResourceRequest) Send

Send marshals and sends the ListLicenseSpecificationsForResource API request.

type ListLicenseSpecificationsForResourceResponse added in v0.9.0

type ListLicenseSpecificationsForResourceResponse struct {
	*ListLicenseSpecificationsForResourceOutput
	// contains filtered or unexported fields
}

ListLicenseSpecificationsForResourceResponse is the response type for the ListLicenseSpecificationsForResource API operation.

func (*ListLicenseSpecificationsForResourceResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the ListLicenseSpecificationsForResource request.

type ListResourceInventoryInput

type ListResourceInventoryInput struct {

	// Filters to scope the results. The following filters and logical operators
	// are supported:
	//
	//    * account_id - The ID of the AWS account that owns the resource. Logical
	//    operators are EQUALS | NOT_EQUALS.
	//
	//    * application_name - The name of the application. Logical operators are
	//    EQUALS | BEGINS_WITH.
	//
	//    * license_included - The type of license included. Logical operators are
	//    EQUALS | NOT_EQUALS. Possible values are sql-server-enterprise | sql-server-standard
	//    | sql-server-web | windows-server-datacenter.
	//
	//    * platform - The platform of the resource. Logical operators are EQUALS
	//    | BEGINS_WITH.
	//
	//    * resource_id - The ID of the resource. Logical operators are EQUALS |
	//    NOT_EQUALS.
	Filters []InventoryFilter `type:"list"`

	// Maximum number of results to return in a single call.
	MaxResults *int64 `type:"integer"`

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

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"`

	// Information about the resources.
	ResourceInventoryList []ResourceInventory `type:"list"`
	// contains filtered or unexported fields
}

func (ListResourceInventoryOutput) String

String returns the string representation

type ListResourceInventoryRequest

type ListResourceInventoryRequest struct {
	*aws.Request
	Input *ListResourceInventoryInput
	Copy  func(*ListResourceInventoryInput) ListResourceInventoryRequest
}

ListResourceInventoryRequest is the request type for the ListResourceInventory API operation.

func (ListResourceInventoryRequest) Send

Send marshals and sends the ListResourceInventory API request.

type ListResourceInventoryResponse added in v0.9.0

type ListResourceInventoryResponse struct {
	*ListResourceInventoryOutput
	// contains filtered or unexported fields
}

ListResourceInventoryResponse is the response type for the ListResourceInventory API operation.

func (*ListResourceInventoryResponse) SDKResponseMetdata added in v0.9.0

func (r *ListResourceInventoryResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListResourceInventory request.

type ListTagsForResourceInput

type ListTagsForResourceInput struct {

	// Amazon Resource Name (ARN) of the license configuration.
	//
	// ResourceArn is a required field
	ResourceArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

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 {

	// Information about the tags.
	Tags []Tag `type:"list"`
	// contains filtered or unexported fields
}

func (ListTagsForResourceOutput) String

func (s ListTagsForResourceOutput) String() string

String returns the string representation

type ListTagsForResourceRequest

type ListTagsForResourceRequest struct {
	*aws.Request
	Input *ListTagsForResourceInput
	Copy  func(*ListTagsForResourceInput) ListTagsForResourceRequest
}

ListTagsForResourceRequest is the request type for the ListTagsForResource API operation.

func (ListTagsForResourceRequest) Send

Send marshals and sends the ListTagsForResource API request.

type ListTagsForResourceResponse added in v0.9.0

type ListTagsForResourceResponse struct {
	*ListTagsForResourceOutput
	// contains filtered or unexported fields
}

ListTagsForResourceResponse is the response type for the ListTagsForResource API operation.

func (*ListTagsForResourceResponse) SDKResponseMetdata added in v0.9.0

func (r *ListTagsForResourceResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListTagsForResource request.

type ListUsageForLicenseConfigurationInput

type ListUsageForLicenseConfigurationInput struct {

	// Filters to scope the results. The following filters and logical operators
	// are supported:
	//
	//    * resourceArn - The ARN of the license configuration resource. Logical
	//    operators are EQUALS | NOT_EQUALS.
	//
	//    * resourceType - The resource type (EC2_INSTANCE | EC2_HOST | EC2_AMI
	//    | SYSTEMS_MANAGER_MANAGED_INSTANCE). Logical operators are EQUALS | NOT_EQUALS.
	//
	//    * resourceAccount - The ID of the account that owns the resource. Logical
	//    operators are EQUALS | NOT_EQUALS.
	Filters []Filter `type:"list"`

	// Amazon Resource Name (ARN) of the license configuration.
	//
	// LicenseConfigurationArn is a required field
	LicenseConfigurationArn *string `type:"string" required:"true"`

	// Maximum number of results to return in a single call.
	MaxResults *int64 `type:"integer"`

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

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 {

	// Information about the license configurations.
	LicenseConfigurationUsageList []LicenseConfigurationUsage `type:"list"`

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

func (ListUsageForLicenseConfigurationOutput) String

String returns the string representation

type ListUsageForLicenseConfigurationRequest

type ListUsageForLicenseConfigurationRequest struct {
	*aws.Request
	Input *ListUsageForLicenseConfigurationInput
	Copy  func(*ListUsageForLicenseConfigurationInput) ListUsageForLicenseConfigurationRequest
}

ListUsageForLicenseConfigurationRequest is the request type for the ListUsageForLicenseConfiguration API operation.

func (ListUsageForLicenseConfigurationRequest) Send

Send marshals and sends the ListUsageForLicenseConfiguration API request.

type ListUsageForLicenseConfigurationResponse added in v0.9.0

type ListUsageForLicenseConfigurationResponse struct {
	*ListUsageForLicenseConfigurationOutput
	// contains filtered or unexported fields
}

ListUsageForLicenseConfigurationResponse is the response type for the ListUsageForLicenseConfiguration API operation.

func (*ListUsageForLicenseConfigurationResponse) SDKResponseMetdata added in v0.9.0

func (r *ListUsageForLicenseConfigurationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListUsageForLicenseConfiguration request.

type ManagedResourceSummary

type ManagedResourceSummary struct {

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

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

Summary information about a managed resource.

func (ManagedResourceSummary) String

func (s ManagedResourceSummary) String() string

String returns the string representation

type Metadata added in v0.18.0

type Metadata struct {

	// Reserved.
	Name *string `type:"string"`

	// Reserved.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

Reserved.

func (Metadata) String added in v0.18.0

func (s Metadata) String() string

String returns the string representation

type OrganizationConfiguration

type OrganizationConfiguration struct {

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

Configuration information for AWS Organizations.

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 ProductInformation added in v0.18.0

type ProductInformation struct {

	// Product information filters. The following filters and logical operators
	// are supported:
	//
	//    * Application Name - The name of the application. Logical operator is
	//    EQUALS.
	//
	//    * Application Publisher - The publisher of the application. Logical operator
	//    is EQUALS.
	//
	//    * Application Version - The version of the application. Logical operator
	//    is EQUALS.
	//
	//    * Platform Name - The name of the platform. Logical operator is EQUALS.
	//
	//    * Platform Type - The platform type. Logical operator is EQUALS.
	//
	//    * License Included - The type of license included. Logical operators are
	//    EQUALS and NOT_EQUALS. Possible values are sql-server-enterprise | sql-server-standard
	//    | sql-server-web | windows-server-datacenter.
	//
	// ProductInformationFilterList is a required field
	ProductInformationFilterList []ProductInformationFilter `type:"list" required:"true"`

	// Resource type. The value is SSM_MANAGED.
	//
	// ResourceType is a required field
	ResourceType *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Describes product information for a license configuration.

func (ProductInformation) String added in v0.18.0

func (s ProductInformation) String() string

String returns the string representation

func (*ProductInformation) Validate added in v0.18.0

func (s *ProductInformation) Validate() error

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

type ProductInformationFilter added in v0.18.0

type ProductInformationFilter struct {

	// Logical operator.
	//
	// ProductInformationFilterComparator is a required field
	ProductInformationFilterComparator *string `type:"string" required:"true"`

	// Filter name.
	//
	// ProductInformationFilterName is a required field
	ProductInformationFilterName *string `type:"string" required:"true"`

	// Filter value.
	//
	// ProductInformationFilterValue is a required field
	ProductInformationFilterValue []string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Describes product information filters.

func (ProductInformationFilter) String added in v0.18.0

func (s ProductInformationFilter) String() string

String returns the string representation

func (*ProductInformationFilter) Validate added in v0.18.0

func (s *ProductInformationFilter) Validate() error

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

type ResourceInventory

type ResourceInventory struct {

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

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

	// Amazon Resource Name (ARN) of the resource.
	ResourceArn *string `type:"string"`

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

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

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

Details about a resource.

func (ResourceInventory) String

func (s ResourceInventory) String() string

String returns the string representation

type ResourceType

type ResourceType string
const (
	ResourceTypeEc2Instance                   ResourceType = "EC2_INSTANCE"
	ResourceTypeEc2Host                       ResourceType = "EC2_HOST"
	ResourceTypeEc2Ami                        ResourceType = "EC2_AMI"
	ResourceTypeRds                           ResourceType = "RDS"
	ResourceTypeSystemsManagerManagedInstance ResourceType = "SYSTEMS_MANAGER_MANAGED_INSTANCE"
)

Enum values for ResourceType

func (ResourceType) MarshalValue

func (enum ResourceType) MarshalValue() (string, error)

func (ResourceType) MarshalValueBuf

func (enum ResourceType) MarshalValueBuf(b []byte) ([]byte, error)

type Tag

type Tag struct {

	// Tag key.
	Key *string `type:"string"`

	// Tag value.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

Details about a tag for a license configuration.

func (Tag) String

func (s Tag) String() string

String returns the string representation

type TagResourceInput

type TagResourceInput struct {

	// Amazon Resource Name (ARN) of the license configuration.
	//
	// ResourceArn is a required field
	ResourceArn *string `type:"string" required:"true"`

	// One or more tags.
	//
	// Tags is a required field
	Tags []Tag `type:"list" required:"true"`
	// contains filtered or unexported fields
}

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) String

func (s TagResourceOutput) String() string

String returns the string representation

type TagResourceRequest

type TagResourceRequest struct {
	*aws.Request
	Input *TagResourceInput
	Copy  func(*TagResourceInput) TagResourceRequest
}

TagResourceRequest is the request type for the TagResource API operation.

func (TagResourceRequest) Send

Send marshals and sends the TagResource API request.

type TagResourceResponse added in v0.9.0

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

TagResourceResponse is the response type for the TagResource API operation.

func (*TagResourceResponse) SDKResponseMetdata added in v0.9.0

func (r *TagResourceResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the TagResource request.

type UntagResourceInput

type UntagResourceInput struct {

	// Amazon Resource Name (ARN) of the license configuration.
	//
	// ResourceArn is a required field
	ResourceArn *string `type:"string" required:"true"`

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

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) String

func (s UntagResourceOutput) String() string

String returns the string representation

type UntagResourceRequest

type UntagResourceRequest struct {
	*aws.Request
	Input *UntagResourceInput
	Copy  func(*UntagResourceInput) UntagResourceRequest
}

UntagResourceRequest is the request type for the UntagResource API operation.

func (UntagResourceRequest) Send

Send marshals and sends the UntagResource API request.

type UntagResourceResponse added in v0.9.0

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

UntagResourceResponse is the response type for the UntagResource API operation.

func (*UntagResourceResponse) SDKResponseMetdata added in v0.9.0

func (r *UntagResourceResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the UntagResource request.

type UpdateLicenseConfigurationInput

type UpdateLicenseConfigurationInput struct {

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

	// Amazon Resource Name (ARN) of the license configuration.
	//
	// LicenseConfigurationArn is a required field
	LicenseConfigurationArn *string `type:"string" required:"true"`

	// New status of the license configuration.
	LicenseConfigurationStatus LicenseConfigurationStatus `type:"string" enum:"true"`

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

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

	// New license rules.
	LicenseRules []string `type:"list"`

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

	// New product information.
	ProductInformationList []ProductInformation `type:"list"`
	// contains filtered or unexported fields
}

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) String

String returns the string representation

type UpdateLicenseConfigurationRequest

type UpdateLicenseConfigurationRequest struct {
	*aws.Request
	Input *UpdateLicenseConfigurationInput
	Copy  func(*UpdateLicenseConfigurationInput) UpdateLicenseConfigurationRequest
}

UpdateLicenseConfigurationRequest is the request type for the UpdateLicenseConfiguration API operation.

func (UpdateLicenseConfigurationRequest) Send

Send marshals and sends the UpdateLicenseConfiguration API request.

type UpdateLicenseConfigurationResponse added in v0.9.0

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

UpdateLicenseConfigurationResponse is the response type for the UpdateLicenseConfiguration API operation.

func (*UpdateLicenseConfigurationResponse) SDKResponseMetdata added in v0.9.0

func (r *UpdateLicenseConfigurationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the UpdateLicenseConfiguration request.

type UpdateLicenseSpecificationsForResourceInput

type UpdateLicenseSpecificationsForResourceInput struct {

	// ARNs of the license configurations to add.
	AddLicenseSpecifications []LicenseSpecification `type:"list"`

	// ARNs of the license configurations to remove.
	RemoveLicenseSpecifications []LicenseSpecification `type:"list"`

	// Amazon Resource Name (ARN) of the AWS resource.
	//
	// ResourceArn is a required field
	ResourceArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

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) String

String returns the string representation

type UpdateLicenseSpecificationsForResourceRequest

UpdateLicenseSpecificationsForResourceRequest is the request type for the UpdateLicenseSpecificationsForResource API operation.

func (UpdateLicenseSpecificationsForResourceRequest) Send

Send marshals and sends the UpdateLicenseSpecificationsForResource API request.

type UpdateLicenseSpecificationsForResourceResponse added in v0.9.0

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

UpdateLicenseSpecificationsForResourceResponse is the response type for the UpdateLicenseSpecificationsForResource API operation.

func (*UpdateLicenseSpecificationsForResourceResponse) SDKResponseMetdata added in v0.9.0

SDKResponseMetdata returns the response metadata for the UpdateLicenseSpecificationsForResource request.

type UpdateServiceSettingsInput

type UpdateServiceSettingsInput struct {

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

	// Enables integration with AWS Organizations for cross-account discovery.
	OrganizationConfiguration *OrganizationConfiguration `type:"structure"`

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

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

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) String

String returns the string representation

type UpdateServiceSettingsRequest

type UpdateServiceSettingsRequest struct {
	*aws.Request
	Input *UpdateServiceSettingsInput
	Copy  func(*UpdateServiceSettingsInput) UpdateServiceSettingsRequest
}

UpdateServiceSettingsRequest is the request type for the UpdateServiceSettings API operation.

func (UpdateServiceSettingsRequest) Send

Send marshals and sends the UpdateServiceSettings API request.

type UpdateServiceSettingsResponse added in v0.9.0

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

UpdateServiceSettingsResponse is the response type for the UpdateServiceSettings API operation.

func (*UpdateServiceSettingsResponse) SDKResponseMetdata added in v0.9.0

func (r *UpdateServiceSettingsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the UpdateServiceSettings request.

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