Class CfnDataAccessor
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.qbusiness.CfnDataAccessor
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IDataAccessorRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:26.358Z")
@Stability(Stable)
public class CfnDataAccessor
extends CfnResource
implements IInspectable, IDataAccessorRef, ITaggableV2
Creates a new data accessor for an ISV to access data from a Amazon Q Business application.
The data accessor is an entity that represents the ISV's access to the Amazon Q Business application's data. It includes the IAM role ARN for the ISV, a friendly name, and a set of action configurations that define the specific actions the ISV is allowed to perform and any associated data filters. When the data accessor is created, an IAM Identity Center application is also created to manage the ISV's identity and authentication for accessing the Amazon Q Business application.
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.qbusiness.*;
AttributeFilterProperty attributeFilterProperty_;
CfnDataAccessor cfnDataAccessor = CfnDataAccessor.Builder.create(this, "MyCfnDataAccessor")
.actionConfigurations(List.of(ActionConfigurationProperty.builder()
.action("action")
// the properties below are optional
.filterConfiguration(ActionFilterConfigurationProperty.builder()
.documentAttributeFilter(AttributeFilterProperty.builder()
.andAllFilters(List.of(attributeFilterProperty_))
.containsAll(DocumentAttributeProperty.builder()
.name("name")
.value(DocumentAttributeValueProperty.builder()
.dateValue("dateValue")
.longValue(123)
.stringListValue(List.of("stringListValue"))
.stringValue("stringValue")
.build())
.build())
.containsAny(DocumentAttributeProperty.builder()
.name("name")
.value(DocumentAttributeValueProperty.builder()
.dateValue("dateValue")
.longValue(123)
.stringListValue(List.of("stringListValue"))
.stringValue("stringValue")
.build())
.build())
.equalsTo(DocumentAttributeProperty.builder()
.name("name")
.value(DocumentAttributeValueProperty.builder()
.dateValue("dateValue")
.longValue(123)
.stringListValue(List.of("stringListValue"))
.stringValue("stringValue")
.build())
.build())
.greaterThan(DocumentAttributeProperty.builder()
.name("name")
.value(DocumentAttributeValueProperty.builder()
.dateValue("dateValue")
.longValue(123)
.stringListValue(List.of("stringListValue"))
.stringValue("stringValue")
.build())
.build())
.greaterThanOrEquals(DocumentAttributeProperty.builder()
.name("name")
.value(DocumentAttributeValueProperty.builder()
.dateValue("dateValue")
.longValue(123)
.stringListValue(List.of("stringListValue"))
.stringValue("stringValue")
.build())
.build())
.lessThan(DocumentAttributeProperty.builder()
.name("name")
.value(DocumentAttributeValueProperty.builder()
.dateValue("dateValue")
.longValue(123)
.stringListValue(List.of("stringListValue"))
.stringValue("stringValue")
.build())
.build())
.lessThanOrEquals(DocumentAttributeProperty.builder()
.name("name")
.value(DocumentAttributeValueProperty.builder()
.dateValue("dateValue")
.longValue(123)
.stringListValue(List.of("stringListValue"))
.stringValue("stringValue")
.build())
.build())
.notFilter(attributeFilterProperty_)
.orAllFilters(List.of(attributeFilterProperty_))
.build())
.build())
.build()))
.applicationId("applicationId")
.displayName("displayName")
.principal("principal")
// the properties below are optional
.authenticationDetail(DataAccessorAuthenticationDetailProperty.builder()
.authenticationType("authenticationType")
// the properties below are optional
.authenticationConfiguration(DataAccessorAuthenticationConfigurationProperty.builder()
.idcTrustedTokenIssuerConfiguration(DataAccessorIdcTrustedTokenIssuerConfigurationProperty.builder()
.idcTrustedTokenIssuerArn("idcTrustedTokenIssuerArn")
.build())
.build())
.externalIds(List.of("externalIds"))
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSpecifies an allowed action and its associated filter configuration.static interfaceSpecifies filters to apply to an allowed action.static interfaceEnables filtering of responses based on document attributes or metadata fields.static final classA fluent builder forCfnDataAccessor.static interfaceA union type that contains the specific authentication configuration based on the authentication type selected.static interfaceContains the authentication configuration details for a data accessor.static interfaceConfiguration details for IAM Identity Center Trusted Token Issuer (TTI) authentication.static interfaceA document attribute or metadata field.static interfaceThe value of a document attribute.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.qbusiness.IDataAccessorRef
IDataAccessorRef.Jsii$Default, IDataAccessorRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDataAccessor(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDataAccessor(software.amazon.jsii.JsiiObjectRef objRef) CfnDataAccessor(software.constructs.Construct scope, String id, CfnDataAccessorProps props) Create a newAWS::QBusiness::DataAccessor. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForDataAccessor(IDataAccessorRef resource) A list of action configurations specifying the allowed actions and any associated filters.The unique identifier of the Amazon Q Business application.The timestamp when the data accessor was created.The Amazon Resource Name (ARN) of the data accessor.The unique identifier of the data accessor.The Amazon Resource Name (ARN) of the associated IAM Identity Center application.The timestamp when the data accessor was last updated.The authentication configuration details for the data accessor.Tag Manager which manages the tags for this resource.A reference to a DataAccessor resource.The friendly name of the data accessor.The Amazon Resource Name (ARN) of the IAM role for the ISV associated with this data accessor.getTags()The tags to associate with the data accessor.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetActionConfigurations(List<Object> value) A list of action configurations specifying the allowed actions and any associated filters.voidA list of action configurations specifying the allowed actions and any associated filters.voidsetApplicationId(String value) The unique identifier of the Amazon Q Business application.voidThe authentication configuration details for the data accessor.voidThe authentication configuration details for the data accessor.voidsetDisplayName(String value) The friendly name of the data accessor.voidsetPrincipal(String value) The Amazon Resource Name (ARN) of the IAM role for the ISV associated with this data accessor.voidThe tags to associate with the data accessor.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.interfaces.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
-
CfnDataAccessor
protected CfnDataAccessor(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDataAccessor
protected CfnDataAccessor(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDataAccessor
@Stability(Stable) public CfnDataAccessor(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnDataAccessorProps props) Create a newAWS::QBusiness::DataAccessor.- 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
-
arnForDataAccessor
@Stability(Stable) @NotNull public static String arnForDataAccessor(@NotNull IDataAccessorRef resource) - Parameters:
resource- This parameter is required.
-
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.
-
getAttrCreatedAt
The timestamp when the data accessor was created. -
getAttrDataAccessorArn
The Amazon Resource Name (ARN) of the data accessor. -
getAttrDataAccessorId
The unique identifier of the data accessor. -
getAttrIdcApplicationArn
The Amazon Resource Name (ARN) of the associated IAM Identity Center application. -
getAttrUpdatedAt
The timestamp when the data accessor was last updated. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDataAccessorRef
A reference to a DataAccessor resource.- Specified by:
getDataAccessorRefin interfaceIDataAccessorRef
-
getActionConfigurations
A list of action configurations specifying the allowed actions and any associated filters.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDataAccessor.ActionConfigurationProperty> -
setActionConfigurations
A list of action configurations specifying the allowed actions and any associated filters. -
setActionConfigurations
A list of action configurations specifying the allowed actions and any associated filters. -
getApplicationId
The unique identifier of the Amazon Q Business application. -
setApplicationId
The unique identifier of the Amazon Q Business application. -
getDisplayName
The friendly name of the data accessor. -
setDisplayName
The friendly name of the data accessor. -
getPrincipal
The Amazon Resource Name (ARN) of the IAM role for the ISV associated with this data accessor. -
setPrincipal
The Amazon Resource Name (ARN) of the IAM role for the ISV associated with this data accessor. -
getAuthenticationDetail
The authentication configuration details for the data accessor.Returns union: either
IResolvableorCfnDataAccessor.DataAccessorAuthenticationDetailProperty -
setAuthenticationDetail
The authentication configuration details for the data accessor. -
setAuthenticationDetail
@Stability(Stable) public void setAuthenticationDetail(@Nullable CfnDataAccessor.DataAccessorAuthenticationDetailProperty value) The authentication configuration details for the data accessor. -
getTags
The tags to associate with the data accessor. -
setTags
The tags to associate with the data accessor.
-