ImageSharePermissionProps
Properties for defining a ImageSharePermission.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-imagesharepermission
Initializer
import com.aliyun.ros.cdk.ecs.ImageSharePermissionProps;
ImageSharePermissionProps.builder()
.imageId(java.lang.String)
.imageId(IResolvable)
// .accounts(IResolvable)
// .accounts(java.util.List<java.lang.String)
// .accounts(IResolvable>)
// .isPublic(java.lang.Boolean)
// .isPublic(IResolvable)
// .keepPermission(java.lang.Boolean)
// .keepPermission(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
imageId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property imageId: The ID of the custom image. |
accounts | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property accounts: Alibaba Cloud account IDs authorized to share the image. |
isPublic | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property isPublic: Specifies whether to publish or unpublish the community image. |
keepPermission | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property keepPermission: Whether to keep the original sharing permissions when resource is deleted, default is true.If set to false, Accounts will be removed if Accounts is set and IsPublic will be changed if IsPublic is set. |
imageIdRequired
public java.lang.Object getImageId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property imageId: The ID of the custom image.
You can no longer share images that are encrypted by using a service key. You can share only images that are encrypted by using a customer managed key (CMK). If you attempt to share an image that is encrypted by using a service key, the request fails.
accountsOptional
public java.lang.Object getAccounts();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property accounts: Alibaba Cloud account IDs authorized to share the image.
isPublicOptional
public java.lang.Object getIsPublic();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property isPublic: Specifies whether to publish or unpublish the community image.
Valid values:
- true: publishes the image as a community image.
- false: unpublishes the community image. The image becomes a custom image. If the image is a custom image, this setting has no effect. Default value: false.
keepPermissionOptional
public java.lang.Object getKeepPermission();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property keepPermission: Whether to keep the original sharing permissions when resource is deleted, default is true.If set to false, Accounts will be removed if Accounts is set and IsPublic will be changed if IsPublic is set.