/
types.go
117 lines (103 loc) · 4.9 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"). You may
// not use this file except in compliance with the License. A copy of the
// License is located at
//
// http://aws.amazon.com/apache2.0/
//
// or in the "license" file accompanying this file. This file is distributed
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
// express or implied. See the License for the specific language governing
// permissions and limitations under the License.
// Code generated by ack-generate. DO NOT EDIT.
package v1alpha1
import (
ackv1alpha1 "github.com/aws-controllers-k8s/runtime/apis/core/v1alpha1"
"github.com/aws/aws-sdk-go/aws"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// Hack to avoid import errors during build...
var (
_ = &metav1.Time{}
_ = &aws.JSONValue{}
_ = ackv1alpha1.AWSAccountID("")
)
// The error Secrets Manager encountered while retrieving an individual secret
// as part of BatchGetSecretValue.
type APIErrorType struct {
SecretID *string `json:"secretID,omitempty"`
}
// Allows you to add filters when you use the search function in Secrets Manager.
// For more information, see Find secrets in Secrets Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_search-secret.html).
type Filter struct {
Key *string `json:"key,omitempty"`
Values []*string `json:"values,omitempty"`
}
// A custom type that specifies a Region and the KmsKeyId for a replica secret.
type ReplicaRegionType struct {
KMSKeyID *string `json:"kmsKeyID,omitempty"`
Region *string `json:"region,omitempty"`
}
// A replication object consisting of a RegionReplicationStatus object and includes
// a Region, KMSKeyId, status, and status message.
type ReplicationStatusType struct {
KMSKeyID *string `json:"kmsKeyID,omitempty"`
LastAccessedDate *metav1.Time `json:"lastAccessedDate,omitempty"`
Region *string `json:"region,omitempty"`
Status *string `json:"status,omitempty"`
StatusMessage *string `json:"statusMessage,omitempty"`
}
// A structure that defines the rotation configuration for the secret.
type RotationRulesType struct {
AutomaticallyAfterDays *int64 `json:"automaticallyAfterDays,omitempty"`
Duration *string `json:"duration,omitempty"`
ScheduleExpression *string `json:"scheduleExpression,omitempty"`
}
// A structure that contains the details about a secret. It does not include
// the encrypted SecretString and SecretBinary values. To get those values,
// use GetSecretValue (https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_GetSecretValue.html) .
type SecretListEntry struct {
ARN *string `json:"arn,omitempty"`
CreatedDate *metav1.Time `json:"createdDate,omitempty"`
DeletedDate *metav1.Time `json:"deletedDate,omitempty"`
Description *string `json:"description,omitempty"`
KMSKeyID *string `json:"kmsKeyID,omitempty"`
LastAccessedDate *metav1.Time `json:"lastAccessedDate,omitempty"`
LastChangedDate *metav1.Time `json:"lastChangedDate,omitempty"`
LastRotatedDate *metav1.Time `json:"lastRotatedDate,omitempty"`
Name *string `json:"name,omitempty"`
NextRotationDate *metav1.Time `json:"nextRotationDate,omitempty"`
OwningService *string `json:"owningService,omitempty"`
PrimaryRegion *string `json:"primaryRegion,omitempty"`
RotationEnabled *bool `json:"rotationEnabled,omitempty"`
RotationLambdaARN *string `json:"rotationLambdaARN,omitempty"`
// A structure that defines the rotation configuration for the secret.
RotationRules *RotationRulesType `json:"rotationRules,omitempty"`
SecretVersionsToStages map[string][]*string `json:"secretVersionsToStages,omitempty"`
Tags []*Tag `json:"tags,omitempty"`
}
// A structure that contains the secret value and other details for a secret.
type SecretValueEntry struct {
ARN *string `json:"arn,omitempty"`
Name *string `json:"name,omitempty"`
SecretBinary []byte `json:"secretBinary,omitempty"`
SecretString *string `json:"secretString,omitempty"`
VersionID *string `json:"versionID,omitempty"`
VersionStages []*string `json:"versionStages,omitempty"`
}
// A structure that contains information about one version of a secret.
type SecretVersionsListEntry struct {
LastAccessedDate *metav1.Time `json:"lastAccessedDate,omitempty"`
VersionID *string `json:"versionID,omitempty"`
VersionStages []*string `json:"versionStages,omitempty"`
}
// A structure that contains information about a tag.
type Tag struct {
Key *string `json:"key,omitempty"`
Value *string `json:"value,omitempty"`
}
// Displays errors that occurred during validation of the resource policy.
type ValidationErrorsEntry struct {
CheckName *string `json:"checkName,omitempty"`
}