-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnUserProps.go
79 lines (76 loc) · 3.25 KB
/
CfnUserProps.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
package awselasticache
import (
"github.com/aws/aws-cdk-go/awscdk/v2"
)
// Properties for defining a `CfnUser`.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// var authenticationMode interface{}
//
// cfnUserProps := &CfnUserProps{
// Engine: jsii.String("engine"),
// UserId: jsii.String("userId"),
// UserName: jsii.String("userName"),
//
// // the properties below are optional
// AccessString: jsii.String("accessString"),
// AuthenticationMode: authenticationMode,
// NoPasswordRequired: jsii.Boolean(false),
// Passwords: []*string{
// jsii.String("passwords"),
// },
// Tags: []cfnTag{
// &cfnTag{
// Key: jsii.String("key"),
// Value: jsii.String("value"),
// },
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html
//
type CfnUserProps struct {
// The current supported value is redis.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html#cfn-elasticache-user-engine
//
Engine *string `field:"required" json:"engine" yaml:"engine"`
// The ID of the user.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html#cfn-elasticache-user-userid
//
UserId *string `field:"required" json:"userId" yaml:"userId"`
// The username of the user.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html#cfn-elasticache-user-username
//
UserName *string `field:"required" json:"userName" yaml:"userName"`
// Access permissions string used for this user.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html#cfn-elasticache-user-accessstring
//
AccessString *string `field:"optional" json:"accessString" yaml:"accessString"`
// Specifies the authentication mode to use. Below is an example of the possible JSON values:.
//
// ```
// { Passwords: ["*****", "******"] // If Type is password.
// }
// ```.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html#cfn-elasticache-user-authenticationmode
//
AuthenticationMode interface{} `field:"optional" json:"authenticationMode" yaml:"authenticationMode"`
// Indicates a password is not required for this user.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html#cfn-elasticache-user-nopasswordrequired
//
NoPasswordRequired interface{} `field:"optional" json:"noPasswordRequired" yaml:"noPasswordRequired"`
// Passwords used for this user.
//
// You can create up to two passwords for each user.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html#cfn-elasticache-user-passwords
//
Passwords *[]*string `field:"optional" json:"passwords" yaml:"passwords"`
// An array of key-value pairs to apply to this user.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-user.html#cfn-elasticache-user-tags
//
Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
}