/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the codeartifact-2018-09-22.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CodeArtifact.Model
{
///
/// Container for the parameters to the CreateDomain operation.
/// Creates a domain. CodeArtifact domains make it easier to manage multiple repositories
/// across an organization. You can use a domain to apply permissions across many repositories
/// owned by different Amazon Web Services accounts. An asset is stored only once in a
/// domain, even if it's in multiple repositories.
///
///
///
/// Although you can have multiple domains, we recommend a single production domain that
/// contains all published artifacts so that your development teams can find and share
/// packages. You can use a second pre-production domain to test changes to the production
/// domain configuration.
///
///
public partial class CreateDomainRequest : AmazonCodeArtifactRequest
{
private string _domain;
private string _encryptionKey;
private List _tags = new List();
///
/// Gets and sets the property Domain.
///
/// The name of the domain to create. All domain names in an Amazon Web Services Region
/// that are in the same Amazon Web Services account must be unique. The domain name is
/// used as the prefix in DNS hostnames. Do not use sensitive information in a domain
/// name because it is publicly discoverable.
///
///
[AWSProperty(Required=true, Min=2, Max=50)]
public string Domain
{
get { return this._domain; }
set { this._domain = value; }
}
// Check to see if Domain property is set
internal bool IsSetDomain()
{
return this._domain != null;
}
///
/// Gets and sets the property EncryptionKey.
///
/// The encryption key for the domain. This is used to encrypt content stored in a domain.
/// An encryption key can be a key ID, a key Amazon Resource Name (ARN), a key alias,
/// or a key alias ARN. To specify an encryptionKey
, your IAM role must have
/// kms:DescribeKey
and kms:CreateGrant
permissions on the encryption
/// key that is used. For more information, see DescribeKey
/// in the Key Management Service API Reference and Key
/// Management Service API Permissions Reference in the Key Management Service
/// Developer Guide.
///
///
///
/// CodeArtifact supports only symmetric CMKs. Do not associate an asymmetric CMK with
/// your domain. For more information, see Using
/// symmetric and asymmetric keys in the Key Management Service Developer Guide.
///
///
///
///
[AWSProperty(Min=1, Max=1011)]
public string EncryptionKey
{
get { return this._encryptionKey; }
set { this._encryptionKey = value; }
}
// Check to see if EncryptionKey property is set
internal bool IsSetEncryptionKey()
{
return this._encryptionKey != null;
}
///
/// Gets and sets the property Tags.
///
/// One or more tag key-value pairs for the domain.
///
///
[AWSProperty(Min=0, Max=200)]
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}