Skip to content
v2.277.0

CfnApprovedOriginProps Struct ​

Properties for defining a CfnApprovedOrigin.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_connect as connect } from 'aws-cdk-lib';
const cfnApprovedOriginProps: connect.CfnApprovedOriginProps = {
  instanceId: 'instanceId',
  origin: 'origin',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_connect as connect

cfn_approved_origin_props = connect.CfnApprovedOriginProps(
    instance_id="instanceId",
    origin="origin"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.connect.*;

CfnApprovedOriginProps cfnApprovedOriginProps = CfnApprovedOriginProps.builder()
        .instanceId("instanceId")
        .origin("origin")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Connect;

var cfnApprovedOriginProps = new CfnApprovedOriginProps {
    InstanceId = "instanceId",
    Origin = "origin"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnApprovedOriginProps := &CfnApprovedOriginProps{
	InstanceId: jsii.String("instanceId"),
	Origin: jsii.String("origin"),
}

Properties ​

instanceIdstring | IInstanceRefinstance_idtyping.Union[str, IInstanceRef]instanceIdStringInstanceIdstringInstanceIdinterface{}required#
The Amazon Resource Name (ARN) of the instance.

Minimum : 1

Maximum : 100

originstringoriginstroriginStringOriginstringOrigin*stringrequired#
Domain name to be added to the allow-list of the instance.

Maximum : 267