cloudcontrol

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteResource

func DeleteResource(ctx context.Context, conn *cloudcontrol.Client, roleARN, typeName, id string, maxWaitTime time.Duration) error

func FindResourceByTypeNameAndID

func FindResourceByTypeNameAndID(ctx context.Context, conn *cloudcontrol.Client, roleARN, typeName, id string) (*types.ResourceDescription, error)

func ListResourcesByTypeName

func ListResourcesByTypeName(ctx context.Context, conn *cloudcontrol.Client, roleARN, typeName string) ([]types.ResourceDescription, error)

func RetryGetResourceRequestStatus added in v0.0.14

RetryGetResourceRequestStatus returns a custom retryable function for the GetResourceRequestStatus operation.

Types

type Provider

type Provider interface {
	// CloudControlApiClient returns an AWS Cloud Control API client.
	CloudControlAPIClient(context.Context) *cloudcontrol.Client

	// Region returns an AWS Cloud Control API client's region
	Region(ctx context.Context) string

	// RegisterLogger places the configured logger into Context so it can be used via `tflog`.
	RegisterLogger(ctx context.Context) context.Context

	// RoleARN returns an AWS Cloud Control API service role ARN.
	RoleARN(context.Context) string
}

Provider is the interface implemented by AWS Cloud Control API client providers. It's role is similar to terraform-aws-provider's 'conns.AWSClient'.

Jump to

Keyboard shortcuts

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