GatewayProps
Properties for defining a Gateway.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cloudstoragegateway-gateway
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcloudstoragegateway"
&alicloudroscdkcloudstoragegateway.GatewayProps {
Category: interface{},
Location: interface{},
Name: interface{},
Type: interface{},
Description: interface{},
GatewayClass: interface{},
PostPaid: interface{},
PublicNetworkBandwidth: interface{},
ReleaseAfterExpiration: interface{},
ResourceRegionId: interface{},
SecondaryVSwitchId: interface{},
StorageBundleId: interface{},
UntrustedEnvId: interface{},
UntrustedEnvInstanceType: interface{},
VSwitchId: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
Category | interface{} | Property category: The category of the gateway. |
Location | interface{} | Property location: The location of the gateway. |
Name | interface{} | Property name: The name of the gateway. |
Type | interface{} | Property type: The type of the gateway. |
Description | interface{} | Property description: The description of the gateway. |
GatewayClass | interface{} | Property gatewayClass: If your gateway is deployed in a data center, which is an on-premises gateway, you can ignore this parameter. |
PostPaid | interface{} | Property postPaid: Valid values: - true: pay-as-you-go. |
PublicNetworkBandwidth | interface{} | Property publicNetworkBandwidth: > - This parameter is supported only for cloud gateways. |
ReleaseAfterExpiration | interface{} | Property releaseAfterExpiration: Specifies whether to release the gateway when the subscription expires. |
ResourceRegionId | interface{} | Property resourceRegionId: The region ID of the resource. |
SecondaryVSwitchId | interface{} | Property secondaryVSwitchId: The ID of the secondary VSwitch. |
StorageBundleId | interface{} | Property storageBundleId: The ID of the gateway cluster. |
UntrustedEnvId | interface{} | Property untrustedEnvId: The ID of the untrusted environment. |
UntrustedEnvInstanceType | interface{} | Property untrustedEnvInstanceType: The instance type of the untrusted environment. |
VSwitchId | interface{} | Property vSwitchId: The ID of the virtual switch. |
CategoryRequired
Category interface{}
- Type: interface{}
Property category: The category of the gateway.
The default value is Cloud.
LocationRequired
Location interface{}
- Type: interface{}
Property location: The location of the gateway.
NameRequired
Name interface{}
- Type: interface{}
Property name: The name of the gateway.
The name must be 60 characters in length. The name must start with a letter or a Chinese character. The name can contain letters, Chinese characters, digits, underscores (_), hyphens (-), and periods (.).
TypeRequired
Type interface{}
- Type: interface{}
Property type: The type of the gateway.
DescriptionOptional
Description interface{}
- Type: interface{}
Property description: The description of the gateway.
GatewayClassOptional
GatewayClass interface{}
- Type: interface{}
Property gatewayClass: If your gateway is deployed in a data center, which is an on-premises gateway, you can ignore this parameter.
If your gateway is deployed on the cloud, which is a cloud gateway, valid values are:
- Basic: Basic
- Standard: Medium
- Enhanced: Enhanced
- Advanced: Performance
PostPaidOptional
PostPaid interface{}
- Type: interface{}
Property postPaid: Valid values: - true: pay-as-you-go.
- false: subscription. Default value: false (subscription).
PublicNetworkBandwidthOptional
PublicNetworkBandwidth interface{}
- Type: interface{}
Property publicNetworkBandwidth: > - This parameter is supported only for cloud gateways.
You can ignore this parameter for on-premises gateways.
- Configure this parameter only when you need to mount an OSS bucket across regions.
- If you specify 0 or do not specify this parameter, the default value is 5.
ReleaseAfterExpirationOptional
ReleaseAfterExpiration interface{}
- Type: interface{}
Property releaseAfterExpiration: Specifies whether to release the gateway when the subscription expires.
Valid values: true: The gateway is automatically released. false: The billing method of the gateway is automatically changed to pay-as-you-go after the subscription expires.
ResourceRegionIdOptional
ResourceRegionId interface{}
- Type: interface{}
Property resourceRegionId: The region ID of the resource.
SecondaryVSwitchIdOptional
SecondaryVSwitchId interface{}
- Type: interface{}
Property secondaryVSwitchId: The ID of the secondary VSwitch.
StorageBundleIdOptional
StorageBundleId interface{}
- Type: interface{}
Property storageBundleId: The ID of the gateway cluster.
You must specify this parameter if you do not specify ResourceRegionId.
UntrustedEnvIdOptional
UntrustedEnvId interface{}
- Type: interface{}
Property untrustedEnvId: The ID of the untrusted environment.
UntrustedEnvInstanceTypeOptional
UntrustedEnvInstanceType interface{}
- Type: interface{}
Property untrustedEnvInstanceType: The instance type of the untrusted environment.
VSwitchIdOptional
VSwitchId interface{}
- Type: interface{}
Property vSwitchId: The ID of the virtual switch.
If your gateway is deployed in a data center, you can ignore this parameter.
- The vSwitch must be in the same VPC as the ECS instance that you want to attach.
- If no gateway resources can be allocated in the zone where the vSwitch resides, create a vSwitch in another zone.