Skip to content

create_sse_connect

create_sse_connect(
    sse_regions: SseRegionNameList,
    sse_vendor: SseVendor,
    *,
    config_overrides: Optional[NetworkManagerClientConfig] = None,
    description: Optional[ConstrainedString] = None,
    sse_license_model: Optional[SseLicenseModel] = None,
    dry_run: Optional[Boolean] = None,
    tags: Optional[TagList] = None,
    client_token: Optional[ClientToken] = None,
) -> CreateSseConnectResponse

Creates an Amazon VPC SSE connect (SSE connect). An SSE connect sends traffic from your Amazon Web Services Transit Gateway or Amazon Web Services Cloud WAN network through a third-party Security Service Edge (SSE) provider for inspection, policy enforcement, and internet egress.

You can create one SSE connect for each SSE provider in your account. The SSE provider must be available in each Amazon Web Services Region that you specify. To find these Regions, use ListSSERegions.

Parameters:

  • description (Optional[ConstrainedString], default: None ) –

    A description of the SSE connect.

  • sse_regions (SseRegionNameList) –

    The Regions where the SSE connect peers with the SSE provider. You must specify at least two Regions, and the SSE provider must be available in each Region.

  • sse_vendor (SseVendor) –

    The SSE provider to connect to. You can't change the SSE provider after you create the SSE connect.

  • sse_license_model (Optional[SseLicenseModel], default: None ) –

    How you subscribe to the SSE provider. Valid values:

    • BRING_YOUR_OWN_LICENSE – You have an agreement directly with the SSE provider. This is the default.

    • AWS_MARKETPLACE – You subscribed to the SSE provider through Amazon Web Services Marketplace.

  • dry_run (Optional[Boolean], default: None ) –

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is AccessDeniedException.

  • tags (Optional[TagList], default: None ) –

    The tags to apply to the SSE connect.

  • client_token (Optional[ClientToken], default: None ) –

    A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If you retry a request with the same client token, the operation returns the result of the original request instead of creating another resource.

Raises:

Examples:

To create an SSE connect The following example creates an SSE connect to an SSE provider in aa-example-1 and aa-example-2.

>>> client.create_sse_connect(description='Branch internet egress', sse_regions=['aa-example-1', 'aa-example-2'], sse_vendor='PALO_ALTO', sse_license_model='BRING_YOUR_OWN_LICENSE', tags=[{'Key': 'Name', 'Value': 'branch-egress'}])
Source code in docs_src/capo_networkmanager/_services/network_manager.py
def create_sse_connect(
    self,
    sse_regions: "capo_networkmanager.types.sse_region_name_list.SseRegionNameList",
    sse_vendor: "capo_networkmanager.types.sse_vendor.SseVendor",
    *,
    config_overrides: Optional[NetworkManagerClientConfig] = None,
    description: Optional[
        "capo_networkmanager.types.constrained_string.ConstrainedString"
    ] = None,
    sse_license_model: Optional[
        "capo_networkmanager.types.sse_license_model.SseLicenseModel"
    ] = None,
    dry_run: Optional["capo_networkmanager.types.boolean.Boolean"] = None,
    tags: Optional["capo_networkmanager.types.tag_list.TagList"] = None,
    client_token: Optional[
        "capo_networkmanager.types.client_token.ClientToken"
    ] = None,
) -> (
    "capo_networkmanager.types.create_sse_connect_response.CreateSseConnectResponse"
):
    """<p>Creates an Amazon VPC SSE connect (SSE connect). An SSE connect sends traffic from your Amazon Web Services Transit Gateway or Amazon Web Services Cloud WAN network through a third-party Security Service Edge (SSE) provider for inspection, policy enforcement, and internet egress.</p> <p>You can create one SSE connect for each SSE provider in your account. The SSE provider must be available in each Amazon Web Services Region that you specify. To find these Regions, use <a>ListSSERegions</a>.</p>

    Args:
        description: <p>A description of the SSE connect.</p>
        sse_regions: <p>The Regions where the SSE connect peers with the SSE provider. You must specify at least two Regions, and the SSE provider must be available in each Region.</p>
        sse_vendor: <p>The SSE provider to connect to. You can't change the SSE provider after you create the SSE connect.</p>
        sse_license_model: <p>How you subscribe to the SSE provider. Valid values:</p> <ul> <li> <p> <code>BRING_YOUR_OWN_LICENSE</code> – You have an agreement directly with the SSE provider. This is the default.</p> </li> <li> <p> <code>AWS_MARKETPLACE</code> – You subscribed to the SSE provider through Amazon Web Services Marketplace.</p> </li> </ul>
        dry_run: <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>AccessDeniedException</code>.</p>
        tags: <p>The tags to apply to the SSE connect.</p>
        client_token: <p>A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If you retry a request with the same client token, the operation returns the result of the original request instead of creating another resource.</p>

    Raises:
        capo_networkmanager.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_networkmanager.errors.conflict_exception.ConflictException: <p>There was a conflict processing the request. Updating or deleting the resource can cause an inconsistent state.</p>
        capo_networkmanager.errors.dry_run_operation.DryRunOperation: <p>You have the required permissions. You specified the <code>DryRun</code> parameter, so the request didn't run.</p>
        capo_networkmanager.errors.internal_server_exception.InternalServerException: <p>The request has failed due to an internal error.</p>
        capo_networkmanager.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>A service limit was exceeded.</p>
        capo_networkmanager.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_networkmanager.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints.</p>
        capo_networkmanager.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        To create an SSE connect
        The following example creates an SSE connect to an SSE provider in aa-example-1 and aa-example-2.

        >>> client.create_sse_connect(description='Branch internet egress', sse_regions=['aa-example-1', 'aa-example-2'], sse_vendor='PALO_ALTO', sse_license_model='BRING_YOUR_OWN_LICENSE', tags=[{'Key': 'Name', 'Value': 'branch-egress'}])
    """

    def _handler(
        req: "OperationRequest[capo_networkmanager.types.create_sse_connect_request.CreateSseConnectRequest]",
    ) -> OperationResponse[
        "capo_networkmanager.types.create_sse_connect_response.CreateSseConnectResponse"
    ]:
        import capo_networkmanager._operations.network_manager.create_sse_connect

        output, http_response = (
            capo_networkmanager._operations.network_manager.create_sse_connect.create_sse_connect(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("CreateSseConnect")
    )
    input_: capo_networkmanager.types.create_sse_connect_request.CreateSseConnectRequest = {
        "sse_regions": sse_regions,
        "sse_vendor": sse_vendor,
    }
    if description is not None:
        input_["description"] = description
    if sse_license_model is not None:
        input_["sse_license_model"] = sse_license_model
    if dry_run is not None:
        input_["dry_run"] = dry_run
    if tags is not None:
        input_["tags"] = tags
    if client_token is None:
        client_token = str(uuid.uuid4())
    input_["client_token"] = client_token

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output