All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.kinesisfirehose.model.DeliveryStreamEncryptionConfigurationInput Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Kinesis module holds the client classes that are used for communicating with Amazon Kinesis Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 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.kinesisfirehose.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Specifies the type and Amazon Resource Name (ARN) of the CMK to use for Server-Side Encryption (SSE). *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DeliveryStreamEncryptionConfigurationInput implements Serializable, Cloneable, StructuredPojo { /** *

* If you set KeyType to CUSTOMER_MANAGED_CMK, you must specify the Amazon Resource Name * (ARN) of the CMK. If you set KeyType to Amazon Web Services_OWNED_CMK, Firehose uses a * service-account CMK. *

*/ private String keyARN; /** *

* Indicates the type of customer master key (CMK) to use for encryption. The default setting is * Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master Keys * (CMKs). When you invoke CreateDeliveryStream or StartDeliveryStreamEncryption with * KeyType set to CUSTOMER_MANAGED_CMK, Firehose invokes the Amazon KMS operation CreateGrant to create a grant * that allows the Firehose service to use the customer managed CMK to perform encryption and decryption. Firehose * manages that grant. *

*

* When you invoke StartDeliveryStreamEncryption to change the CMK for a delivery stream that is encrypted * with a customer managed CMK, Firehose schedules the grant it had on the old CMK for retirement. *

*

* You can use a CMK of type CUSTOMER_MANAGED_CMK to encrypt up to 500 delivery streams. If a * CreateDeliveryStream or StartDeliveryStreamEncryption operation exceeds this limit, Firehose throws * a LimitExceededException. *

* *

* To encrypt your delivery stream, use symmetric CMKs. Firehose doesn't support asymmetric CMKs. For information * about symmetric and asymmetric CMKs, see About Symmetric and * Asymmetric CMKs in the Amazon Web Services Key Management Service developer guide. *

*
*/ private String keyType; /** *

* If you set KeyType to CUSTOMER_MANAGED_CMK, you must specify the Amazon Resource Name * (ARN) of the CMK. If you set KeyType to Amazon Web Services_OWNED_CMK, Firehose uses a * service-account CMK. *

* * @param keyARN * If you set KeyType to CUSTOMER_MANAGED_CMK, you must specify the Amazon Resource * Name (ARN) of the CMK. If you set KeyType to Amazon Web Services_OWNED_CMK, * Firehose uses a service-account CMK. */ public void setKeyARN(String keyARN) { this.keyARN = keyARN; } /** *

* If you set KeyType to CUSTOMER_MANAGED_CMK, you must specify the Amazon Resource Name * (ARN) of the CMK. If you set KeyType to Amazon Web Services_OWNED_CMK, Firehose uses a * service-account CMK. *

* * @return If you set KeyType to CUSTOMER_MANAGED_CMK, you must specify the Amazon * Resource Name (ARN) of the CMK. If you set KeyType to * Amazon Web Services_OWNED_CMK, Firehose uses a service-account CMK. */ public String getKeyARN() { return this.keyARN; } /** *

* If you set KeyType to CUSTOMER_MANAGED_CMK, you must specify the Amazon Resource Name * (ARN) of the CMK. If you set KeyType to Amazon Web Services_OWNED_CMK, Firehose uses a * service-account CMK. *

* * @param keyARN * If you set KeyType to CUSTOMER_MANAGED_CMK, you must specify the Amazon Resource * Name (ARN) of the CMK. If you set KeyType to Amazon Web Services_OWNED_CMK, * Firehose uses a service-account CMK. * @return Returns a reference to this object so that method calls can be chained together. */ public DeliveryStreamEncryptionConfigurationInput withKeyARN(String keyARN) { setKeyARN(keyARN); return this; } /** *

* Indicates the type of customer master key (CMK) to use for encryption. The default setting is * Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master Keys * (CMKs). When you invoke CreateDeliveryStream or StartDeliveryStreamEncryption with * KeyType set to CUSTOMER_MANAGED_CMK, Firehose invokes the Amazon KMS operation CreateGrant to create a grant * that allows the Firehose service to use the customer managed CMK to perform encryption and decryption. Firehose * manages that grant. *

*

* When you invoke StartDeliveryStreamEncryption to change the CMK for a delivery stream that is encrypted * with a customer managed CMK, Firehose schedules the grant it had on the old CMK for retirement. *

*

* You can use a CMK of type CUSTOMER_MANAGED_CMK to encrypt up to 500 delivery streams. If a * CreateDeliveryStream or StartDeliveryStreamEncryption operation exceeds this limit, Firehose throws * a LimitExceededException. *

* *

* To encrypt your delivery stream, use symmetric CMKs. Firehose doesn't support asymmetric CMKs. For information * about symmetric and asymmetric CMKs, see About Symmetric and * Asymmetric CMKs in the Amazon Web Services Key Management Service developer guide. *

*
* * @param keyType * Indicates the type of customer master key (CMK) to use for encryption. The default setting is * Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master * Keys (CMKs). When you invoke CreateDeliveryStream or StartDeliveryStreamEncryption with * KeyType set to CUSTOMER_MANAGED_CMK, Firehose invokes the Amazon KMS operation CreateGrant to create * a grant that allows the Firehose service to use the customer managed CMK to perform encryption and * decryption. Firehose manages that grant.

*

* When you invoke StartDeliveryStreamEncryption to change the CMK for a delivery stream that is * encrypted with a customer managed CMK, Firehose schedules the grant it had on the old CMK for retirement. *

*

* You can use a CMK of type CUSTOMER_MANAGED_CMK to encrypt up to 500 delivery streams. If a * CreateDeliveryStream or StartDeliveryStreamEncryption operation exceeds this limit, Firehose * throws a LimitExceededException. *

* *

* To encrypt your delivery stream, use symmetric CMKs. Firehose doesn't support asymmetric CMKs. For * information about symmetric and asymmetric CMKs, see About Symmetric and * Asymmetric CMKs in the Amazon Web Services Key Management Service developer guide. *

* @see KeyType */ public void setKeyType(String keyType) { this.keyType = keyType; } /** *

* Indicates the type of customer master key (CMK) to use for encryption. The default setting is * Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master Keys * (CMKs). When you invoke CreateDeliveryStream or StartDeliveryStreamEncryption with * KeyType set to CUSTOMER_MANAGED_CMK, Firehose invokes the Amazon KMS operation CreateGrant to create a grant * that allows the Firehose service to use the customer managed CMK to perform encryption and decryption. Firehose * manages that grant. *

*

* When you invoke StartDeliveryStreamEncryption to change the CMK for a delivery stream that is encrypted * with a customer managed CMK, Firehose schedules the grant it had on the old CMK for retirement. *

*

* You can use a CMK of type CUSTOMER_MANAGED_CMK to encrypt up to 500 delivery streams. If a * CreateDeliveryStream or StartDeliveryStreamEncryption operation exceeds this limit, Firehose throws * a LimitExceededException. *

* *

* To encrypt your delivery stream, use symmetric CMKs. Firehose doesn't support asymmetric CMKs. For information * about symmetric and asymmetric CMKs, see About Symmetric and * Asymmetric CMKs in the Amazon Web Services Key Management Service developer guide. *

*
* * @return Indicates the type of customer master key (CMK) to use for encryption. The default setting is * Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master * Keys (CMKs). When you invoke CreateDeliveryStream or StartDeliveryStreamEncryption with * KeyType set to CUSTOMER_MANAGED_CMK, Firehose invokes the Amazon KMS operation CreateGrant to create * a grant that allows the Firehose service to use the customer managed CMK to perform encryption and * decryption. Firehose manages that grant.

*

* When you invoke StartDeliveryStreamEncryption to change the CMK for a delivery stream that is * encrypted with a customer managed CMK, Firehose schedules the grant it had on the old CMK for retirement. *

*

* You can use a CMK of type CUSTOMER_MANAGED_CMK to encrypt up to 500 delivery streams. If a * CreateDeliveryStream or StartDeliveryStreamEncryption operation exceeds this limit, * Firehose throws a LimitExceededException. *

* *

* To encrypt your delivery stream, use symmetric CMKs. Firehose doesn't support asymmetric CMKs. For * information about symmetric and asymmetric CMKs, see About Symmetric and * Asymmetric CMKs in the Amazon Web Services Key Management Service developer guide. *

* @see KeyType */ public String getKeyType() { return this.keyType; } /** *

* Indicates the type of customer master key (CMK) to use for encryption. The default setting is * Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master Keys * (CMKs). When you invoke CreateDeliveryStream or StartDeliveryStreamEncryption with * KeyType set to CUSTOMER_MANAGED_CMK, Firehose invokes the Amazon KMS operation CreateGrant to create a grant * that allows the Firehose service to use the customer managed CMK to perform encryption and decryption. Firehose * manages that grant. *

*

* When you invoke StartDeliveryStreamEncryption to change the CMK for a delivery stream that is encrypted * with a customer managed CMK, Firehose schedules the grant it had on the old CMK for retirement. *

*

* You can use a CMK of type CUSTOMER_MANAGED_CMK to encrypt up to 500 delivery streams. If a * CreateDeliveryStream or StartDeliveryStreamEncryption operation exceeds this limit, Firehose throws * a LimitExceededException. *

* *

* To encrypt your delivery stream, use symmetric CMKs. Firehose doesn't support asymmetric CMKs. For information * about symmetric and asymmetric CMKs, see About Symmetric and * Asymmetric CMKs in the Amazon Web Services Key Management Service developer guide. *

*
* * @param keyType * Indicates the type of customer master key (CMK) to use for encryption. The default setting is * Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master * Keys (CMKs). When you invoke CreateDeliveryStream or StartDeliveryStreamEncryption with * KeyType set to CUSTOMER_MANAGED_CMK, Firehose invokes the Amazon KMS operation CreateGrant to create * a grant that allows the Firehose service to use the customer managed CMK to perform encryption and * decryption. Firehose manages that grant.

*

* When you invoke StartDeliveryStreamEncryption to change the CMK for a delivery stream that is * encrypted with a customer managed CMK, Firehose schedules the grant it had on the old CMK for retirement. *

*

* You can use a CMK of type CUSTOMER_MANAGED_CMK to encrypt up to 500 delivery streams. If a * CreateDeliveryStream or StartDeliveryStreamEncryption operation exceeds this limit, Firehose * throws a LimitExceededException. *

* *

* To encrypt your delivery stream, use symmetric CMKs. Firehose doesn't support asymmetric CMKs. For * information about symmetric and asymmetric CMKs, see About Symmetric and * Asymmetric CMKs in the Amazon Web Services Key Management Service developer guide. *

* @return Returns a reference to this object so that method calls can be chained together. * @see KeyType */ public DeliveryStreamEncryptionConfigurationInput withKeyType(String keyType) { setKeyType(keyType); return this; } /** *

* Indicates the type of customer master key (CMK) to use for encryption. The default setting is * Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master Keys * (CMKs). When you invoke CreateDeliveryStream or StartDeliveryStreamEncryption with * KeyType set to CUSTOMER_MANAGED_CMK, Firehose invokes the Amazon KMS operation CreateGrant to create a grant * that allows the Firehose service to use the customer managed CMK to perform encryption and decryption. Firehose * manages that grant. *

*

* When you invoke StartDeliveryStreamEncryption to change the CMK for a delivery stream that is encrypted * with a customer managed CMK, Firehose schedules the grant it had on the old CMK for retirement. *

*

* You can use a CMK of type CUSTOMER_MANAGED_CMK to encrypt up to 500 delivery streams. If a * CreateDeliveryStream or StartDeliveryStreamEncryption operation exceeds this limit, Firehose throws * a LimitExceededException. *

* *

* To encrypt your delivery stream, use symmetric CMKs. Firehose doesn't support asymmetric CMKs. For information * about symmetric and asymmetric CMKs, see About Symmetric and * Asymmetric CMKs in the Amazon Web Services Key Management Service developer guide. *

*
* * @param keyType * Indicates the type of customer master key (CMK) to use for encryption. The default setting is * Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master * Keys (CMKs). When you invoke CreateDeliveryStream or StartDeliveryStreamEncryption with * KeyType set to CUSTOMER_MANAGED_CMK, Firehose invokes the Amazon KMS operation CreateGrant to create * a grant that allows the Firehose service to use the customer managed CMK to perform encryption and * decryption. Firehose manages that grant.

*

* When you invoke StartDeliveryStreamEncryption to change the CMK for a delivery stream that is * encrypted with a customer managed CMK, Firehose schedules the grant it had on the old CMK for retirement. *

*

* You can use a CMK of type CUSTOMER_MANAGED_CMK to encrypt up to 500 delivery streams. If a * CreateDeliveryStream or StartDeliveryStreamEncryption operation exceeds this limit, Firehose * throws a LimitExceededException. *

* *

* To encrypt your delivery stream, use symmetric CMKs. Firehose doesn't support asymmetric CMKs. For * information about symmetric and asymmetric CMKs, see About Symmetric and * Asymmetric CMKs in the Amazon Web Services Key Management Service developer guide. *

* @return Returns a reference to this object so that method calls can be chained together. * @see KeyType */ public DeliveryStreamEncryptionConfigurationInput withKeyType(KeyType keyType) { this.keyType = keyType.toString(); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getKeyARN() != null) sb.append("KeyARN: ").append(getKeyARN()).append(","); if (getKeyType() != null) sb.append("KeyType: ").append(getKeyType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeliveryStreamEncryptionConfigurationInput == false) return false; DeliveryStreamEncryptionConfigurationInput other = (DeliveryStreamEncryptionConfigurationInput) obj; if (other.getKeyARN() == null ^ this.getKeyARN() == null) return false; if (other.getKeyARN() != null && other.getKeyARN().equals(this.getKeyARN()) == false) return false; if (other.getKeyType() == null ^ this.getKeyType() == null) return false; if (other.getKeyType() != null && other.getKeyType().equals(this.getKeyType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getKeyARN() == null) ? 0 : getKeyARN().hashCode()); hashCode = prime * hashCode + ((getKeyType() == null) ? 0 : getKeyType().hashCode()); return hashCode; } @Override public DeliveryStreamEncryptionConfigurationInput clone() { try { return (DeliveryStreamEncryptionConfigurationInput) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.kinesisfirehose.model.transform.DeliveryStreamEncryptionConfigurationInputMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy