types

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entitlement

type Entitlement struct {

	// The customer identifier is a handle to each unique customer in an application.
	// Customer identifiers are obtained through the ResolveCustomer operation in AWS
	// Marketplace Metering Service.
	CustomerIdentifier *string

	// The dimension for which the given entitlement applies. Dimensions represent
	// categories of capacity in a product and are specified when the product is listed
	// in AWS Marketplace.
	Dimension *string

	// The expiration date represents the minimum date through which this entitlement
	// is expected to remain valid. For contractual products listed on AWS Marketplace,
	// the expiration date is the date at which the customer will renew or cancel their
	// contract. Customers who are opting to renew their contract will still have
	// entitlements with an expiration date.
	ExpirationDate *time.Time

	// The product code for which the given entitlement applies. Product codes are
	// provided by AWS Marketplace when the product listing is created.
	ProductCode *string

	// The EntitlementValue represents the amount of capacity that the customer is
	// entitled to for the product.
	Value EntitlementValue
	// contains filtered or unexported fields
}

An entitlement represents capacity in a product owned by the customer. For example, a customer might own some number of users or seats in an SaaS application or some amount of data capacity in a multi-tenant database.

type EntitlementValue

type EntitlementValue interface {
	// contains filtered or unexported methods
}

The EntitlementValue represents the amount of capacity that the customer is entitled to for the product.

The following types satisfy this interface:

EntitlementValueMemberBooleanValue
EntitlementValueMemberDoubleValue
EntitlementValueMemberIntegerValue
EntitlementValueMemberStringValue
Example (OutputUsage)
// Code generated by smithy-go-codegen DO NOT EDIT.

package main

import (
	"fmt"
	"github.com/aws/aws-sdk-go-v2/service/marketplaceentitlementservice/types"
)

func main() {
	var union types.EntitlementValue
	// type switches can be used to check the union value
	switch v := union.(type) {
	case *types.EntitlementValueMemberBooleanValue:
		_ = v.Value // Value is bool

	case *types.EntitlementValueMemberDoubleValue:
		_ = v.Value // Value is float64

	case *types.EntitlementValueMemberIntegerValue:
		_ = v.Value // Value is int32

	case *types.EntitlementValueMemberStringValue:
		_ = v.Value // Value is string

	case *types.UnknownUnionMember:
		fmt.Println("unknown tag:", v.Tag)

	default:
		fmt.Println("union is nil or unknown type")

	}
}

var _ *string
var _ *int32
var _ *bool
var _ *float64
Output:

type EntitlementValueMemberBooleanValue added in v0.31.0

type EntitlementValueMemberBooleanValue struct {
	Value bool
	// contains filtered or unexported fields
}

The BooleanValue field will be populated with a boolean value when the entitlement is a boolean type. Otherwise, the field will not be set.

type EntitlementValueMemberDoubleValue added in v0.31.0

type EntitlementValueMemberDoubleValue struct {
	Value float64
	// contains filtered or unexported fields
}

The DoubleValue field will be populated with a double value when the entitlement is a double type. Otherwise, the field will not be set.

type EntitlementValueMemberIntegerValue added in v0.31.0

type EntitlementValueMemberIntegerValue struct {
	Value int32
	// contains filtered or unexported fields
}

The IntegerValue field will be populated with an integer value when the entitlement is an integer type. Otherwise, the field will not be set.

type EntitlementValueMemberStringValue added in v0.31.0

type EntitlementValueMemberStringValue struct {
	Value string
	// contains filtered or unexported fields
}

The StringValue field will be populated with a string value when the entitlement is a string type. Otherwise, the field will not be set.

type GetEntitlementFilterName

type GetEntitlementFilterName string
const (
	GetEntitlementFilterNameCustomerIdentifier GetEntitlementFilterName = "CUSTOMER_IDENTIFIER"
	GetEntitlementFilterNameDimension          GetEntitlementFilterName = "DIMENSION"
)

Enum values for GetEntitlementFilterName

func (GetEntitlementFilterName) Values added in v0.29.0

Values returns all known values for GetEntitlementFilterName. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type InternalServiceErrorException

type InternalServiceErrorException struct {
	Message *string
	// contains filtered or unexported fields
}

An internal error has occurred. Retry your request. If the problem persists, post a message with details on the AWS forums.

func (*InternalServiceErrorException) Error

func (*InternalServiceErrorException) ErrorCode

func (e *InternalServiceErrorException) ErrorCode() string

func (*InternalServiceErrorException) ErrorFault

func (*InternalServiceErrorException) ErrorMessage

func (e *InternalServiceErrorException) ErrorMessage() string

type InvalidParameterException

type InvalidParameterException struct {
	Message *string
	// contains filtered or unexported fields
}

One or more parameters in your request was invalid.

func (*InvalidParameterException) Error

func (e *InvalidParameterException) Error() string

func (*InvalidParameterException) ErrorCode

func (e *InvalidParameterException) ErrorCode() string

func (*InvalidParameterException) ErrorFault

func (*InvalidParameterException) ErrorMessage

func (e *InvalidParameterException) ErrorMessage() string

type ThrottlingException

type ThrottlingException struct {
	Message *string
	// contains filtered or unexported fields
}

The calls to the GetEntitlements API are throttled.

func (*ThrottlingException) Error

func (e *ThrottlingException) Error() string

func (*ThrottlingException) ErrorCode

func (e *ThrottlingException) ErrorCode() string

func (*ThrottlingException) ErrorFault

func (e *ThrottlingException) ErrorFault() smithy.ErrorFault

func (*ThrottlingException) ErrorMessage

func (e *ThrottlingException) ErrorMessage() string

type UnknownUnionMember added in v0.31.0

type UnknownUnionMember struct {
	Tag   string
	Value []byte
	// contains filtered or unexported fields
}

UnknownUnionMember is returned when a union member is returned over the wire, but has an unknown tag.

Jump to

Keyboard shortcuts

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