Skip to content
v2.277.0

Experimental

@aws-cdk/aws-bedrock-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

ApplicationInferenceProfileAttributes Struct ​

Attributes for specifying an imported Application Inference Profile.

Example ​

ts
// Import an inference profile through attributes
const importedProfile = bedrock.ApplicationInferenceProfile.fromApplicationInferenceProfileAttributes(
  this,
  'ImportedProfile',
  {
    inferenceProfileArn: 'arn:aws:bedrock:us-east-1:123456789012:application-inference-profile/my-profile-id',
    inferenceProfileIdentifier: 'my-profile-id',
  }
);
python
# Import an inference profile through attributes
imported_profile = bedrock.ApplicationInferenceProfile.from_application_inference_profile_attributes(self, "ImportedProfile",
    inference_profile_arn="arn:aws:bedrock:us-east-1:123456789012:application-inference-profile/my-profile-id",
    inference_profile_identifier="my-profile-id"
)
java
// Import an inference profile through attributes
IInferenceProfile importedProfile = ApplicationInferenceProfile.fromApplicationInferenceProfileAttributes(this, "ImportedProfile", ApplicationInferenceProfileAttributes.builder()
        .inferenceProfileArn("arn:aws:bedrock:us-east-1:123456789012:application-inference-profile/my-profile-id")
        .inferenceProfileIdentifier("my-profile-id")
        .build());
csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Alpha
// Import an inference profile through attributes
var importedProfile = ApplicationInferenceProfile.FromApplicationInferenceProfileAttributes(this, "ImportedProfile", new ApplicationInferenceProfileAttributes {
    InferenceProfileArn = "arn:aws:bedrock:us-east-1:123456789012:application-inference-profile/my-profile-id",
    InferenceProfileIdentifier = "my-profile-id"
});
go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockalpha/v2
// Import an inference profile through attributes
importedProfile := bedrock.ApplicationInferenceProfile_FromApplicationInferenceProfileAttributes(this, jsii.String("ImportedProfile"), &ApplicationInferenceProfileAttributes{
	InferenceProfileArn: jsii.String("arn:aws:bedrock:us-east-1:123456789012:application-inference-profile/my-profile-id"),
	InferenceProfileIdentifier: jsii.String("my-profile-id"),
})

Properties ​

inferenceProfileArnstringinference_profile_arnstrinferenceProfileArnStringInferenceProfileArnstringInferenceProfileArn*string required #
The ARN of the application inference profile.
inferenceProfileIdentifierstringinference_profile_identifierstrinferenceProfileIdentifierStringInferenceProfileIdentifierstringInferenceProfileIdentifier*string required #
The ID or Amazon Resource Name (ARN) of the inference profile.

This can be either the profile ID or the full ARN.