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

software.amazon.awscdk.services.guardduty.CfnMember Maven / Gradle / Ivy

package software.amazon.awscdk.services.guardduty;

/**
 * A CloudFormation AWS::GuardDuty::Member.
 * 

* You can use the AWS::GuardDuty::Member resource to add an AWS account as a GuardDuty member account to the current GuardDuty administrator account. If the value of the Status property is not provided or is set to Created , a member account is created but not invited. If the value of the Status property is set to Invited , a member account is created and invited. An AWS::GuardDuty::Member resource must be created with the Status property set to Invited before the AWS::GuardDuty::Master resource can be created in a GuardDuty member account. *

* 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.guardduty.*;
 * CfnMember cfnMember = CfnMember.Builder.create(this, "MyCfnMember")
 *         .detectorId("detectorId")
 *         .email("email")
 *         .memberId("memberId")
 *         // the properties below are optional
 *         .disableEmailNotification(false)
 *         .message("message")
 *         .status("status")
 *         .build();
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.84.0 (build 5404dcf)", date = "2023-06-19T16:29:57.173Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.guardduty.$Module.class, fqn = "@aws-cdk/aws-guardduty.CfnMember") public class CfnMember extends software.amazon.awscdk.core.CfnResource implements software.amazon.awscdk.core.IInspectable { protected CfnMember(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected CfnMember(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } static { CFN_RESOURCE_TYPE_NAME = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.guardduty.CfnMember.class, "CFN_RESOURCE_TYPE_NAME", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * Create a new AWS::GuardDuty::Member. *

* @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.
This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public CfnMember(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.guardduty.CfnMemberProps 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"), java.util.Objects.requireNonNull(props, "props 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; /** */ @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 ID of the detector associated with the GuardDuty service to add the member to. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getDetectorId() { return software.amazon.jsii.Kernel.get(this, "detectorId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The ID of the detector associated with the GuardDuty service to add the member to. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setDetectorId(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "detectorId", java.util.Objects.requireNonNull(value, "detectorId is required")); } /** * The email address associated with the member account. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getEmail() { return software.amazon.jsii.Kernel.get(this, "email", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The email address associated with the member account. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setEmail(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "email", java.util.Objects.requireNonNull(value, "email is required")); } /** * The AWS account ID of the account to designate as a member. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getMemberId() { return software.amazon.jsii.Kernel.get(this, "memberId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The AWS account ID of the account to designate as a member. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setMemberId(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "memberId", java.util.Objects.requireNonNull(value, "memberId is required")); } /** * Specifies whether or not to disable email notification for the member account that you invite. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.Object getDisableEmailNotification() { return software.amazon.jsii.Kernel.get(this, "disableEmailNotification", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** * Specifies whether or not to disable email notification for the member account that you invite. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setDisableEmailNotification(final @org.jetbrains.annotations.Nullable java.lang.Boolean value) { software.amazon.jsii.Kernel.set(this, "disableEmailNotification", value); } /** * Specifies whether or not to disable email notification for the member account that you invite. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setDisableEmailNotification(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "disableEmailNotification", value); } /** * The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getMessage() { return software.amazon.jsii.Kernel.get(this, "message", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setMessage(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "message", value); } /** * You can use the Status property to update the status of the relationship between the member account and its administrator account. *

* Valid values are Created and Invited when using an AWS::GuardDuty::Member resource. If the value for this property is not provided or set to Created , a member account is created but not invited. If the value of this property is set to Invited , a member account is created and invited. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getStatus() { return software.amazon.jsii.Kernel.get(this, "status", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * You can use the Status property to update the status of the relationship between the member account and its administrator account. *

* Valid values are Created and Invited when using an AWS::GuardDuty::Member resource. If the value for this property is not provided or set to Created , a member account is created but not invited. If the value of this property is set to Invited , a member account is created and invited. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setStatus(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "status", value); } /** * A fluent builder for {@link software.amazon.awscdk.services.guardduty.CfnMember}. */ @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 final software.amazon.awscdk.services.guardduty.CfnMemberProps.Builder props; private Builder(final software.amazon.awscdk.core.Construct scope, final java.lang.String id) { this.scope = scope; this.id = id; this.props = new software.amazon.awscdk.services.guardduty.CfnMemberProps.Builder(); } /** * The ID of the detector associated with the GuardDuty service to add the member to. *

* @return {@code this} * @param detectorId The ID of the detector associated with the GuardDuty service to add the member to. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder detectorId(final java.lang.String detectorId) { this.props.detectorId(detectorId); return this; } /** * The email address associated with the member account. *

* @return {@code this} * @param email The email address associated with the member account. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder email(final java.lang.String email) { this.props.email(email); return this; } /** * The AWS account ID of the account to designate as a member. *

* @return {@code this} * @param memberId The AWS account ID of the account to designate as a member. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder memberId(final java.lang.String memberId) { this.props.memberId(memberId); return this; } /** * Specifies whether or not to disable email notification for the member account that you invite. *

* @return {@code this} * @param disableEmailNotification Specifies whether or not to disable email notification for the member account that you invite. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder disableEmailNotification(final java.lang.Boolean disableEmailNotification) { this.props.disableEmailNotification(disableEmailNotification); return this; } /** * Specifies whether or not to disable email notification for the member account that you invite. *

* @return {@code this} * @param disableEmailNotification Specifies whether or not to disable email notification for the member account that you invite. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder disableEmailNotification(final software.amazon.awscdk.core.IResolvable disableEmailNotification) { this.props.disableEmailNotification(disableEmailNotification); return this; } /** * The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members. *

* @return {@code this} * @param message The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder message(final java.lang.String message) { this.props.message(message); return this; } /** * You can use the Status property to update the status of the relationship between the member account and its administrator account. *

* Valid values are Created and Invited when using an AWS::GuardDuty::Member resource. If the value for this property is not provided or set to Created , a member account is created but not invited. If the value of this property is set to Invited , a member account is created and invited. *

* @return {@code this} * @param status You can use the Status property to update the status of the relationship between the member account and its administrator account. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder status(final java.lang.String status) { this.props.status(status); return this; } /** * @return a newly built instance of {@link software.amazon.awscdk.services.guardduty.CfnMember}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public software.amazon.awscdk.services.guardduty.CfnMember build() { return new software.amazon.awscdk.services.guardduty.CfnMember( this.scope, this.id, this.props.build() ); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy