-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnLocationObjectStorageProps.go
100 lines (97 loc) · 5.78 KB
/
CfnLocationObjectStorageProps.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
package awsdatasync
import (
"github.com/aws/aws-cdk-go/awscdk/v2"
)
// Properties for defining a `CfnLocationObjectStorage`.
//
// 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"
//
// cfnLocationObjectStorageProps := &CfnLocationObjectStorageProps{
// AgentArns: []*string{
// jsii.String("agentArns"),
// },
//
// // the properties below are optional
// AccessKey: jsii.String("accessKey"),
// BucketName: jsii.String("bucketName"),
// SecretKey: jsii.String("secretKey"),
// ServerCertificate: jsii.String("serverCertificate"),
// ServerHostname: jsii.String("serverHostname"),
// ServerPort: jsii.Number(123),
// ServerProtocol: jsii.String("serverProtocol"),
// Subdirectory: jsii.String("subdirectory"),
// Tags: []cfnTag{
// &cfnTag{
// Key: jsii.String("key"),
// Value: jsii.String("value"),
// },
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationobjectstorage.html
//
type CfnLocationObjectStorageProps struct {
// Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect with your location.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationobjectstorage.html#cfn-datasync-locationobjectstorage-agentarns
//
AgentArns *[]*string `field:"required" json:"agentArns" yaml:"agentArns"`
// Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationobjectstorage.html#cfn-datasync-locationobjectstorage-accesskey
//
AccessKey *string `field:"optional" json:"accessKey" yaml:"accessKey"`
// Specifies the name of the object storage bucket involved in the transfer.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationobjectstorage.html#cfn-datasync-locationobjectstorage-bucketname
//
BucketName *string `field:"optional" json:"bucketName" yaml:"bucketName"`
// Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationobjectstorage.html#cfn-datasync-locationobjectstorage-secretkey
//
SecretKey *string `field:"optional" json:"secretKey" yaml:"secretKey"`
// Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA).
//
// You must specify a single `.pem` file with a full certificate chain (for example, `file:///home/user/.ssh/object_storage_certificates.pem` ).
//
// The certificate chain might include:
//
// - The object storage system's certificate
// - All intermediate certificates (if there are any)
// - The root certificate of the signing CA
//
// You can concatenate your certificates into a `.pem` file (which can be up to 32768 bytes before base64 encoding). The following example `cat` command creates an `object_storage_certificates.pem` file that includes three certificates:
//
// `cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pem`
//
// To use this parameter, configure `ServerProtocol` to `HTTPS` .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationobjectstorage.html#cfn-datasync-locationobjectstorage-servercertificate
//
ServerCertificate *string `field:"optional" json:"serverCertificate" yaml:"serverCertificate"`
// Specifies the domain name or IP address of the object storage server.
//
// A DataSync agent uses this hostname to mount the object storage server in a network.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationobjectstorage.html#cfn-datasync-locationobjectstorage-serverhostname
//
ServerHostname *string `field:"optional" json:"serverHostname" yaml:"serverHostname"`
// Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationobjectstorage.html#cfn-datasync-locationobjectstorage-serverport
//
ServerPort *float64 `field:"optional" json:"serverPort" yaml:"serverPort"`
// Specifies the protocol that your object storage server uses to communicate.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationobjectstorage.html#cfn-datasync-locationobjectstorage-serverprotocol
//
ServerProtocol *string `field:"optional" json:"serverProtocol" yaml:"serverProtocol"`
// Specifies the object prefix for your object storage server.
//
// If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationobjectstorage.html#cfn-datasync-locationobjectstorage-subdirectory
//
Subdirectory *string `field:"optional" json:"subdirectory" yaml:"subdirectory"`
// Specifies the key-value pair that represents a tag that you want to add to the resource.
//
// Tags can help you manage, filter, and search for your resources. We recommend creating a name tag for your location.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationobjectstorage.html#cfn-datasync-locationobjectstorage-tags
//
Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
}