v1alpha1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=mongodbatlas.vault.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "mongodbatlas.vault.upbound.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	SecretBackend_Kind             = "SecretBackend"
	SecretBackend_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: SecretBackend_Kind}.String()
	SecretBackend_KindAPIVersion   = SecretBackend_Kind + "." + CRDGroupVersion.String()
	SecretBackend_GroupVersionKind = CRDGroupVersion.WithKind(SecretBackend_Kind)
)

Repository type metadata.

View Source
var (
	SecretRole_Kind             = "SecretRole"
	SecretRole_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: SecretRole_Kind}.String()
	SecretRole_KindAPIVersion   = SecretRole_Kind + "." + CRDGroupVersion.String()
	SecretRole_GroupVersionKind = CRDGroupVersion.WithKind(SecretRole_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type SecretBackend

type SecretBackend struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.mount) || has(self.initProvider.mount)",message="mount is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.privateKey) || has(self.initProvider.privateKey)",message="privateKey is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.publicKey) || has(self.initProvider.publicKey)",message="publicKey is a required parameter"
	Spec   SecretBackendSpec   `json:"spec"`
	Status SecretBackendStatus `json:"status,omitempty"`
}

SecretBackend is the Schema for the SecretBackends API. Creates a MongoDB Atlas secret backend for Vault. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,vault}

func (*SecretBackend) DeepCopy

func (in *SecretBackend) DeepCopy() *SecretBackend

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretBackend.

func (*SecretBackend) DeepCopyInto

func (in *SecretBackend) DeepCopyInto(out *SecretBackend)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*SecretBackend) DeepCopyObject

func (in *SecretBackend) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*SecretBackend) GetCondition

func (mg *SecretBackend) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this SecretBackend.

func (*SecretBackend) GetConnectionDetailsMapping

func (tr *SecretBackend) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this SecretBackend

func (*SecretBackend) GetDeletionPolicy

func (mg *SecretBackend) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this SecretBackend.

func (*SecretBackend) GetID

func (tr *SecretBackend) GetID() string

GetID returns ID of underlying Terraform resource of this SecretBackend

func (*SecretBackend) GetInitParameters added in v0.2.0

func (tr *SecretBackend) GetInitParameters() (map[string]any, error)

GetInitParameters of this SecretBackend

func (*SecretBackend) GetManagementPolicies added in v0.2.0

func (mg *SecretBackend) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this SecretBackend.

func (*SecretBackend) GetObservation

func (tr *SecretBackend) GetObservation() (map[string]any, error)

GetObservation of this SecretBackend

func (*SecretBackend) GetParameters

func (tr *SecretBackend) GetParameters() (map[string]any, error)

GetParameters of this SecretBackend

func (*SecretBackend) GetProviderConfigReference

func (mg *SecretBackend) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this SecretBackend.

func (*SecretBackend) GetProviderReference

func (mg *SecretBackend) GetProviderReference() *xpv1.Reference

GetProviderReference of this SecretBackend. Deprecated: Use GetProviderConfigReference.

func (*SecretBackend) GetPublishConnectionDetailsTo

func (mg *SecretBackend) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this SecretBackend.

func (*SecretBackend) GetTerraformResourceType

func (mg *SecretBackend) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this SecretBackend

func (*SecretBackend) GetTerraformSchemaVersion

func (tr *SecretBackend) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*SecretBackend) GetWriteConnectionSecretToReference

func (mg *SecretBackend) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this SecretBackend.

func (*SecretBackend) LateInitialize

func (tr *SecretBackend) LateInitialize(attrs []byte) (bool, error)

LateInitialize this SecretBackend using its observed tfState. returns True if there are any spec changes for the resource.

func (*SecretBackend) SetConditions

func (mg *SecretBackend) SetConditions(c ...xpv1.Condition)

SetConditions of this SecretBackend.

func (*SecretBackend) SetDeletionPolicy

func (mg *SecretBackend) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this SecretBackend.

func (*SecretBackend) SetManagementPolicies added in v0.2.0

func (mg *SecretBackend) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this SecretBackend.

func (*SecretBackend) SetObservation

func (tr *SecretBackend) SetObservation(obs map[string]any) error

SetObservation for this SecretBackend

func (*SecretBackend) SetParameters

func (tr *SecretBackend) SetParameters(params map[string]any) error

SetParameters for this SecretBackend

func (*SecretBackend) SetProviderConfigReference

func (mg *SecretBackend) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this SecretBackend.

func (*SecretBackend) SetProviderReference

func (mg *SecretBackend) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this SecretBackend. Deprecated: Use SetProviderConfigReference.

func (*SecretBackend) SetPublishConnectionDetailsTo

func (mg *SecretBackend) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this SecretBackend.

func (*SecretBackend) SetWriteConnectionSecretToReference

func (mg *SecretBackend) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this SecretBackend.

type SecretBackendInitParameters added in v0.2.0

type SecretBackendInitParameters struct {

	// Path where the MongoDB Atlas Secrets Engine is mounted.
	// Path where MongoDB Atlas secret backend is mounted
	Mount *string `json:"mount,omitempty" tf:"mount,omitempty"`

	// The namespace to provision the resource in.
	// The value should not contain leading or trailing forward slashes.
	// The namespace is always relative to the provider's configured namespace.
	// Available only for Vault Enterprise.
	// Target namespace. (requires Enterprise)
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// Specifies the Private API Key used to authenticate with the MongoDB Atlas API.
	// The Private Programmatic API Key used to connect with MongoDB Atlas API
	PrivateKey *string `json:"privateKey,omitempty" tf:"private_key,omitempty"`

	// Specifies the Public API Key used to authenticate with the MongoDB Atlas API.
	// The Public Programmatic API Key used to authenticate with the MongoDB Atlas API
	PublicKey *string `json:"publicKey,omitempty" tf:"public_key,omitempty"`
}

func (*SecretBackendInitParameters) DeepCopy added in v0.2.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretBackendInitParameters.

func (*SecretBackendInitParameters) DeepCopyInto added in v0.2.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecretBackendList

type SecretBackendList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []SecretBackend `json:"items"`
}

SecretBackendList contains a list of SecretBackends

func (*SecretBackendList) DeepCopy

func (in *SecretBackendList) DeepCopy() *SecretBackendList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretBackendList.

func (*SecretBackendList) DeepCopyInto

func (in *SecretBackendList) DeepCopyInto(out *SecretBackendList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*SecretBackendList) DeepCopyObject

func (in *SecretBackendList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*SecretBackendList) GetItems

func (l *SecretBackendList) GetItems() []resource.Managed

GetItems of this SecretBackendList.

type SecretBackendObservation

type SecretBackendObservation struct {
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// Path where the MongoDB Atlas Secrets Engine is mounted.
	// Path where MongoDB Atlas secret backend is mounted
	Mount *string `json:"mount,omitempty" tf:"mount,omitempty"`

	// The namespace to provision the resource in.
	// The value should not contain leading or trailing forward slashes.
	// The namespace is always relative to the provider's configured namespace.
	// Available only for Vault Enterprise.
	// Target namespace. (requires Enterprise)
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// Path where MongoDB Atlas configuration is located
	Path *string `json:"path,omitempty" tf:"path,omitempty"`

	// Specifies the Private API Key used to authenticate with the MongoDB Atlas API.
	// The Private Programmatic API Key used to connect with MongoDB Atlas API
	PrivateKey *string `json:"privateKey,omitempty" tf:"private_key,omitempty"`

	// Specifies the Public API Key used to authenticate with the MongoDB Atlas API.
	// The Public Programmatic API Key used to authenticate with the MongoDB Atlas API
	PublicKey *string `json:"publicKey,omitempty" tf:"public_key,omitempty"`
}

func (*SecretBackendObservation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretBackendObservation.

func (*SecretBackendObservation) DeepCopyInto

func (in *SecretBackendObservation) DeepCopyInto(out *SecretBackendObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecretBackendParameters

type SecretBackendParameters struct {

	// Path where the MongoDB Atlas Secrets Engine is mounted.
	// Path where MongoDB Atlas secret backend is mounted
	// +kubebuilder:validation:Optional
	Mount *string `json:"mount,omitempty" tf:"mount,omitempty"`

	// The namespace to provision the resource in.
	// The value should not contain leading or trailing forward slashes.
	// The namespace is always relative to the provider's configured namespace.
	// Available only for Vault Enterprise.
	// Target namespace. (requires Enterprise)
	// +kubebuilder:validation:Optional
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// Specifies the Private API Key used to authenticate with the MongoDB Atlas API.
	// The Private Programmatic API Key used to connect with MongoDB Atlas API
	// +kubebuilder:validation:Optional
	PrivateKey *string `json:"privateKey,omitempty" tf:"private_key,omitempty"`

	// Specifies the Public API Key used to authenticate with the MongoDB Atlas API.
	// The Public Programmatic API Key used to authenticate with the MongoDB Atlas API
	// +kubebuilder:validation:Optional
	PublicKey *string `json:"publicKey,omitempty" tf:"public_key,omitempty"`
}

func (*SecretBackendParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretBackendParameters.

func (*SecretBackendParameters) DeepCopyInto

func (in *SecretBackendParameters) DeepCopyInto(out *SecretBackendParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecretBackendSpec

type SecretBackendSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     SecretBackendParameters `json:"forProvider"`
	// THIS IS AN ALPHA FIELD. Do not use it in production. It is not honored
	// unless the relevant Crossplane feature flag is enabled, and may be
	// changed or removed without notice.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider SecretBackendInitParameters `json:"initProvider,omitempty"`
}

SecretBackendSpec defines the desired state of SecretBackend

func (*SecretBackendSpec) DeepCopy

func (in *SecretBackendSpec) DeepCopy() *SecretBackendSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretBackendSpec.

func (*SecretBackendSpec) DeepCopyInto

func (in *SecretBackendSpec) DeepCopyInto(out *SecretBackendSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecretBackendStatus

type SecretBackendStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        SecretBackendObservation `json:"atProvider,omitempty"`
}

SecretBackendStatus defines the observed state of SecretBackend.

func (*SecretBackendStatus) DeepCopy

func (in *SecretBackendStatus) DeepCopy() *SecretBackendStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretBackendStatus.

func (*SecretBackendStatus) DeepCopyInto

func (in *SecretBackendStatus) DeepCopyInto(out *SecretBackendStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecretRole

type SecretRole struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.mount) || has(self.initProvider.mount)",message="mount is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || has(self.initProvider.name)",message="name is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.roles) || has(self.initProvider.roles)",message="roles is a required parameter"
	Spec   SecretRoleSpec   `json:"spec"`
	Status SecretRoleStatus `json:"status,omitempty"`
}

SecretRole is the Schema for the SecretRoles API. Creates a role for the MongoDB Atlas Secret Engine in Vault. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,vault}

func (*SecretRole) DeepCopy

func (in *SecretRole) DeepCopy() *SecretRole

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRole.

func (*SecretRole) DeepCopyInto

func (in *SecretRole) DeepCopyInto(out *SecretRole)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*SecretRole) DeepCopyObject

func (in *SecretRole) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*SecretRole) GetCondition

func (mg *SecretRole) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this SecretRole.

func (*SecretRole) GetConnectionDetailsMapping

func (tr *SecretRole) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this SecretRole

func (*SecretRole) GetDeletionPolicy

func (mg *SecretRole) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this SecretRole.

func (*SecretRole) GetID

func (tr *SecretRole) GetID() string

GetID returns ID of underlying Terraform resource of this SecretRole

func (*SecretRole) GetInitParameters added in v0.2.0

func (tr *SecretRole) GetInitParameters() (map[string]any, error)

GetInitParameters of this SecretRole

func (*SecretRole) GetManagementPolicies added in v0.2.0

func (mg *SecretRole) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this SecretRole.

func (*SecretRole) GetObservation

func (tr *SecretRole) GetObservation() (map[string]any, error)

GetObservation of this SecretRole

func (*SecretRole) GetParameters

func (tr *SecretRole) GetParameters() (map[string]any, error)

GetParameters of this SecretRole

func (*SecretRole) GetProviderConfigReference

func (mg *SecretRole) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this SecretRole.

func (*SecretRole) GetProviderReference

func (mg *SecretRole) GetProviderReference() *xpv1.Reference

GetProviderReference of this SecretRole. Deprecated: Use GetProviderConfigReference.

func (*SecretRole) GetPublishConnectionDetailsTo

func (mg *SecretRole) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this SecretRole.

func (*SecretRole) GetTerraformResourceType

func (mg *SecretRole) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this SecretRole

func (*SecretRole) GetTerraformSchemaVersion

func (tr *SecretRole) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*SecretRole) GetWriteConnectionSecretToReference

func (mg *SecretRole) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this SecretRole.

func (*SecretRole) LateInitialize

func (tr *SecretRole) LateInitialize(attrs []byte) (bool, error)

LateInitialize this SecretRole using its observed tfState. returns True if there are any spec changes for the resource.

func (*SecretRole) SetConditions

func (mg *SecretRole) SetConditions(c ...xpv1.Condition)

SetConditions of this SecretRole.

func (*SecretRole) SetDeletionPolicy

func (mg *SecretRole) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this SecretRole.

func (*SecretRole) SetManagementPolicies added in v0.2.0

func (mg *SecretRole) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this SecretRole.

func (*SecretRole) SetObservation

func (tr *SecretRole) SetObservation(obs map[string]any) error

SetObservation for this SecretRole

func (*SecretRole) SetParameters

func (tr *SecretRole) SetParameters(params map[string]any) error

SetParameters for this SecretRole

func (*SecretRole) SetProviderConfigReference

func (mg *SecretRole) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this SecretRole.

func (*SecretRole) SetProviderReference

func (mg *SecretRole) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this SecretRole. Deprecated: Use SetProviderConfigReference.

func (*SecretRole) SetPublishConnectionDetailsTo

func (mg *SecretRole) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this SecretRole.

func (*SecretRole) SetWriteConnectionSecretToReference

func (mg *SecretRole) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this SecretRole.

type SecretRoleInitParameters added in v0.2.0

type SecretRoleInitParameters struct {

	// Whitelist entry in CIDR notation to be added for the API key.
	// Whitelist entry in CIDR notation to be added for the API key
	CidrBlocks []*string `json:"cidrBlocks,omitempty" tf:"cidr_blocks,omitempty"`

	// IP address to be added to the whitelist for the API key.
	// IP address to be added to the whitelist for the API key
	IPAddresses []*string `json:"ipAddresses,omitempty" tf:"ip_addresses,omitempty"`

	// The maximum allowed lifetime of credentials issued using this role.
	// The maximum allowed lifetime of credentials issued using this role
	MaxTTL *string `json:"maxTtl,omitempty" tf:"max_ttl,omitempty"`

	// Path where the MongoDB Atlas Secrets Engine is mounted.
	// Path where MongoDB Atlas secret backend is mounted
	Mount *string `json:"mount,omitempty" tf:"mount,omitempty"`

	// The name of the role.
	// Name of the role
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// The namespace to provision the resource in.
	// The value should not contain leading or trailing forward slashes.
	// The namespace is always relative to the provider's configured namespace.
	// Available only for Vault Enterprise.
	// Target namespace. (requires Enterprise)
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// Unique identifier for the organization to which the target API Key belongs.
	// Required if project_id is not set.
	// ID for the organization to which the target API Key belongs
	OrganizationID *string `json:"organizationId,omitempty" tf:"organization_id,omitempty"`

	// Unique identifier for the project to which the target API Key belongs.
	// Required if organization_id is not set.
	// ID for the project to which the target API Key belongs
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// Roles assigned when an org API key is assigned to a project API key.
	// Roles assigned when an org API key is assigned to a project API key
	ProjectRoles []*string `json:"projectRoles,omitempty" tf:"project_roles,omitempty"`

	// List of roles that the API Key needs to have.
	// List of roles that the API Key needs to have
	Roles []*string `json:"roles,omitempty" tf:"roles,omitempty"`

	// Duration in seconds after which the issued credential should expire.
	// Duration in seconds after which the issued credential should expire
	TTL *string `json:"ttl,omitempty" tf:"ttl,omitempty"`
}

func (*SecretRoleInitParameters) DeepCopy added in v0.2.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRoleInitParameters.

func (*SecretRoleInitParameters) DeepCopyInto added in v0.2.0

func (in *SecretRoleInitParameters) DeepCopyInto(out *SecretRoleInitParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecretRoleList

type SecretRoleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []SecretRole `json:"items"`
}

SecretRoleList contains a list of SecretRoles

func (*SecretRoleList) DeepCopy

func (in *SecretRoleList) DeepCopy() *SecretRoleList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRoleList.

func (*SecretRoleList) DeepCopyInto

func (in *SecretRoleList) DeepCopyInto(out *SecretRoleList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*SecretRoleList) DeepCopyObject

func (in *SecretRoleList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*SecretRoleList) GetItems

func (l *SecretRoleList) GetItems() []resource.Managed

GetItems of this SecretRoleList.

type SecretRoleObservation

type SecretRoleObservation struct {

	// Whitelist entry in CIDR notation to be added for the API key.
	// Whitelist entry in CIDR notation to be added for the API key
	CidrBlocks []*string `json:"cidrBlocks,omitempty" tf:"cidr_blocks,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// IP address to be added to the whitelist for the API key.
	// IP address to be added to the whitelist for the API key
	IPAddresses []*string `json:"ipAddresses,omitempty" tf:"ip_addresses,omitempty"`

	// The maximum allowed lifetime of credentials issued using this role.
	// The maximum allowed lifetime of credentials issued using this role
	MaxTTL *string `json:"maxTtl,omitempty" tf:"max_ttl,omitempty"`

	// Path where the MongoDB Atlas Secrets Engine is mounted.
	// Path where MongoDB Atlas secret backend is mounted
	Mount *string `json:"mount,omitempty" tf:"mount,omitempty"`

	// The name of the role.
	// Name of the role
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// The namespace to provision the resource in.
	// The value should not contain leading or trailing forward slashes.
	// The namespace is always relative to the provider's configured namespace.
	// Available only for Vault Enterprise.
	// Target namespace. (requires Enterprise)
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// Unique identifier for the organization to which the target API Key belongs.
	// Required if project_id is not set.
	// ID for the organization to which the target API Key belongs
	OrganizationID *string `json:"organizationId,omitempty" tf:"organization_id,omitempty"`

	// Unique identifier for the project to which the target API Key belongs.
	// Required if organization_id is not set.
	// ID for the project to which the target API Key belongs
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// Roles assigned when an org API key is assigned to a project API key.
	// Roles assigned when an org API key is assigned to a project API key
	ProjectRoles []*string `json:"projectRoles,omitempty" tf:"project_roles,omitempty"`

	// List of roles that the API Key needs to have.
	// List of roles that the API Key needs to have
	Roles []*string `json:"roles,omitempty" tf:"roles,omitempty"`

	// Duration in seconds after which the issued credential should expire.
	// Duration in seconds after which the issued credential should expire
	TTL *string `json:"ttl,omitempty" tf:"ttl,omitempty"`
}

func (*SecretRoleObservation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRoleObservation.

func (*SecretRoleObservation) DeepCopyInto

func (in *SecretRoleObservation) DeepCopyInto(out *SecretRoleObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecretRoleParameters

type SecretRoleParameters struct {

	// Whitelist entry in CIDR notation to be added for the API key.
	// Whitelist entry in CIDR notation to be added for the API key
	// +kubebuilder:validation:Optional
	CidrBlocks []*string `json:"cidrBlocks,omitempty" tf:"cidr_blocks,omitempty"`

	// IP address to be added to the whitelist for the API key.
	// IP address to be added to the whitelist for the API key
	// +kubebuilder:validation:Optional
	IPAddresses []*string `json:"ipAddresses,omitempty" tf:"ip_addresses,omitempty"`

	// The maximum allowed lifetime of credentials issued using this role.
	// The maximum allowed lifetime of credentials issued using this role
	// +kubebuilder:validation:Optional
	MaxTTL *string `json:"maxTtl,omitempty" tf:"max_ttl,omitempty"`

	// Path where the MongoDB Atlas Secrets Engine is mounted.
	// Path where MongoDB Atlas secret backend is mounted
	// +kubebuilder:validation:Optional
	Mount *string `json:"mount,omitempty" tf:"mount,omitempty"`

	// The name of the role.
	// Name of the role
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// The namespace to provision the resource in.
	// The value should not contain leading or trailing forward slashes.
	// The namespace is always relative to the provider's configured namespace.
	// Available only for Vault Enterprise.
	// Target namespace. (requires Enterprise)
	// +kubebuilder:validation:Optional
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// Unique identifier for the organization to which the target API Key belongs.
	// Required if project_id is not set.
	// ID for the organization to which the target API Key belongs
	// +kubebuilder:validation:Optional
	OrganizationID *string `json:"organizationId,omitempty" tf:"organization_id,omitempty"`

	// Unique identifier for the project to which the target API Key belongs.
	// Required if organization_id is not set.
	// ID for the project to which the target API Key belongs
	// +kubebuilder:validation:Optional
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`

	// Roles assigned when an org API key is assigned to a project API key.
	// Roles assigned when an org API key is assigned to a project API key
	// +kubebuilder:validation:Optional
	ProjectRoles []*string `json:"projectRoles,omitempty" tf:"project_roles,omitempty"`

	// List of roles that the API Key needs to have.
	// List of roles that the API Key needs to have
	// +kubebuilder:validation:Optional
	Roles []*string `json:"roles,omitempty" tf:"roles,omitempty"`

	// Duration in seconds after which the issued credential should expire.
	// Duration in seconds after which the issued credential should expire
	// +kubebuilder:validation:Optional
	TTL *string `json:"ttl,omitempty" tf:"ttl,omitempty"`
}

func (*SecretRoleParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRoleParameters.

func (*SecretRoleParameters) DeepCopyInto

func (in *SecretRoleParameters) DeepCopyInto(out *SecretRoleParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecretRoleSpec

type SecretRoleSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     SecretRoleParameters `json:"forProvider"`
	// THIS IS AN ALPHA FIELD. Do not use it in production. It is not honored
	// unless the relevant Crossplane feature flag is enabled, and may be
	// changed or removed without notice.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider SecretRoleInitParameters `json:"initProvider,omitempty"`
}

SecretRoleSpec defines the desired state of SecretRole

func (*SecretRoleSpec) DeepCopy

func (in *SecretRoleSpec) DeepCopy() *SecretRoleSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRoleSpec.

func (*SecretRoleSpec) DeepCopyInto

func (in *SecretRoleSpec) DeepCopyInto(out *SecretRoleSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecretRoleStatus

type SecretRoleStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        SecretRoleObservation `json:"atProvider,omitempty"`
}

SecretRoleStatus defines the observed state of SecretRole.

func (*SecretRoleStatus) DeepCopy

func (in *SecretRoleStatus) DeepCopy() *SecretRoleStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRoleStatus.

func (*SecretRoleStatus) DeepCopyInto

func (in *SecretRoleStatus) DeepCopyInto(out *SecretRoleStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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