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

software.amazon.awscdk.services.inspector.CfnAssessmentTarget Maven / Gradle / Ivy

package software.amazon.awscdk.services.inspector;

/**
 * A CloudFormation `AWS::Inspector::AssessmentTarget`.
 * 

* The AWS::Inspector::AssessmentTarget resource is used to create Amazon Inspector assessment targets, which specify the Amazon EC2 instances that will be analyzed during an assessment run. *

* Example: *

*

 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.inspector.*;
 * CfnAssessmentTarget cfnAssessmentTarget = CfnAssessmentTarget.Builder.create(this, "MyCfnAssessmentTarget")
 *         .assessmentTargetName("assessmentTargetName")
 *         .resourceGroupArn("resourceGroupArn")
 *         .build();
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.58.0 (build f8ba112)", date = "2022-05-11T19:24:09.489Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.inspector.$Module.class, fqn = "@aws-cdk/aws-inspector.CfnAssessmentTarget") public class CfnAssessmentTarget extends software.amazon.awscdk.core.CfnResource implements software.amazon.awscdk.core.IInspectable { protected CfnAssessmentTarget(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected CfnAssessmentTarget(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } static { CFN_RESOURCE_TYPE_NAME = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.inspector.CfnAssessmentTarget.class, "CFN_RESOURCE_TYPE_NAME", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * Create a new `AWS::Inspector::AssessmentTarget`. *

* @param scope - scope in which this resource is defined. This parameter is required. * @param id - scoped id of the resource. This parameter is required. * @param props - resource properties. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public CfnAssessmentTarget(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.inspector.CfnAssessmentTargetProps props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), props }); } /** * Create a new `AWS::Inspector::AssessmentTarget`. *

* @param scope - scope in which this resource is defined. This parameter is required. * @param id - scoped id of the resource. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public CfnAssessmentTarget(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required") }); } /** * Examines the CloudFormation resource and discloses attributes. *

* @param inspector - tree inspector to collect and process attributes. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public void inspect(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.TreeInspector inspector) { software.amazon.jsii.Kernel.call(this, "inspect", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(inspector, "inspector is required") }); } /** * @param props This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override protected @org.jetbrains.annotations.NotNull java.util.Map renderProperties(final @org.jetbrains.annotations.NotNull java.util.Map props) { return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.call(this, "renderProperties", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)), new Object[] { java.util.Objects.requireNonNull(props, "props is required") })); } /** * The CloudFormation resource type name for this resource class. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public final static java.lang.String CFN_RESOURCE_TYPE_NAME; /** * The Amazon Resource Name (ARN) that specifies the assessment target that is created. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getAttrArn() { return software.amazon.jsii.Kernel.get(this, "attrArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) protected @org.jetbrains.annotations.NotNull java.util.Map getCfnProperties() { return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.get(this, "cfnProperties", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } /** * The name of the Amazon Inspector assessment target. *

* The name must be unique within the AWS account . */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getAssessmentTargetName() { return software.amazon.jsii.Kernel.get(this, "assessmentTargetName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The name of the Amazon Inspector assessment target. *

* The name must be unique within the AWS account . */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setAssessmentTargetName(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "assessmentTargetName", value); } /** * The ARN that specifies the resource group that is used to create the assessment target. *

* If resourceGroupArn is not specified, all EC2 instances in the current AWS account and Region are included in the assessment target. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getResourceGroupArn() { return software.amazon.jsii.Kernel.get(this, "resourceGroupArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The ARN that specifies the resource group that is used to create the assessment target. *

* If resourceGroupArn is not specified, all EC2 instances in the current AWS account and Region are included in the assessment target. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setResourceGroupArn(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "resourceGroupArn", value); } /** * A fluent builder for {@link software.amazon.awscdk.services.inspector.CfnAssessmentTarget}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param scope - scope in which this resource is defined. This parameter is required. * @param id - scoped id of the resource. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static Builder create(final software.amazon.awscdk.core.Construct scope, final java.lang.String id) { return new Builder(scope, id); } private final software.amazon.awscdk.core.Construct scope; private final java.lang.String id; private software.amazon.awscdk.services.inspector.CfnAssessmentTargetProps.Builder props; private Builder(final software.amazon.awscdk.core.Construct scope, final java.lang.String id) { this.scope = scope; this.id = id; } /** * The name of the Amazon Inspector assessment target. *

* The name must be unique within the AWS account . *

* @return {@code this} * @param assessmentTargetName The name of the Amazon Inspector assessment target. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder assessmentTargetName(final java.lang.String assessmentTargetName) { this.props().assessmentTargetName(assessmentTargetName); return this; } /** * The ARN that specifies the resource group that is used to create the assessment target. *

* If resourceGroupArn is not specified, all EC2 instances in the current AWS account and Region are included in the assessment target. *

* @return {@code this} * @param resourceGroupArn The ARN that specifies the resource group that is used to create the assessment target. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder resourceGroupArn(final java.lang.String resourceGroupArn) { this.props().resourceGroupArn(resourceGroupArn); return this; } /** * @returns a newly built instance of {@link software.amazon.awscdk.services.inspector.CfnAssessmentTarget}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public software.amazon.awscdk.services.inspector.CfnAssessmentTarget build() { return new software.amazon.awscdk.services.inspector.CfnAssessmentTarget( this.scope, this.id, this.props != null ? this.props.build() : null ); } private software.amazon.awscdk.services.inspector.CfnAssessmentTargetProps.Builder props() { if (this.props == null) { this.props = new software.amazon.awscdk.services.inspector.CfnAssessmentTargetProps.Builder(); } return this.props; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy