CfnMemberProps Struct
Properties for defining a CfnMember.
| Source |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_managedblockchain as managedblockchain } from 'aws-cdk-lib';
const cfnMemberProps: managedblockchain.CfnMemberProps = {
memberConfiguration: {
name: 'name',
// the properties below are optional
description: 'description',
memberFrameworkConfiguration: {
memberFabricConfiguration: {
adminPassword: 'adminPassword',
adminUsername: 'adminUsername',
},
},
},
// the properties below are optional
invitationId: 'invitationId',
networkConfiguration: {
framework: 'framework',
frameworkVersion: 'frameworkVersion',
name: 'name',
votingPolicy: {
approvalThresholdPolicy: {
proposalDurationInHours: 123,
thresholdComparator: 'thresholdComparator',
thresholdPercentage: 123,
},
},
// the properties below are optional
description: 'description',
networkFrameworkConfiguration: {
networkFabricConfiguration: {
edition: 'edition',
},
},
},
networkId: 'networkId',
};
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_managedblockchain as managedblockchain
cfn_member_props = managedblockchain.CfnMemberProps(
member_configuration=managedblockchain.CfnMember.MemberConfigurationProperty(
name="name",
# the properties below are optional
description="description",
member_framework_configuration=managedblockchain.CfnMember.MemberFrameworkConfigurationProperty(
member_fabric_configuration=managedblockchain.CfnMember.MemberFabricConfigurationProperty(
admin_password="adminPassword",
admin_username="adminUsername"
)
)
),
# the properties below are optional
invitation_id="invitationId",
network_configuration=managedblockchain.CfnMember.NetworkConfigurationProperty(
framework="framework",
framework_version="frameworkVersion",
name="name",
voting_policy=managedblockchain.CfnMember.VotingPolicyProperty(
approval_threshold_policy=managedblockchain.CfnMember.ApprovalThresholdPolicyProperty(
proposal_duration_in_hours=123,
threshold_comparator="thresholdComparator",
threshold_percentage=123
)
),
# the properties below are optional
description="description",
network_framework_configuration=managedblockchain.CfnMember.NetworkFrameworkConfigurationProperty(
network_fabric_configuration=managedblockchain.CfnMember.NetworkFabricConfigurationProperty(
edition="edition"
)
)
),
network_id="networkId"
)
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.managedblockchain.*;
CfnMemberProps cfnMemberProps = CfnMemberProps.builder()
.memberConfiguration(MemberConfigurationProperty.builder()
.name("name")
// the properties below are optional
.description("description")
.memberFrameworkConfiguration(MemberFrameworkConfigurationProperty.builder()
.memberFabricConfiguration(MemberFabricConfigurationProperty.builder()
.adminPassword("adminPassword")
.adminUsername("adminUsername")
.build())
.build())
.build())
// the properties below are optional
.invitationId("invitationId")
.networkConfiguration(NetworkConfigurationProperty.builder()
.framework("framework")
.frameworkVersion("frameworkVersion")
.name("name")
.votingPolicy(VotingPolicyProperty.builder()
.approvalThresholdPolicy(ApprovalThresholdPolicyProperty.builder()
.proposalDurationInHours(123)
.thresholdComparator("thresholdComparator")
.thresholdPercentage(123)
.build())
.build())
// the properties below are optional
.description("description")
.networkFrameworkConfiguration(NetworkFrameworkConfigurationProperty.builder()
.networkFabricConfiguration(NetworkFabricConfigurationProperty.builder()
.edition("edition")
.build())
.build())
.build())
.networkId("networkId")
.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.ManagedBlockchain;
var cfnMemberProps = new CfnMemberProps {
MemberConfiguration = new MemberConfigurationProperty {
Name = "name",
// the properties below are optional
Description = "description",
MemberFrameworkConfiguration = new MemberFrameworkConfigurationProperty {
MemberFabricConfiguration = new MemberFabricConfigurationProperty {
AdminPassword = "adminPassword",
AdminUsername = "adminUsername"
}
}
},
// the properties below are optional
InvitationId = "invitationId",
NetworkConfiguration = new NetworkConfigurationProperty {
Framework = "framework",
FrameworkVersion = "frameworkVersion",
Name = "name",
VotingPolicy = new VotingPolicyProperty {
ApprovalThresholdPolicy = new ApprovalThresholdPolicyProperty {
ProposalDurationInHours = 123,
ThresholdComparator = "thresholdComparator",
ThresholdPercentage = 123
}
},
// the properties below are optional
Description = "description",
NetworkFrameworkConfiguration = new NetworkFrameworkConfigurationProperty {
NetworkFabricConfiguration = new NetworkFabricConfigurationProperty {
Edition = "edition"
}
}
},
NetworkId = "networkId"
};
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"
cfnMemberProps := &CfnMemberProps{
MemberConfiguration: &MemberConfigurationProperty{
Name: jsii.String("name"),
// the properties below are optional
Description: jsii.String("description"),
MemberFrameworkConfiguration: &MemberFrameworkConfigurationProperty{
MemberFabricConfiguration: &MemberFabricConfigurationProperty{
AdminPassword: jsii.String("adminPassword"),
AdminUsername: jsii.String("adminUsername"),
},
},
},
// the properties below are optional
InvitationId: jsii.String("invitationId"),
NetworkConfiguration: &NetworkConfigurationProperty{
Framework: jsii.String("framework"),
FrameworkVersion: jsii.String("frameworkVersion"),
Name: jsii.String("name"),
VotingPolicy: &VotingPolicyProperty{
ApprovalThresholdPolicy: &ApprovalThresholdPolicyProperty{
ProposalDurationInHours: jsii.Number(123),
ThresholdComparator: jsii.String("thresholdComparator"),
ThresholdPercentage: jsii.Number(123),
},
},
// the properties below are optional
Description: jsii.String("description"),
NetworkFrameworkConfiguration: &NetworkFrameworkConfigurationProperty{
NetworkFabricConfiguration: &NetworkFabricConfigurationProperty{
Edition: jsii.String("edition"),
},
},
},
NetworkId: jsii.String("networkId"),
}
Properties
invitationIdoptionalstringinvitation_idoptionalstrinvitationIdoptionalStringInvitationIdoptionalstringInvitationIdoptional*string #The unique identifier of the invitation to join the network sent to the account that creates the member.
memberConfigurationIResolvable | CfnMember.member_configurationtyping.Union[IResolvable, MemberConfigurationProperty]memberConfigurationIResolvableMemberConfigurationIResolvableMemberConfigurationinterface{} required #Configuration properties of the member.
networkConfigurationoptionalIResolvable | CfnMember.network_configurationoptionaltyping.Union[IResolvable, NetworkConfigurationProperty]networkConfigurationoptionalIResolvableNetworkConfigurationoptionalIResolvableNetworkConfigurationoptionalinterface{} #Configuration properties of the network to which the member belongs.
networkIdoptionalstringnetwork_idoptionalstrnetworkIdoptionalStringNetworkIdoptionalstringNetworkIdoptional*string #The unique identifier of the network to which the member belongs.