@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.415Z") @Stability(value=Stable) public abstract class FlowLogResourceType extends software.amazon.jsii.JsiiObject
Example:
// Example automatically generated from non-compiling source. May contain errors.
Vpc vpc;
LogGroup logGroup = new LogGroup(this, "MyCustomLogGroup");
Role role = Role.Builder.create(this, "MyCustomRole")
.assumedBy(new ServicePrincipal("vpc-flow-logs.amazonaws.com"))
.build();
FlowLog.Builder.create(this, "FlowLog")
.resourceType(FlowLogResourceType.fromVpc(vpc))
.destination(FlowLogDestination.toCloudWatchLogs(logGroup, role))
.build();
| Modifier | Constructor and Description |
|---|---|
protected |
FlowLogResourceType() |
protected |
FlowLogResourceType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
FlowLogResourceType(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static FlowLogResourceType |
fromNetworkInterfaceId(String id)
The Network Interface to attach the Flow Log to.
|
static FlowLogResourceType |
fromSubnet(ISubnet subnet)
The subnet to attach the Flow Log to.
|
static FlowLogResourceType |
fromVpc(IVpc vpc)
The VPC to attach the Flow Log to.
|
abstract String |
getResourceId()
The Id of the resource that the flow log should be attached to.
|
abstract String |
getResourceType()
The type of resource to attach a flow log to.
|
abstract void |
setResourceId(String value)
The Id of the resource that the flow log should be attached to.
|
abstract void |
setResourceType(String value)
The type of resource to attach a flow log to.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected FlowLogResourceType(software.amazon.jsii.JsiiObjectRef objRef)
protected FlowLogResourceType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) protected FlowLogResourceType()
@Stability(value=Stable) @NotNull public static FlowLogResourceType fromNetworkInterfaceId(@NotNull String id)
id - This parameter is required.@Stability(value=Stable) @NotNull public static FlowLogResourceType fromSubnet(@NotNull ISubnet subnet)
subnet - This parameter is required.@Stability(value=Stable) @NotNull public static FlowLogResourceType fromVpc(@NotNull IVpc vpc)
vpc - This parameter is required.@Stability(value=Stable) @NotNull public abstract String getResourceId()
@Stability(value=Stable)
public abstract void setResourceId(@NotNull
String value)
@Stability(value=Stable) @NotNull public abstract String getResourceType()
@Stability(value=Stable)
public abstract void setResourceType(@NotNull
String value)
Copyright © 2022. All rights reserved.