Class MeteringPolicyEntryArgs.Builder

  • Enclosing class:
    MeteringPolicyEntryArgs

    public static final class MeteringPolicyEntryArgs.Builder
    extends java.lang.Object
    • Method Detail

      • destinationCidrBlock

        public MeteringPolicyEntryArgs.Builder destinationCidrBlock​(@Nullable
                                                                    com.pulumi.core.Output<java.lang.String> destinationCidrBlock)
        Parameters:
        destinationCidrBlock - Destination CIDR block to match. If not specified, all destination CIDR blocks are matched.
        Returns:
        builder
      • destinationCidrBlock

        public MeteringPolicyEntryArgs.Builder destinationCidrBlock​(java.lang.String destinationCidrBlock)
        Parameters:
        destinationCidrBlock - Destination CIDR block to match. If not specified, all destination CIDR blocks are matched.
        Returns:
        builder
      • destinationPortRange

        public MeteringPolicyEntryArgs.Builder destinationPortRange​(@Nullable
                                                                    com.pulumi.core.Output<java.lang.String> destinationPortRange)
        Parameters:
        destinationPortRange - Destination port range to match. If not specified, all destination ports are matched.
        Returns:
        builder
      • destinationPortRange

        public MeteringPolicyEntryArgs.Builder destinationPortRange​(java.lang.String destinationPortRange)
        Parameters:
        destinationPortRange - Destination port range to match. If not specified, all destination ports are matched.
        Returns:
        builder
      • destinationTransitGatewayAttachmentId

        public MeteringPolicyEntryArgs.Builder destinationTransitGatewayAttachmentId​(@Nullable
                                                                                     com.pulumi.core.Output<java.lang.String> destinationTransitGatewayAttachmentId)
        Parameters:
        destinationTransitGatewayAttachmentId - Destination Transit Gateway attachment ID to match.
        Returns:
        builder
      • destinationTransitGatewayAttachmentId

        public MeteringPolicyEntryArgs.Builder destinationTransitGatewayAttachmentId​(java.lang.String destinationTransitGatewayAttachmentId)
        Parameters:
        destinationTransitGatewayAttachmentId - Destination Transit Gateway attachment ID to match.
        Returns:
        builder
      • destinationTransitGatewayAttachmentType

        public MeteringPolicyEntryArgs.Builder destinationTransitGatewayAttachmentType​(@Nullable
                                                                                       com.pulumi.core.Output<java.lang.String> destinationTransitGatewayAttachmentType)
        Parameters:
        destinationTransitGatewayAttachmentType - Destination attachment resource type to match. Valid values are `vpc`, `vpn`, `vpn-concentrator`, `direct-connect-gateway`, `connect`, `peering`, `tgw-peering`, `network-function`, `client-vpn`.
        Returns:
        builder
      • destinationTransitGatewayAttachmentType

        public MeteringPolicyEntryArgs.Builder destinationTransitGatewayAttachmentType​(java.lang.String destinationTransitGatewayAttachmentType)
        Parameters:
        destinationTransitGatewayAttachmentType - Destination attachment resource type to match. Valid values are `vpc`, `vpn`, `vpn-concentrator`, `direct-connect-gateway`, `connect`, `peering`, `tgw-peering`, `network-function`, `client-vpn`.
        Returns:
        builder
      • meteredAccount

        public MeteringPolicyEntryArgs.Builder meteredAccount​(com.pulumi.core.Output<java.lang.String> meteredAccount)
        Parameters:
        meteredAccount - The account to charge for matching traffic. Valid values are `source-attachment-owner`, `destination-attachment-owner`, or `transit-gateway-owner`.
        Returns:
        builder
      • meteredAccount

        public MeteringPolicyEntryArgs.Builder meteredAccount​(java.lang.String meteredAccount)
        Parameters:
        meteredAccount - The account to charge for matching traffic. Valid values are `source-attachment-owner`, `destination-attachment-owner`, or `transit-gateway-owner`.
        Returns:
        builder
      • policyRuleNumber

        public MeteringPolicyEntryArgs.Builder policyRuleNumber​(com.pulumi.core.Output<java.lang.Integer> policyRuleNumber)
        Parameters:
        policyRuleNumber - Rule number for this entry. Lower numbers have higher priority. Valid values are between `1` and `32766`.
        Returns:
        builder
      • policyRuleNumber

        public MeteringPolicyEntryArgs.Builder policyRuleNumber​(java.lang.Integer policyRuleNumber)
        Parameters:
        policyRuleNumber - Rule number for this entry. Lower numbers have higher priority. Valid values are between `1` and `32766`.
        Returns:
        builder
      • protocol

        public MeteringPolicyEntryArgs.Builder protocol​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> protocol)
        Parameters:
        protocol - Protocol number to match (e.g., `6` for TCP, `17` for UDP). If not specified, all protocols are matched.
        Returns:
        builder
      • protocol

        public MeteringPolicyEntryArgs.Builder protocol​(java.lang.String protocol)
        Parameters:
        protocol - Protocol number to match (e.g., `6` for TCP, `17` for UDP). If not specified, all protocols are matched.
        Returns:
        builder
      • region

        public MeteringPolicyEntryArgs.Builder region​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public MeteringPolicyEntryArgs.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • sourceCidrBlock

        public MeteringPolicyEntryArgs.Builder sourceCidrBlock​(@Nullable
                                                               com.pulumi.core.Output<java.lang.String> sourceCidrBlock)
        Parameters:
        sourceCidrBlock - Source CIDR block to match. If not specified, all source CIDR blocks are matched.
        Returns:
        builder
      • sourceCidrBlock

        public MeteringPolicyEntryArgs.Builder sourceCidrBlock​(java.lang.String sourceCidrBlock)
        Parameters:
        sourceCidrBlock - Source CIDR block to match. If not specified, all source CIDR blocks are matched.
        Returns:
        builder
      • sourcePortRange

        public MeteringPolicyEntryArgs.Builder sourcePortRange​(@Nullable
                                                               com.pulumi.core.Output<java.lang.String> sourcePortRange)
        Parameters:
        sourcePortRange - Source port range to match. If not specified, all source ports are matched.
        Returns:
        builder
      • sourcePortRange

        public MeteringPolicyEntryArgs.Builder sourcePortRange​(java.lang.String sourcePortRange)
        Parameters:
        sourcePortRange - Source port range to match. If not specified, all source ports are matched.
        Returns:
        builder
      • sourceTransitGatewayAttachmentId

        public MeteringPolicyEntryArgs.Builder sourceTransitGatewayAttachmentId​(@Nullable
                                                                                com.pulumi.core.Output<java.lang.String> sourceTransitGatewayAttachmentId)
        Parameters:
        sourceTransitGatewayAttachmentId - Source Transit Gateway attachment ID to match.
        Returns:
        builder
      • sourceTransitGatewayAttachmentId

        public MeteringPolicyEntryArgs.Builder sourceTransitGatewayAttachmentId​(java.lang.String sourceTransitGatewayAttachmentId)
        Parameters:
        sourceTransitGatewayAttachmentId - Source Transit Gateway attachment ID to match.
        Returns:
        builder
      • sourceTransitGatewayAttachmentType

        public MeteringPolicyEntryArgs.Builder sourceTransitGatewayAttachmentType​(@Nullable
                                                                                  com.pulumi.core.Output<java.lang.String> sourceTransitGatewayAttachmentType)
        Parameters:
        sourceTransitGatewayAttachmentType - Source attachment resource type to match. Valid values are `vpc`, `vpn`, `vpn-concentrator`, `direct-connect-gateway`, `connect`, `peering`, `tgw-peering`, `network-function`, `client-vpn`.
        Returns:
        builder
      • sourceTransitGatewayAttachmentType

        public MeteringPolicyEntryArgs.Builder sourceTransitGatewayAttachmentType​(java.lang.String sourceTransitGatewayAttachmentType)
        Parameters:
        sourceTransitGatewayAttachmentType - Source attachment resource type to match. Valid values are `vpc`, `vpn`, `vpn-concentrator`, `direct-connect-gateway`, `connect`, `peering`, `tgw-peering`, `network-function`, `client-vpn`.
        Returns:
        builder
      • transitGatewayMeteringPolicyId

        public MeteringPolicyEntryArgs.Builder transitGatewayMeteringPolicyId​(com.pulumi.core.Output<java.lang.String> transitGatewayMeteringPolicyId)
        Parameters:
        transitGatewayMeteringPolicyId - EC2 Transit Gateway Metering Policy identifier. The following arguments are optional:
        Returns:
        builder
      • transitGatewayMeteringPolicyId

        public MeteringPolicyEntryArgs.Builder transitGatewayMeteringPolicyId​(java.lang.String transitGatewayMeteringPolicyId)
        Parameters:
        transitGatewayMeteringPolicyId - EC2 Transit Gateway Metering Policy identifier. The following arguments are optional:
        Returns:
        builder