Class CcApiContextQuery.Jsii$Proxy
- All Implemented Interfaces:
CcApiContextQuery,ContextLookupRoleOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CcApiContextQuery
CcApiContextQuery-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.cloud_assembly_schema.CcApiContextQuery
CcApiContextQuery.Builder, CcApiContextQuery.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(CcApiContextQuery.Builder builder) Constructor that initializes the object based on literal property values passed by theCcApiContextQuery.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal StringQuery account.Additional options to pass to STS when assuming the lookup role.final ObjectThe value to return if the resource was not found andignoreErrorOnMissingContextis true.final StringIdentifier of the resource to look up usingGetResource.final StringExpected count of results ifpropertyMatchis specified.final BooleanIgnore an error and return thedummyValueinstead if the resource was not found.final StringThe ARN of the role that should be used to look up the missing values.final StringThe ExternalId that needs to be supplied while assuming this role.This is a set of properties returned from CC API that we want to return from ContextQuery.Returns any resources matching these properties, usingListResources.final StringQuery region.final StringThe CloudFormation resource type.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCcApiContextQuery.Builder.
-
-
Method Details
-
getPropertiesToReturn
Description copied from interface:CcApiContextQueryThis is a set of properties returned from CC API that we want to return from ContextQuery.If any properties listed here are absent from the target resource, an error will be thrown.
The returned object will always include the key
Identifierwith the CC-API returned fieldIdentifier.Notes on property completeness
CloudControl API's
ListResourcesmay return fewer properties thanGetResourcewould, depending on the resource implementation.The returned properties here are currently selected from the response object that CloudControl API returns to the CDK CLI.
However, if we find there is need to do so, we may decide to change this behavior in the future: we might change it to perform an additional
GetResourcecall for resources matched bypropertyMatch.- Specified by:
getPropertiesToReturnin interfaceCcApiContextQuery
-
getTypeName
Description copied from interface:CcApiContextQueryThe CloudFormation resource type.See https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/supported-resources.html
- Specified by:
getTypeNamein interfaceCcApiContextQuery
-
getDummyValue
Description copied from interface:CcApiContextQueryThe value to return if the resource was not found andignoreErrorOnMissingContextis true.If supplied,
dummyValueshould be an array of objects.dummyValuedoes not have to have elements, and it may have objects with different properties than the properties inpropertiesToReturn, but it will be easiest for downstream code if thedummyValueconforms to the expected response shape.Default: - No dummy value available
- Specified by:
getDummyValuein interfaceCcApiContextQuery
-
getExactIdentifier
Description copied from interface:CcApiContextQueryIdentifier of the resource to look up usingGetResource.Specifying exactIdentifier will return exactly one result, or throw an error unless
ignoreErrorOnMissingContextis set.Default: - Either exactIdentifier or propertyMatch should be specified.
- Specified by:
getExactIdentifierin interfaceCcApiContextQuery
-
getExpectedMatchCount
Description copied from interface:CcApiContextQueryExpected count of results ifpropertyMatchis specified.If the expected result count does not match the actual count, by default an error is produced and the result is not committed to cached context, and the user can correct the situation and try again without having to manually clear out the context key using
cdk context --removeIf the value of *
ignoreErrorOnMissingContextistrue, the value ofexpectedMatchCountisat-least-one | exactly-oneand the number of found resources is 0,dummyValueis returned and committed to context instead.Default: 'any'
- Specified by:
getExpectedMatchCountin interfaceCcApiContextQuery
-
getIgnoreErrorOnMissingContext
Description copied from interface:CcApiContextQueryIgnore an error and return thedummyValueinstead if the resource was not found.- In case of an
exactIdentifierlookup, return thedummyValueif the resource with that identifier was not found. - In case of a
propertyMatchlookup, return thedummyValueifexpectedMatchCountisat-least-one | exactly-oneand the number of resources found was 0.
if
ignoreErrorOnMissingContextis set,dummyValueshould be set and be an array.Default: false
- Specified by:
getIgnoreErrorOnMissingContextin interfaceCcApiContextQuery
- In case of an
-
getPropertyMatch
Description copied from interface:CcApiContextQueryReturns any resources matching these properties, usingListResources.By default, specifying propertyMatch will successfully return 0 or more results. To throw an error if the number of results is unexpected (and prevent the query results from being committed to context), specify
expectedMatchCount.Notes on property completeness
CloudControl API's
ListResourcesmay return fewer properties thanGetResourcewould, depending on the resource implementation.The resources that
propertyMatchmatches against will only ever be the properties returned by theListResourcescall.Default: - Either exactIdentifier or propertyMatch should be specified.
- Specified by:
getPropertyMatchin interfaceCcApiContextQuery
-
getAccount
Description copied from interface:ContextLookupRoleOptionsQuery account.- Specified by:
getAccountin interfaceContextLookupRoleOptions
-
getRegion
Description copied from interface:ContextLookupRoleOptionsQuery region.- Specified by:
getRegionin interfaceContextLookupRoleOptions
-
getAssumeRoleAdditionalOptions
Description copied from interface:ContextLookupRoleOptionsAdditional options to pass to STS when assuming the lookup role.RoleArnshould not be used. Use the dedicatedlookupRoleArnproperty instead.ExternalIdshould not be used. Use the dedicatedlookupRoleExternalIdinstead.
Default: - No additional options.
- Specified by:
getAssumeRoleAdditionalOptionsin interfaceContextLookupRoleOptions- See Also:
-
getLookupRoleArn
Description copied from interface:ContextLookupRoleOptionsThe ARN of the role that should be used to look up the missing values.Default: - None
- Specified by:
getLookupRoleArnin interfaceContextLookupRoleOptions
-
getLookupRoleExternalId
Description copied from interface:ContextLookupRoleOptionsThe ExternalId that needs to be supplied while assuming this role.Default: - No ExternalId will be supplied
- Specified by:
getLookupRoleExternalIdin interfaceContextLookupRoleOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-