/*
* 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 ecr-2015-09-21.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.ECR.Model
{
///
/// Container for the parameters to the PutRegistryScanningConfiguration operation.
/// Creates or updates the scanning configuration for your private registry.
///
public partial class PutRegistryScanningConfigurationRequest : AmazonECRRequest
{
private List _rules = new List();
private ScanType _scanType;
///
/// Gets and sets the property Rules.
///
/// The scanning rules to use for the registry. A scanning rule is used to determine which
/// repository filters are used and at what frequency scanning will occur.
///
///
[AWSProperty(Min=0, Max=2)]
public List Rules
{
get { return this._rules; }
set { this._rules = value; }
}
// Check to see if Rules property is set
internal bool IsSetRules()
{
return this._rules != null && this._rules.Count > 0;
}
///
/// Gets and sets the property ScanType.
///
/// The scanning type to set for the registry.
///
///
///
/// When a registry scanning configuration is not defined, by default the BASIC
/// scan type is used. When basic scanning is used, you may specify filters to determine
/// which individual repositories, or all repositories, are scanned when new images are
/// pushed to those repositories. Alternatively, you can do manual scans of images with
/// basic scanning.
///
///
///
/// When the ENHANCED
scan type is set, Amazon Inspector provides automated
/// vulnerability scanning. You may choose between continuous scanning or scan on push
/// and you may specify filters to determine which individual repositories, or all repositories,
/// are scanned.
///
///
public ScanType ScanType
{
get { return this._scanType; }
set { this._scanType = value; }
}
// Check to see if ScanType property is set
internal bool IsSetScanType()
{
return this._scanType != null;
}
}
}