Documentation ¶
Overview ¶
Package cloudaccess contains implementation for Akamai Terraform sub-provider responsible for cloud access manager
Index ¶
- Variables
- func Client(meta meta.Meta) cloudaccess.CloudAccess
- func NewKeyDataSource() datasource.DataSource
- func NewKeyPropertiesDataSource() datasource.DataSource
- func NewKeyResource() resource.Resource
- func NewKeyVersionsDataSource() datasource.DataSource
- func NewKeysDataSource() datasource.DataSource
- type Credentials
- type KeyResource
- func (r *KeyResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *KeyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *KeyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *KeyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *KeyResource) Metadata(_ context.Context, _ resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r *KeyResource) ModifyPlan(ctx context.Context, request resource.ModifyPlanRequest, ...)
- func (r *KeyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *KeyResource) Schema(ctx context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *KeyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type KeyResourceModel
- type NetworkConfig
- type Subprovider
Constants ¶
This section is empty.
Variables ¶
var ( // ErrCloudAccessKey is returned when operation on cloud access key fails ErrCloudAccessKey = errors.New("cloud access key") // ErrCloudAccessKeys is returned when operation on cloud access keys fails ErrCloudAccessKeys = errors.New("cloud access keys") // ErrCloudAccessKeyVersions is returned when operation on cloud access key versions fails ErrCloudAccessKeyVersions = errors.New("cloud access key versions") // ErrCloudAccessKeyProperties is returned when operation on cloud access key properties fails ErrCloudAccessKeyProperties = errors.New("cloud access key properties") )
Functions ¶
func Client ¶
func Client(meta meta.Meta) cloudaccess.CloudAccess
Client returns the cloudaccess interface
func NewKeyDataSource ¶
func NewKeyDataSource() datasource.DataSource
NewKeyDataSource returns a new location's data source
func NewKeyPropertiesDataSource ¶
func NewKeyPropertiesDataSource() datasource.DataSource
NewKeyPropertiesDataSource returns a new cloud access key properties data source
func NewKeyResource ¶
NewKeyResource returns new cloudaccess key resource
func NewKeyVersionsDataSource ¶
func NewKeyVersionsDataSource() datasource.DataSource
NewKeyVersionsDataSource returns a new key versions data source
func NewKeysDataSource ¶
func NewKeysDataSource() datasource.DataSource
NewKeysDataSource returns a new cloudaccess keys data source
Types ¶
type Credentials ¶
type Credentials struct { CloudAccessKeyID types.String `tfsdk:"cloud_access_key_id"` CloudSecretAccessKey types.String `tfsdk:"cloud_secret_access_key"` PrimaryKey types.Bool `tfsdk:"primary_key"` Version types.Int64 `tfsdk:"version"` VersionGUID types.String `tfsdk:"version_guid"` }
Credentials represent set of attributes for specific access key versions
type KeyResource ¶
type KeyResource struct {
// contains filtered or unexported fields
}
KeyResource represents akamai_cloudaccess_key resource
func (*KeyResource) Configure ¶
func (r *KeyResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure implements resource.ResourceWithConfigure.
func (*KeyResource) Create ¶
func (r *KeyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create implements resource.Resource.
func (*KeyResource) Delete ¶
func (r *KeyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete implements resource.Resource.
func (*KeyResource) ImportState ¶
func (r *KeyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState implements resource.ResourceWithImportState.
func (*KeyResource) Metadata ¶
func (r *KeyResource) Metadata(_ context.Context, _ resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata implements resource.Resource.
func (*KeyResource) ModifyPlan ¶
func (r *KeyResource) ModifyPlan(ctx context.Context, request resource.ModifyPlanRequest, response *resource.ModifyPlanResponse)
ModifyPlan implements resource.ResourceWithModifyPlan
func (*KeyResource) Read ¶
func (r *KeyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read implements resource.Resource.
func (*KeyResource) Schema ¶
func (r *KeyResource) Schema(ctx context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema implements resource.Resource.
func (*KeyResource) Update ¶
func (r *KeyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update implements resource.Resource.
type KeyResourceModel ¶
type KeyResourceModel struct { AccessKeyName types.String `tfsdk:"access_key_name"` AuthenticationMethod types.String `tfsdk:"authentication_method"` ContractID types.String `tfsdk:"contract_id"` GroupID types.Int64 `tfsdk:"group_id"` PrimaryGUID types.String `tfsdk:"primary_guid"` CredentialsA *Credentials `tfsdk:"credentials_a"` CredentialsB *Credentials `tfsdk:"credentials_b"` NetworkConfig NetworkConfig `tfsdk:"network_configuration"` AccessKeyUID types.Int64 `tfsdk:"access_key_uid"` Timeouts timeouts.Value `tfsdk:"timeouts"` }
KeyResourceModel represents model of akamai_cloudaccess_key resource
type NetworkConfig ¶
type NetworkConfig struct { AdditionalCDN types.String `tfsdk:"additional_cdn"` SecurityNetwork types.String `tfsdk:"security_network"` }
NetworkConfig represents set of attributes for network configuration
type Subprovider ¶
type Subprovider struct{}
Subprovider gathers cloudaccess resources and data sources
func NewSubprovider ¶
func NewSubprovider() *Subprovider
NewSubprovider returns a new cloudaccess subprovider
func (*Subprovider) FrameworkDataSources ¶
func (p *Subprovider) FrameworkDataSources() []func() datasource.DataSource
FrameworkDataSources returns the cloudaccess data sources implemented using terraform-plugin-framework
func (*Subprovider) FrameworkResources ¶
func (p *Subprovider) FrameworkResources() []func() resource.Resource
FrameworkResources returns the cloudaccess resources implemented using terraform-plugin-framework
func (*Subprovider) SDKDataSources ¶
func (p *Subprovider) SDKDataSources() map[string]*schema.Resource
SDKDataSources returns the cloudaccess data sources implemented using terraform-plugin-sdk
func (*Subprovider) SDKResources ¶
func (p *Subprovider) SDKResources() map[string]*schema.Resource
SDKResources returns the cloudaccess resources implemented using terraform-plugin-sdk