/* * Copyright 2018-2023 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. */ package com.amazonaws.services.accessanalyzer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The proposed access control configuration for an Amazon EBS volume snapshot. You can propose a configuration for a * new Amazon EBS volume snapshot or an Amazon EBS volume snapshot that you own by specifying the user IDs, groups, and * optional KMS encryption key. For more information, see ModifySnapshotAttribute. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EbsSnapshotConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot. *
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
* userIds
, then the access preview uses the existing shared userIds
for the snapshot.
*
* If the access preview is for a new resource and you do not specify the userIds
, then the access
* preview considers the snapshot without any userIds
.
*
* To propose deletion of existing shared accountIds
, you can specify an empty list for
* userIds
.
*
* The groups that have access to the Amazon EBS volume snapshot. If the value all
is specified, then
* the Amazon EBS volume snapshot is public.
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the groups
* , then the access preview uses the existing shared groups
for the snapshot.
*
* If the access preview is for a new resource and you do not specify the groups
, then the access
* preview considers the snapshot without any groups
.
*
* To propose deletion of existing shared groups
, you can specify an empty list for groups
* .
*
* The KMS key identifier for an encrypted Amazon EBS volume snapshot. The KMS key identifier is the key ARN, key * ID, alias ARN, or alias name for the KMS key. *
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
* kmsKeyId
, or you specify an empty string, then the access preview uses the existing
* kmsKeyId
of the snapshot.
*
* If the access preview is for a new resource and you do not specify the kmsKeyId
, the access preview
* considers the snapshot as unencrypted.
*
* The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot. *
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
* userIds
, then the access preview uses the existing shared userIds
for the snapshot.
*
* If the access preview is for a new resource and you do not specify the userIds
, then the access
* preview considers the snapshot without any userIds
.
*
* To propose deletion of existing shared accountIds
, you can specify an empty list for
* userIds
.
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
* userIds
, then the access preview uses the existing shared userIds
for the
* snapshot.
*
* If the access preview is for a new resource and you do not specify the userIds
, then the
* access preview considers the snapshot without any userIds
.
*
* To propose deletion of existing shared accountIds
, you can specify an empty list for
* userIds
.
*
* The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot. *
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
* userIds
, then the access preview uses the existing shared userIds
for the snapshot.
*
* If the access preview is for a new resource and you do not specify the userIds
, then the access
* preview considers the snapshot without any userIds
.
*
* To propose deletion of existing shared accountIds
, you can specify an empty list for
* userIds
.
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
* userIds
, then the access preview uses the existing shared userIds
for the
* snapshot.
*
* If the access preview is for a new resource and you do not specify the userIds
, then the
* access preview considers the snapshot without any userIds
.
*
* To propose deletion of existing shared accountIds
, you can specify an empty list for
* userIds
.
*
* The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot. *
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
* userIds
, then the access preview uses the existing shared userIds
for the snapshot.
*
* If the access preview is for a new resource and you do not specify the userIds
, then the access
* preview considers the snapshot without any userIds
.
*
* To propose deletion of existing shared accountIds
, you can specify an empty list for
* userIds
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setUserIds(java.util.Collection)} or {@link #withUserIds(java.util.Collection)} if you want to override * the existing values. *
* * @param userIds * The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot. *
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
* userIds
, then the access preview uses the existing shared userIds
for the
* snapshot.
*
* If the access preview is for a new resource and you do not specify the userIds
, then the
* access preview considers the snapshot without any userIds
.
*
* To propose deletion of existing shared accountIds
, you can specify an empty list for
* userIds
.
*
* The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot. *
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
* userIds
, then the access preview uses the existing shared userIds
for the snapshot.
*
* If the access preview is for a new resource and you do not specify the userIds
, then the access
* preview considers the snapshot without any userIds
.
*
* To propose deletion of existing shared accountIds
, you can specify an empty list for
* userIds
.
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
* userIds
, then the access preview uses the existing shared userIds
for the
* snapshot.
*
* If the access preview is for a new resource and you do not specify the userIds
, then the
* access preview considers the snapshot without any userIds
.
*
* To propose deletion of existing shared accountIds
, you can specify an empty list for
* userIds
.
*
* The groups that have access to the Amazon EBS volume snapshot. If the value all
is specified, then
* the Amazon EBS volume snapshot is public.
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the groups
* , then the access preview uses the existing shared groups
for the snapshot.
*
* If the access preview is for a new resource and you do not specify the groups
, then the access
* preview considers the snapshot without any groups
.
*
* To propose deletion of existing shared groups
, you can specify an empty list for groups
* .
*
all
is
* specified, then the Amazon EBS volume snapshot is public.
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
* groups
, then the access preview uses the existing shared groups
for the
* snapshot.
*
* If the access preview is for a new resource and you do not specify the groups
, then the
* access preview considers the snapshot without any groups
.
*
* To propose deletion of existing shared groups
, you can specify an empty list for
* groups
.
*
* The groups that have access to the Amazon EBS volume snapshot. If the value all
is specified, then
* the Amazon EBS volume snapshot is public.
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the groups
* , then the access preview uses the existing shared groups
for the snapshot.
*
* If the access preview is for a new resource and you do not specify the groups
, then the access
* preview considers the snapshot without any groups
.
*
* To propose deletion of existing shared groups
, you can specify an empty list for groups
* .
*
all
is specified,
* then the Amazon EBS volume snapshot is public.
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
* groups
, then the access preview uses the existing shared groups
for the
* snapshot.
*
* If the access preview is for a new resource and you do not specify the groups
, then the
* access preview considers the snapshot without any groups
.
*
* To propose deletion of existing shared groups
, you can specify an empty list for
* groups
.
*
* The groups that have access to the Amazon EBS volume snapshot. If the value all
is specified, then
* the Amazon EBS volume snapshot is public.
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the groups
* , then the access preview uses the existing shared groups
for the snapshot.
*
* If the access preview is for a new resource and you do not specify the groups
, then the access
* preview considers the snapshot without any groups
.
*
* To propose deletion of existing shared groups
, you can specify an empty list for groups
* .
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setGroups(java.util.Collection)} or {@link #withGroups(java.util.Collection)} if you want to override the * existing values. *
* * @param groups * The groups that have access to the Amazon EBS volume snapshot. If the valueall
is specified,
* then the Amazon EBS volume snapshot is public.
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
* groups
, then the access preview uses the existing shared groups
for the
* snapshot.
*
* If the access preview is for a new resource and you do not specify the groups
, then the
* access preview considers the snapshot without any groups
.
*
* To propose deletion of existing shared groups
, you can specify an empty list for
* groups
.
*
* The groups that have access to the Amazon EBS volume snapshot. If the value all
is specified, then
* the Amazon EBS volume snapshot is public.
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the groups
* , then the access preview uses the existing shared groups
for the snapshot.
*
* If the access preview is for a new resource and you do not specify the groups
, then the access
* preview considers the snapshot without any groups
.
*
* To propose deletion of existing shared groups
, you can specify an empty list for groups
* .
*
all
is specified,
* then the Amazon EBS volume snapshot is public.
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
* groups
, then the access preview uses the existing shared groups
for the
* snapshot.
*
* If the access preview is for a new resource and you do not specify the groups
, then the
* access preview considers the snapshot without any groups
.
*
* To propose deletion of existing shared groups
, you can specify an empty list for
* groups
.
*
* The KMS key identifier for an encrypted Amazon EBS volume snapshot. The KMS key identifier is the key ARN, key * ID, alias ARN, or alias name for the KMS key. *
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
* kmsKeyId
, or you specify an empty string, then the access preview uses the existing
* kmsKeyId
of the snapshot.
*
* If the access preview is for a new resource and you do not specify the kmsKeyId
, the access preview
* considers the snapshot as unencrypted.
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
* kmsKeyId
, or you specify an empty string, then the access preview uses the existing
* kmsKeyId
of the snapshot.
*
* If the access preview is for a new resource and you do not specify the kmsKeyId
, the access
* preview considers the snapshot as unencrypted.
*
* The KMS key identifier for an encrypted Amazon EBS volume snapshot. The KMS key identifier is the key ARN, key * ID, alias ARN, or alias name for the KMS key. *
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
* kmsKeyId
, or you specify an empty string, then the access preview uses the existing
* kmsKeyId
of the snapshot.
*
* If the access preview is for a new resource and you do not specify the kmsKeyId
, the access preview
* considers the snapshot as unencrypted.
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
* kmsKeyId
, or you specify an empty string, then the access preview uses the existing
* kmsKeyId
of the snapshot.
*
* If the access preview is for a new resource and you do not specify the kmsKeyId
, the access
* preview considers the snapshot as unencrypted.
*
* The KMS key identifier for an encrypted Amazon EBS volume snapshot. The KMS key identifier is the key ARN, key * ID, alias ARN, or alias name for the KMS key. *
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
* kmsKeyId
, or you specify an empty string, then the access preview uses the existing
* kmsKeyId
of the snapshot.
*
* If the access preview is for a new resource and you do not specify the kmsKeyId
, the access preview
* considers the snapshot as unencrypted.
*
* If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
* kmsKeyId
, or you specify an empty string, then the access preview uses the existing
* kmsKeyId
of the snapshot.
*
* If the access preview is for a new resource and you do not specify the kmsKeyId
, the access
* preview considers the snapshot as unencrypted.
*