@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
131 lines (130 loc) • 5.68 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Provides a resource to manage a single Amazon GuardDuty [detector feature](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty-features-activation-model.html#guardduty-features) for a member account.
*
* > **NOTE:** Deleting this resource does not disable the detector feature in the member account, the resource in simply removed from state instead.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = new aws.guardduty.Detector("example", {enable: true});
* const runtimeMonitoring = new aws.guardduty.MemberDetectorFeature("runtime_monitoring", {
* detectorId: example.id,
* accountId: "123456789012",
* name: "S3_DATA_EVENTS",
* status: "ENABLED",
* });
* ```
*/
export declare class MemberDetectorFeature extends pulumi.CustomResource {
/**
* Get an existing MemberDetectorFeature resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MemberDetectorFeatureState, opts?: pulumi.CustomResourceOptions): MemberDetectorFeature;
/**
* Returns true if the given object is an instance of MemberDetectorFeature. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is MemberDetectorFeature;
/**
* Member account ID to be updated.
*/
readonly accountId: pulumi.Output<string>;
/**
* Additional feature configuration block. See below.
*/
readonly additionalConfigurations: pulumi.Output<outputs.guardduty.MemberDetectorFeatureAdditionalConfiguration[] | undefined>;
/**
* Amazon GuardDuty detector ID.
*/
readonly detectorId: pulumi.Output<string>;
/**
* The name of the detector feature. Valid values: `S3_DATA_EVENTS`, `EKS_AUDIT_LOGS`, `EBS_MALWARE_PROTECTION`, `RDS_LOGIN_EVENTS`, `EKS_RUNTIME_MONITORING`,`RUNTIME_MONITORING`, `LAMBDA_NETWORK_LOGS`.
*/
readonly name: pulumi.Output<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
readonly region: pulumi.Output<string>;
/**
* The status of the detector feature. Valid values: `ENABLED`, `DISABLED`.
*/
readonly status: pulumi.Output<string>;
/**
* Create a MemberDetectorFeature resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: MemberDetectorFeatureArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering MemberDetectorFeature resources.
*/
export interface MemberDetectorFeatureState {
/**
* Member account ID to be updated.
*/
accountId?: pulumi.Input<string>;
/**
* Additional feature configuration block. See below.
*/
additionalConfigurations?: pulumi.Input<pulumi.Input<inputs.guardduty.MemberDetectorFeatureAdditionalConfiguration>[]>;
/**
* Amazon GuardDuty detector ID.
*/
detectorId?: pulumi.Input<string>;
/**
* The name of the detector feature. Valid values: `S3_DATA_EVENTS`, `EKS_AUDIT_LOGS`, `EBS_MALWARE_PROTECTION`, `RDS_LOGIN_EVENTS`, `EKS_RUNTIME_MONITORING`,`RUNTIME_MONITORING`, `LAMBDA_NETWORK_LOGS`.
*/
name?: pulumi.Input<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
/**
* The status of the detector feature. Valid values: `ENABLED`, `DISABLED`.
*/
status?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a MemberDetectorFeature resource.
*/
export interface MemberDetectorFeatureArgs {
/**
* Member account ID to be updated.
*/
accountId: pulumi.Input<string>;
/**
* Additional feature configuration block. See below.
*/
additionalConfigurations?: pulumi.Input<pulumi.Input<inputs.guardduty.MemberDetectorFeatureAdditionalConfiguration>[]>;
/**
* Amazon GuardDuty detector ID.
*/
detectorId: pulumi.Input<string>;
/**
* The name of the detector feature. Valid values: `S3_DATA_EVENTS`, `EKS_AUDIT_LOGS`, `EBS_MALWARE_PROTECTION`, `RDS_LOGIN_EVENTS`, `EKS_RUNTIME_MONITORING`,`RUNTIME_MONITORING`, `LAMBDA_NETWORK_LOGS`.
*/
name?: pulumi.Input<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
/**
* The status of the detector feature. Valid values: `ENABLED`, `DISABLED`.
*/
status: pulumi.Input<string>;
}