Class CfnAccessLogSubscription
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.vpclattice.CfnAccessLogSubscription
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggable,IAccessLogSubscriptionRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:51.912Z")
@Stability(Stable)
public class CfnAccessLogSubscription
extends CfnResource
implements IInspectable, IAccessLogSubscriptionRef, ITaggable
Enables access logs to be sent to Amazon CloudWatch, Amazon S3, and Amazon Kinesis Data Firehose.
The service network owner can use the access logs to audit the services in the network. The service network owner can only see access logs from clients and services that are associated with their service network. Access log entries represent traffic originated from VPCs associated with that network. For more information, see Access logs in the Amazon VPC Lattice User Guide .
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.vpclattice.*;
CfnAccessLogSubscription cfnAccessLogSubscription = CfnAccessLogSubscription.Builder.create(this, "MyCfnAccessLogSubscription")
.destinationArn("destinationArn")
// the properties below are optional
.resourceIdentifier("resourceIdentifier")
.serviceNetworkLogType("serviceNetworkLogType")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnAccessLogSubscription.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.vpclattice.IAccessLogSubscriptionRef
IAccessLogSubscriptionRef.Jsii$Default, IAccessLogSubscriptionRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnAccessLogSubscription(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAccessLogSubscription(software.amazon.jsii.JsiiObjectRef objRef) CfnAccessLogSubscription(software.constructs.Construct scope, String id, CfnAccessLogSubscriptionProps props) -
Method Summary
Modifier and TypeMethodDescriptionA reference to a AccessLogSubscription resource.The Amazon Resource Name (ARN) of the access log subscription.The ID of the access log subscription.The Amazon Resource Name (ARN) of the access log subscription.The ID of the service network or service.The Amazon Resource Name (ARN) of the destination.The ID or ARN of the service network or service.Log type of the service network.getTags()Tag Manager which manages the tags for this resource.The tags for the access log subscription.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDestinationArn(String value) The Amazon Resource Name (ARN) of the destination.voidsetResourceIdentifier(String value) The ID or ARN of the service network or service.voidsetServiceNetworkLogType(String value) Log type of the service network.voidsetTagsRaw(List<CfnTag> value) The tags for the access log subscription.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnAccessLogSubscription
protected CfnAccessLogSubscription(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAccessLogSubscription
protected CfnAccessLogSubscription(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAccessLogSubscription
@Stability(Stable) public CfnAccessLogSubscription(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAccessLogSubscriptionProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAccessLogSubscriptionRef
A reference to a AccessLogSubscription resource.- Specified by:
getAccessLogSubscriptionRefin interfaceIAccessLogSubscriptionRef
-
getAttrArn
The Amazon Resource Name (ARN) of the access log subscription. -
getAttrId
The ID of the access log subscription. -
getAttrResourceArn
The Amazon Resource Name (ARN) of the access log subscription. -
getAttrResourceId
The ID of the service network or service. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getDestinationArn
The Amazon Resource Name (ARN) of the destination. -
setDestinationArn
The Amazon Resource Name (ARN) of the destination. -
getResourceIdentifier
The ID or ARN of the service network or service. -
setResourceIdentifier
The ID or ARN of the service network or service. -
getServiceNetworkLogType
Log type of the service network. -
setServiceNetworkLogType
Log type of the service network. -
getTagsRaw
The tags for the access log subscription. -
setTagsRaw
The tags for the access log subscription.
-