Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewBucketCORSConfigurationResource() resource.Resource
- func NewBucketLifecycleConfigurationResource() resource.Resource
- func NewBucketPolicyResource() resource.Resource
- func NewBucketResource() resource.Resource
- func NewObjectResource() resource.Resource
- func NewValueOrEnvValidator(envKey string) valueOrEnvValidator
- type BucketCORSConfigurationResource
- func (r *BucketCORSConfigurationResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *BucketCORSConfigurationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *BucketCORSConfigurationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *BucketCORSConfigurationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *BucketCORSConfigurationResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *BucketCORSConfigurationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *BucketCORSConfigurationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *BucketCORSConfigurationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type BucketCORSConfigurationResourceModel
- type BucketLifecycleConfigurationResource
- func (r *BucketLifecycleConfigurationResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *BucketLifecycleConfigurationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *BucketLifecycleConfigurationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *BucketLifecycleConfigurationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *BucketLifecycleConfigurationResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *BucketLifecycleConfigurationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *BucketLifecycleConfigurationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *BucketLifecycleConfigurationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type BucketLifecycleConfigurationResourceModel
- type BucketPolicyResource
- func (r *BucketPolicyResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *BucketPolicyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *BucketPolicyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *BucketPolicyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *BucketPolicyResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *BucketPolicyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *BucketPolicyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *BucketPolicyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type BucketPolicyResourceModel
- type BucketResource
- func (r *BucketResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *BucketResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *BucketResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *BucketResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *BucketResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *BucketResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *BucketResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *BucketResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type BucketResourceModel
- type CORSRule
- type LifecycleConfigurationRule
- type LifecycleConfigurationRuleExpiration
- type LifecycleConfigurationRuleFilter
- type LifecycleConfigurationRuleFilterAnd
- type LifecycleConfigurationRuleNoncurrentExpiration
- type ObjStoProvider
- func (p *ObjStoProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *ObjStoProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *ObjStoProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *ObjStoProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *ObjStoProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type ObjStoProviderModel
- type ObjectResource
- func (r *ObjectResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ObjectResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ObjectResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ObjectResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ObjectResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ObjectResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ObjectResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ObjectResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ObjectResourceModel
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBucketCORSConfigurationResource ¶ added in v0.2.0
func NewBucketPolicyResource ¶
func NewBucketResource ¶
func NewObjectResource ¶
func NewValueOrEnvValidator ¶
func NewValueOrEnvValidator(envKey string) valueOrEnvValidator
Types ¶
type BucketCORSConfigurationResource ¶ added in v0.2.0
type BucketCORSConfigurationResource struct {
// contains filtered or unexported fields
}
BucketCORSConfigurationResource defines the resource implementation.
func (*BucketCORSConfigurationResource) Configure ¶ added in v0.2.0
func (r *BucketCORSConfigurationResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*BucketCORSConfigurationResource) Create ¶ added in v0.2.0
func (r *BucketCORSConfigurationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*BucketCORSConfigurationResource) Delete ¶ added in v0.2.0
func (r *BucketCORSConfigurationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*BucketCORSConfigurationResource) ImportState ¶ added in v0.2.0
func (r *BucketCORSConfigurationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*BucketCORSConfigurationResource) Metadata ¶ added in v0.2.0
func (r *BucketCORSConfigurationResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*BucketCORSConfigurationResource) Read ¶ added in v0.2.0
func (r *BucketCORSConfigurationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*BucketCORSConfigurationResource) Schema ¶ added in v0.2.0
func (r *BucketCORSConfigurationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*BucketCORSConfigurationResource) Update ¶ added in v0.2.0
func (r *BucketCORSConfigurationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type BucketCORSConfigurationResourceModel ¶ added in v0.2.0
type BucketCORSConfigurationResourceModel struct { Bucket types.String `tfsdk:"bucket"` Rules types.List `tfsdk:"cors_rule"` }
BucketCORSConfigurationResourceModel describes the resource data model.
type BucketLifecycleConfigurationResource ¶
type BucketLifecycleConfigurationResource struct {
// contains filtered or unexported fields
}
BucketLifecycleConfigurationResource defines the resource implementation.
func (*BucketLifecycleConfigurationResource) Configure ¶
func (r *BucketLifecycleConfigurationResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*BucketLifecycleConfigurationResource) Create ¶
func (r *BucketLifecycleConfigurationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*BucketLifecycleConfigurationResource) Delete ¶
func (r *BucketLifecycleConfigurationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*BucketLifecycleConfigurationResource) ImportState ¶
func (r *BucketLifecycleConfigurationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*BucketLifecycleConfigurationResource) Metadata ¶
func (r *BucketLifecycleConfigurationResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*BucketLifecycleConfigurationResource) Read ¶
func (r *BucketLifecycleConfigurationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*BucketLifecycleConfigurationResource) Schema ¶
func (r *BucketLifecycleConfigurationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*BucketLifecycleConfigurationResource) Update ¶
func (r *BucketLifecycleConfigurationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type BucketLifecycleConfigurationResourceModel ¶
type BucketLifecycleConfigurationResourceModel struct { Bucket types.String `tfsdk:"bucket"` Rules types.List `tfsdk:"rule"` }
BucketLifecycleConfigurationResourceModel describes the resource data model.
type BucketPolicyResource ¶
type BucketPolicyResource struct {
// contains filtered or unexported fields
}
BucketPolicyResource defines the resource implementation.
func (*BucketPolicyResource) Configure ¶
func (r *BucketPolicyResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*BucketPolicyResource) Create ¶
func (r *BucketPolicyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*BucketPolicyResource) Delete ¶
func (r *BucketPolicyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*BucketPolicyResource) ImportState ¶
func (r *BucketPolicyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*BucketPolicyResource) Metadata ¶
func (r *BucketPolicyResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*BucketPolicyResource) Read ¶
func (r *BucketPolicyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*BucketPolicyResource) Schema ¶
func (r *BucketPolicyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*BucketPolicyResource) Update ¶
func (r *BucketPolicyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type BucketPolicyResourceModel ¶
type BucketPolicyResourceModel struct { Bucket types.String `tfsdk:"bucket"` Policy types.String `tfsdk:"policy"` }
BucketPolicyResourceModel describes the resource data model.
type BucketResource ¶
type BucketResource struct {
// contains filtered or unexported fields
}
BucketResource defines the resource implementation.
func (*BucketResource) Configure ¶
func (r *BucketResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*BucketResource) Create ¶
func (r *BucketResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*BucketResource) Delete ¶
func (r *BucketResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*BucketResource) ImportState ¶
func (r *BucketResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*BucketResource) Metadata ¶
func (r *BucketResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*BucketResource) Read ¶
func (r *BucketResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*BucketResource) Schema ¶
func (r *BucketResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*BucketResource) Update ¶
func (r *BucketResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type BucketResourceModel ¶
type BucketResourceModel struct { Name types.String `tfsdk:"bucket"` ARN types.String `tfsdk:"arn"` }
BucketResourceModel describes the resource data model.
type CORSRule ¶ added in v0.2.0
type CORSRule struct { AllowedHeaders types.Set `tfsdk:"allowed_headers"` AllowedMethods types.Set `tfsdk:"allowed_methods"` AllowedOrigins types.Set `tfsdk:"allowed_origins"` ExposeHeaders types.Set `tfsdk:"expose_headers"` ID types.String `tfsdk:"id"` MaxAgeSeconds types.Int32 `tfsdk:"max_age_seconds"` }
type LifecycleConfigurationRuleExpiration ¶
type LifecycleConfigurationRuleExpiration struct { Date types.String `tfsdk:"date"` Days types.Int32 `tfsdk:"days"` }
func (LifecycleConfigurationRuleExpiration) AttributeTypes ¶
func (m LifecycleConfigurationRuleExpiration) AttributeTypes() map[string]attr.Type
type LifecycleConfigurationRuleFilter ¶
type LifecycleConfigurationRuleFilter struct { ObjectSizeLargerThan types.Int64 `tfsdk:"object_size_larger_than"` ObjectSizeLessThan types.Int64 `tfsdk:"object_size_less_than"` Prefix types.String `tfsdk:"prefix"` Tag types.Object `tfsdk:"tag"` And types.Object `tfsdk:"and"` }
func (LifecycleConfigurationRuleFilter) AttributeTypes ¶
func (m LifecycleConfigurationRuleFilter) AttributeTypes() map[string]attr.Type
type LifecycleConfigurationRuleFilterAnd ¶
type LifecycleConfigurationRuleFilterAnd struct { ObjectSizeLargerThan types.Int64 `tfsdk:"object_size_larger_than"` ObjectSizeLessThan types.Int64 `tfsdk:"object_size_less_than"` Prefix types.String `tfsdk:"prefix"` Tag types.Map `tfsdk:"tags"` }
func (LifecycleConfigurationRuleFilterAnd) AttributeTypes ¶
func (m LifecycleConfigurationRuleFilterAnd) AttributeTypes() map[string]attr.Type
type LifecycleConfigurationRuleNoncurrentExpiration ¶
type LifecycleConfigurationRuleNoncurrentExpiration struct { NewerNoncurrentVersions types.Int32 `tfsdk:"newer_noncurrent_versions"` NoncurrentDays types.Int32 `tfsdk:"noncurrent_days"` }
func (LifecycleConfigurationRuleNoncurrentExpiration) AttributeTypes ¶
func (m LifecycleConfigurationRuleNoncurrentExpiration) AttributeTypes() map[string]attr.Type
type ObjStoProvider ¶
type ObjStoProvider struct {
// contains filtered or unexported fields
}
ObjStoProvider defines the provider implementation.
func (*ObjStoProvider) Configure ¶
func (p *ObjStoProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*ObjStoProvider) DataSources ¶
func (p *ObjStoProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*ObjStoProvider) Metadata ¶
func (p *ObjStoProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*ObjStoProvider) Resources ¶
func (p *ObjStoProvider) Resources(ctx context.Context) []func() resource.Resource
func (*ObjStoProvider) Schema ¶
func (p *ObjStoProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type ObjStoProviderModel ¶
type ObjStoProviderModel struct { Endpoint types.String `tfsdk:"endpoint"` Region types.String `tfsdk:"region"` AccessKey types.String `tfsdk:"access_key"` SecretKey types.String `tfsdk:"secret_key"` }
ObjStoProviderModel describes the provider data model.
type ObjectResource ¶
type ObjectResource struct {
// contains filtered or unexported fields
}
ObjectResource defines the resource implementation.
func (*ObjectResource) Configure ¶
func (r *ObjectResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ObjectResource) Create ¶
func (r *ObjectResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ObjectResource) Delete ¶
func (r *ObjectResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ObjectResource) ImportState ¶
func (r *ObjectResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ObjectResource) Metadata ¶
func (r *ObjectResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ObjectResource) Read ¶
func (r *ObjectResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ObjectResource) Schema ¶
func (r *ObjectResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ObjectResource) Update ¶
func (r *ObjectResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)